[Koha-bugs] [Bug 33646] "Cataloging search" missing important data for not for loan items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 16 06:31:28 CET 2023


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

--- Comment #6 from David Cook <dcook at prosentient.com.au> ---
(In reply to Lucas Gass from comment #3)
> The same is true for checked out items. No location information is
> displayed. Only "Checked out (x)"

It looks like the data comes straight from searchResults and is displayed like
this:

<span class="unavailable">
    [% IF ( resultsloo.onloancount ) %] <span>Checked out ([%
resultsloo.onloancount | html %])</span>,<br /> [% END %]
    [% IF ( resultsloo.withdrawncount ) %] <span>Withdrawn ([%
resultsloo.withdrawncount | html %])</span>,<br /> [% END %]
    [% IF ( resultsloo.itemlostcount ) %] <span>Lost ([%
resultsloo.itemlostcount | html %])</span><br />[% END %]
    [% IF ( resultsloo.recalledcount ) %] <span>Waiting to fill recall ([%
resultsloo.recalled | html %])</span>[% END %]
    [% IF ( resultsloo.onholdcount ) %] <span>Waiting on hold ([%
resultsloo.onholdcount | html %])</span>[% END %]
</span>

Whereas for notforloan it's displayed a bit differently. That said, there is a
"onloan_items_loop" which could be used to display the items...

<span class="notforloan">
    [% IF ( resultsloo.other_items_loop ) %]
        [% FOREACH items_loo IN resultsloo.other_items_loop %]
            [% IF ( items_loo.notforloan ) %][% items_loo.notforloan | html %]
([% items_loo.count | html %])<br />[% END %]
        [% END %]
    [% END %]
</span>

It's a bit of a mess...

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


More information about the Koha-bugs mailing list