[Koha-bugs] [Bug 8891] "Long overdue (lost)" items in search results show garbled information

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jul 30 16:38:26 CEST 2015


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

--- Comment #3 from Nicole C. Engard <nengard at gmail.com> ---
Notes from Barton:
-----------

The 'long overdue' line in the 'onloan' section is at line 586 of
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt

573 [% IF ( SEARCH_RESULT.onloancount ) %]
574 <span class="status">[% SEARCH_RESULT.onloancount %] on loan:</span>
575 <ul>
576 [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
577 [% IF item_level_itypes && !noItemTypeImages && onloan_items_loo.imageurl
%]
578 <li style="list-style: none; list-style-type: none;">
579 <img src="[% onloan_items_loo.imageurl %]" title="[%
onloan_items_loo.description %]" alt="[% onloan_items_loo.description %]" />
580 [% ELSE %]
581 <li>
582 [% END %]
583 [% IF ( onloan_items_loo.branchname ) %][% onloan_items_loo.branchname %][%
END %]
584 [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END
%]
585 [% IF ( onloan_items_loo.itemcallnumber ) %][<a
href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&q=%22[%
onloan_items_loo.itemcallnumber |uri %]%22">[% onloan_items_loo.itemcallnumber
%]</a>][% END %]
586 ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [%
onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [%
onloan_items_loo.due_date %]
587 [% IF item_level_itypes && onloan_items_loo.description %]
588 <br/>[% onloan_items_loo.description %]
589 [% END %]
590 </li>
591 [% END %]
592 </ul>
593 [% END %]

The actual text in the rendered HTML is

(, 1 long overdue) date due:

So it seems that

onloan_items_loo.branchname.
onloan_items_loo.location,
onloan_items_loo.itemcallnumber and
onloan_items_loo.count

are not populated, but

onloan_items_loo.longoverdue is 1.

I'll have to take a look at how SEARCH_RESULT.onloan_items_loop is populated...

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


More information about the Koha-bugs mailing list