From ad0cd505eb71634d2a3798463ce1c8ebc7a2459c Mon Sep 17 00:00:00 2001 From: Charles Farmer Date: Fri, 15 Jul 2016 14:18:29 -0400 Subject: [PATCH] Bug 14668: Show serial enumeration in INTRANET circulation.tt and OPAC patron's relatives' checkouts TEST PLAN 1. THE CHECKOUT TAB, INTRANET 1.1. Add a value to the 'h' subfield of an item. ie: 'volume #42' 1.2. Check out the item to a patron 1.3. Display this patron's issues in his checkout page 1.3.1. The enumchron should be concatenated with the title 2. A PATRON'S RELATIVE, INTRANET + OPAC 1.1. Add somebody to a patron's guarantee list 1.2. Checkout a serial to this guarantee 1.3. Visit the guarantor's OPAC and INTRANET checkout page 1.3.1. You should see the enumchron in his guarantee's issues Signed-off-by: Hector Castro Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 8 ++++++++ koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 3 ++- svc/checkouts | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index bf419d7ae7..cca2a28108 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -227,6 +227,10 @@ $(document).ready(function() { title += " " + value.subfield; }); + if ( oObj.enumchron ) { + title += ' ' + oObj.enumchron; + } + title += ""; if ( oObj.author ) { @@ -499,6 +503,10 @@ $(document).ready(function() { title += " " + value.subfield; }); + if ( oObj.enumchron ) { + title += ' ' + oObj.enumchron; + } + title += ""; if ( oObj.author ) { diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 9aa4cc3c77..4e276435ab 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -221,6 +221,7 @@ Using this account is not recommended because some parts of Koha will not functi [% ISSUE.title |html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %] + [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %] [% ISSUE.author %] [% IF ( ISSUE.overdue ) %] @@ -382,7 +383,7 @@ Using this account is not recommended because some parts of Koha will not functi - [% i.item.biblio.title %] + [% i.item.biblio.title %][% IF ( i.item.enumchron ) %] [% i.item.enumchron %][% END %] diff --git a/svc/checkouts b/svc/checkouts index e613126016..f1e3ffa1c3 100755 --- a/svc/checkouts +++ b/svc/checkouts @@ -97,6 +97,7 @@ my $sql = ' itemlost, damaged, location, + items.enumchron, DATEDIFF( issuedate, CURRENT_DATE() ) AS not_issued_today FROM issues @@ -173,6 +174,7 @@ while ( my $c = $sth->fetchrow_hashref() ) { date_due_overdue => $c->{date_due_overdue} ? JSON::true : JSON::false, timestamp => $c->{timestamp}, onsite_checkout => $c->{onsite_checkout}, + enumchron => $c->{enumchron}, renewals_count => $renewals_count, renewals_allowed => $renewals_allowed, renewals_remaining => $renewals_remaining, -- 2.39.5