From e76f84b889b7b2204c04f781a206fce7ec9ffe7c Mon Sep 17 00:00:00 2001
From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
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 <nengard@bywatersolutions.com>
---
 .../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 @@
                                             <tr>
                                         [% END %]
                                             <td class="title">
-                                                <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">[% RESERVE.reserves_title %] [% FOREACH subtitl IN RESERVE.subtitle %] [% subtitl.subfield %][% END %]</a>
+                                                <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber %]">
+                                                    [% RESERVE.reserves_title %]
+                                                    [% FOREACH subtitl IN RESERVE.subtitle %]
+                                                        [% subtitl.subfield %]
+                                                    [% END %]
+                                                    [% RESERVE.enumchron %]
+                                                </a>
                                                 [% RESERVE.author %]
                                             </td>
                                             <td class="reservedate">
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