From 3da4fe274728eebde736e9f7da2e9a692623a9e1 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Thu, 22 Jan 2015 15:46:48 +0200 Subject: [PATCH] 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 Signed-off-by: Brendan Gallagher Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 8 +++++++- opac/opac-user.pl | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) 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 f4cbddbf98..2e8d18f82c 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 995db7b011..56354c8232 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'}; -- 2.39.5