http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9174

Jared Camins-Esakov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #14937|0                           |1
        is obsolete|                            |
  Attachment #14938|0                           |1
        is obsolete|                            |

--- Comment #11 from Jared Camins-Esakov <[email protected]> ---
Created attachment 15022
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=15022&action=edit
Bug 9174: [3.8.x] Fix itemtype image display in OPAC lists

Prior to this patch, C4::VirtualShelves::Page did not make sure that
the itemtype images that it chose when displaying itemtype images for
biblio-level itemtypes were for the correct interface, so
even on the OPAC the Intranet icons were requested. On standard
installations, intranet-tmpl is not available to the OPAC.

To test:
1) Set noItemTypeImages to "Show" and item-level_items to "biblio record"
2) Create a list and add an item with the default item type (942$c in
   MARC21) set to something with an itemtype image associated with it.
3) View the list in the OPAC.
4) If you are an a standard install, the itemtype image will be a broken
   link. If on a dev install, you can confirm with Firebug or the like
   that the image is pulled from /intranet-tmpl.
5) Apply patch.
6) Run `prove t/db_dependent/Koha.t` to confirm that the behavior of the
   routine used to retrieve the image URL is correct. (Note that you
   must have an item type with the code 'BK')
7) Refresh the list, noting that the display is now correct/the image is
   pulled from opac-tmpl.

Signed-off-by: Jonathan Druart <[email protected]>
It works as expected. All tests in Koha.t passed.
Signed-off-by: Mason James <[email protected]>
Signed-off-by: Jared Camins-Esakov <[email protected]>

Conflicts:

    t/db_dependent/Koha.t

Squashed with: Bug 9174 follow-up: Eliminate warning and fix POD

Thanks to Marcel for spotting these issues.

Signed-off-by: Chris Cormack <[email protected]>
Signed-off-by: Mason James <[email protected]>
Signed-off-by: Jared Camins-Esakov <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to