Bug 16143: Make opac-shelves.pl generate OPAC itype images path
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 24 Mar 2016 02:43:17 +0000 (23:43 -0300)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 7 Apr 2016 07:56:33 +0000 (09:56 +0200)
commit180ef9d5faded902c5869887f59a0d9e4807974b
treea6df489a95a54e7841e84a0a3bf680f67f00676e
parentcf2fdd529bf3feb687014798234ed3410c416182
Bug 16143: Make opac-shelves.pl generate OPAC itype images path

This patch makes icons point to the OPAC path instead of intranet's.

To test:
- On current master/3.22.x
- Have some itemtypes with icons set
- Have some biblios matching the itemtypes
- Add them to a public list
- Do a search in the OPAC for any of those biblios
=> SUCCESS: icons show correctly
- Choose the list
=> FAIL: icons fail to show, URL points to /intranet-tmpl/....
- Apply the patch, reload
=> SUCCESS: icons show correctly
- Sign off :-D

Sponsored-by: American Numismatic Society
NOTE: I had to set item-level_itypes to 'biblio record'
      in order to trigger this. My icon's showed, but the
      path was wrong. This patch corrects it.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 630301673605733429c4ae79e125053cf4169376)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
opac/opac-shelves.pl