[Koha-bugs] [Bug 36366] Itemtype can be used in XSLT

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 29 21:37:44 CET 2024


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

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at bywatersolutions.com
             Status|Signed Off                  |Failed QA

--- Comment #5 from Nick Clemens <nick at bywatersolutions.com> ---
I think this should match the format of other information:
 my $itemtype          = C4::Koha::xml_escape($item->effective_itemtype    &&
exists $itemtypes->{$item->effective_itemtype}            ?
$itemtypes->{$item->effective_itemtype}            :
$item->effective_itemtype);

Other wise we end up with undef when the effective itemtype is not an official
itemtype, and I think we should still display the type code in that case.
Also, we are xml escaping other values, so should on this one too

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


More information about the Koha-bugs mailing list