From e868a83d94ab40a6575da80adabaf59b416df4c6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 Aug 2013 10:57:02 -0400 Subject: [PATCH] Bug 10672 - Add subtitle to display of checkouts, overdues, and holds on the patron summary In the OPAC, the patron summary page (opac-user.pl) should display subtitle along with title in the lists of checkouts, overdues, and holds. This patch adds it. To test, log in to the OPAC as a patron who has checkouts, overdues, and holds which include titles with subtitles. Titles should appear correctly with and without subtitles. Signed-off-by: Srdjan Signed-off-by: Kyle M Hall Signed-off-by: Galen Charlton (cherry picked from commit ec070fa8375d9001041fc089ff193b17f87ae4c1) Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 14d2ac659a55e9a3fd601994546c538a1fb11f6f) Signed-off-by: Bernardo Gonzalez Kriegel (cherry picked from commit 14d2ac659a55e9a3fd601994546c538a1fb11f6f) --- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 6 +++--- opac/opac-user.pl | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt index d19613c0eb..2a54a5e64e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -179,7 +179,7 @@ $.tablesorter.addParser({ [% END %] - [% ISSUE.title |html %] + [% ISSUE.title |html %][% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %] [% ISSUE.author %] [% IF ( ISSUE.overdue ) %] @@ -325,7 +325,7 @@ $.tablesorter.addParser({ [% END %] [% END %] -[% OVERDUE.title |html %] [% OVERDUE.author %] +[% OVERDUE.title |html %][% FOREACH subtitl IN OVERDUE.subtitle %] [% subtitl.subfield %][% END %] [% OVERDUE.author %] [% UNLESS ( item_level_itypes ) %][% IF ( OVERDUE.imageurl ) %][% OVERDUE.description %][% END %] [% OVERDUE.description %][% END %] [% IF ( show_barcode ) %][% OVERDUE.barcode %][% END %] @@ -380,7 +380,7 @@ $.tablesorter.addParser({ [% ELSE %] [% END %] - [% RESERVE.reserves_title %] + [% RESERVE.reserves_title %][% FOREACH subtitl IN RESERVE.subtitle %] [% subtitl.subfield %][% END %] [% RESERVE.author %] [% RESERVE.reservedate | $KohaDates %] diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 68a3340a79..d595d64763 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -177,7 +177,7 @@ if ($issues){ } } $issue->{'charges'} = $charges; - + $issue->{'subtitle'} = GetRecordValue('subtitle', GetMarcBiblio($issue->{'biblionumber'}), GetFrameworkCode($issue->{'biblionumber'})); # check if item is renewable my ($status,$renewerror) = CanBookBeRenewed( $borrowernumber, $issue->{'itemnumber'} ); ($issue->{'renewcount'},$issue->{'renewsallowed'},$issue->{'renewsleft'}) = GetRenewCount($borrowernumber, $issue->{'itemnumber'}); @@ -257,7 +257,7 @@ foreach my $res (@reserves) { if ( $res->{'expirationdate'} eq '0000-00-00' ) { $res->{'expirationdate'} = ''; } - + $res->{'subtitle'} = GetRecordValue('subtitle', GetMarcBiblio($res->{'biblionumber'}), GetFrameworkCode($res->{'biblionumber'})); $res->{'waiting'} = 1 if $res->{'found'} eq 'W'; $res->{'branch'} = $branches->{ $res->{'branchcode'} }->{'branchname'}; my $biblioData = GetBiblioData($res->{'biblionumber'}); -- 2.39.5