Bug 17945 - Breadcrumbs broken on opac-serial-issues.pl
authorLuke Honiss <luke.honiss@gmail.com>
Thu, 19 Jan 2017 22:52:49 +0000 (22:52 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 21 Apr 2017 10:41:30 +0000 (12:41 +0200)
==TEST PLAN==
1) Make a subscription with a record
2) Search and view the record in OPAC
3) Click on the subscription tab and click more details
4) The breadcrumb will say 'Detals for' without the record name
5) Apply patch
6) Refresh the page
7) The breadcrumb will display the name of the record

(fixed small error)

Signed-off-by: Sonia BOUIS <sonia.bouis@univ-lyon3.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 39bcba540a6c00fc374284dc025297a568befed6)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit 9668331d4260928dbe91ec9710031e5ac63f5346)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

opac/opac-serial-issues.pl

index 11928bd..5b807ea 100755 (executable)
@@ -29,7 +29,6 @@ use C4::Letters;
 use C4::Output;
 use C4::Context;
 
-
 my $query      = new CGI;
 my $op         = $query->param('op');
 my $dbh        = C4::Context->dbh;
@@ -73,7 +72,6 @@ if ( $selectview eq "full" ) {
     my $yearmin = $subscriptions->[0]->{year};
     my $yearmax = $subscriptions->[ -1 ]->{year};
 
-
     # replace CR by <br> in librarian note
     # $subscription->{opacnote} =~ s/\n/\<br\/\>/g;
 
@@ -113,9 +111,12 @@ else {
     # replace CR by <br> in librarian note
     # $subscription->{opacnote} =~ s/\n/\<br\/\>/g;
 
+    my $title   = $subscriptions->[0]->{bibliotitle};
+
     $template->param(
         biblionumber      => scalar $query->param('biblionumber'),
         subscription_LOOP => $subscriptions,
+        bibliotitle        => $title,
     );
 }
 output_html_with_http_headers $query, $cookie, $template->output;