From e76f84b889b7b2204c04f781a206fce7ec9ffe7c Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Thu, 22 Jan 2015 15:46:48 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 13611 - Serial enumeration not visible in the opac-user.pl when browsing own holds. Having placed holds on Serial Items with an enumchron, and browsing the opac-user.pl's "Holds"-tab, the user cannot see which numbers of magazines/serials he has on hold. This patch appends the koha.items.enumchron after the title component in the opac-user.pl's Holds-view. Signed-off-by: Nicole C. Engard --- .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 8 +++++++- opac/opac-user.pl | 1 + 2 files changed, 8 insertions(+), 1 deletions(-) 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 f4cbddb..2e8d18f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -525,7 +525,13 @@ [% END %] - [% RESERVE.reserves_title %] [% FOREACH subtitl IN RESERVE.subtitle %] [% subtitl.subfield %][% END %] + + [% RESERVE.reserves_title %] + [% FOREACH subtitl IN RESERVE.subtitle %] + [% subtitl.subfield %] + [% END %] + [% RESERVE.enumchron %] + [% RESERVE.author %] diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 995db7b..56354c8 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -311,6 +311,7 @@ foreach my $res (@reserves) { $res->{'holdingbranch'} = $branches->{ $item->{'holdingbranch'} }->{'branchname'}; $res->{'branch'} = $branches->{ $res->{'branchcode'} }->{'branchname'}; + $res->{'enumchron'} = $item->{'enumchron'} if $item->{'enumchron'}; # get document reserve status my $biblioData = GetBiblioData($res->{'biblionumber'}); $res->{'waiting_title'} = $biblioData->{'title'}; -- 1.7.2.5