[Koha-bugs] [Bug 32909] New: Item type icons broken when placing an item-level hold

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 8 15:01:35 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32909

            Bug ID: 32909
           Summary: Item type icons broken when placing an item-level hold
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Staff interface
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: a.roussos at dataly.gr
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

When placing an item-level hold in the Staff interface,
the table at the bottom of the screen (under the "Place
a hold on a specific item" heading) should display the
icon associated with the item type of each item.

This feature broke in v22.05.00 and is still broken [*]
in the current master (ac1e80400d), as the <img> tag for
the item type icon points to a path that begins with:
/opac-tmpl/bootstrap/itemtypeimg
instead of the correct path that begins with:
/intranet-tmpl/prog/img/itemtypeimg

So, instead of fetching the corresponding item type icon
you get a 404 in your web server logs and the default
'broken image URL' image in your web browser. I will
attach a couple of screenshots to demonstrate the problem.

`git bisect` tells me that the relevant commit is
d4855131e3b8e5852f221182ed9588f4ddc67368 from Bug 29660.

[*] Please note: the bug outlined above occurs on Debian
    package installations. Koha instances created using
    koha-testing-docker or the Koha Sandboxes seem to be
    unaffected. I believe this has to do with the values
    of the <intrahtdocs> and <opachtdocs> settings in
    koha-conf.xml, and the fact that Gitified instances
    served by Apache use the same DocumentRoot path in
    their VirtualHost directives for both the OPAC and
    the Staff interface.

    However, when trying to reproduce this bug on Koha
    instances created with methods other than a Debian
    package install, you can still observe that the item
    type icon URL is wrong by right-clicking on the
    icon and selecting 'Inspect' to see its properties.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list