@@ -, +, @@
---
.../bootstrap/en/modules/opac-full-serial-issues.tt | 3 +++
opac/opac-serial-issues.pl | 5 ++++-
2 files changed, 7 insertions(+), 1 deletion(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt
@@ -1,6 +1,7 @@
[% USE Koha %]
[% USE KohaDates %]
[% USE Branches %]
+[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
Full subscription history for [% bibliotitle | html %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog
[% INCLUDE 'doc-head-close.inc' %]
@@ -104,6 +105,8 @@
Full history
[% END %]
+
+ Location: [% AuthorisedValues.GetByCode( 'LOC', location, 1 ) | html %]
Show year:
--- a/opac/opac-serial-issues.pl
+++ a/opac/opac-serial-issues.pl
@@ -35,6 +35,7 @@ $selectview = C4::Context->preference("SubscriptionHistory") unless $selectview;
# my $id;
my ( $template, $loggedinuser, $cookie );
my $biblionumber = $query->param('biblionumber');
+my $small_subscriptions = GetSubscriptionsFromBiblionumber($biblionumber);
if ( $selectview eq "full" ) {
( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
@@ -65,12 +66,14 @@ if ( $selectview eq "full" ) {
my $title = $subscriptions->[0]->{bibliotitle};
my $yearmin = $subscriptions->[0]->{year};
my $yearmax = $subscriptions->[ -1 ]->{year};
+ my $location = $small_subscriptions->[0]->{location};
$template->param(
biblionumber => scalar $query->param('biblionumber'),
years => $subscriptioninformation,
yearmin => $yearmin,
yearmax => $yearmax,
+ location => $location,
bibliotitle => $title,
suggestion => C4::Context->preference("suggestion"),
virtualshelves => C4::Context->preference("virtualshelves"),
@@ -87,7 +90,7 @@ else {
}
);
- my $subscriptions = GetSubscriptionsFromBiblionumber($biblionumber);
+ my $subscriptions = $small_subscriptions;
# now, check is there is an alert subscription for one of the subscriptions
if ($loggedinuser) {
foreach (@$subscriptions) {
--