Bugzilla – Attachment 105684 Details for
Bug 25676
Staff interface catalog search shows incorrect item status under location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25676: Display the correct Lost value in the result search
Bug-25676-Display-the-correct-Lost-value-in-the-re.patch (text/plain), 3.12 KB, created by
Jonathan Druart
on 2020-06-10 11:02:06 UTC
(
hide
)
Description:
Bug 25676: Display the correct Lost value in the result search
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-06-10 11:02:06 UTC
Size:
3.12 KB
patch
obsolete
>From f1410b67cc1c2cc99f546efc92f072f282f79c39 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 10 Jun 2020 13:01:23 +0200 >Subject: [PATCH] Bug 25676: Display the correct Lost value in the result > search > >--- > C4/Search.pm | 2 +- > .../intranet-tmpl/prog/en/modules/catalogue/results.tt | 8 +++++++- > 2 files changed, 8 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 9d4f64e268..c03f0e463e 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1962,7 +1962,7 @@ sub searchResults { > > # if something's checked out and lost, mark it as 'long overdue' > if ( $item->{itemlost} ) { >- $onloan_items->{$key}->{longoverdue}++; >+ $onloan_items->{$key}->{lost}{$item->{itemlost}}++; > $longoverdue_count++; > } > else { # can place holds as long as item isn't lost >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 220d7de5ea..8259dce140 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -582,7 +582,13 @@ > [% 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 | html %]</a>] > [% END %] >- ([% onloan_items_loo.count | html %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue | html %] long overdue[% END %]) date due: [% onloan_items_loo.due_date | $KohaDates %] >+ ([% onloan_items_loo.count | html %] >+ [% IF onloan_items_loo.lost %], >+ [% FOR lost_av IN onloan_items_loo.lost.keys -%] >+ [%- onloan_items_loo.lost.$lost_av | html %] [% AuthorisedValues.GetByCode( 'LOST', lost_av ) | html -%] >+ [%- UNLESS loop.last %], [% END -%] >+ [%- END -%] >+ [%- END -%]) date due: [% onloan_items_loo.due_date | $KohaDates %] > [% IF item_level_itypes && onloan_items_loo.description %] > <br/>[% onloan_items_loo.description | html %] > [% END %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25676
:
105553
|
105554
| 105684