From cb414b27ef4b737f8d0bad914af3b6cdaf4ff9d5 Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Mon, 19 Dec 2011 18:32:31 +0100 Subject: [PATCH] Add location and callnumber at OPAC subscription view --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 2 ++ opac/opac-detail.pl | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index 6713340..cabf4f0 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -776,6 +776,8 @@ YAHOO.util.Event.onContentReady("furtherm", function () {


[% IF ( subscription.branchname ) %][% subscription.branchname %][% ELSE %] [% IF ( subscription.branchcode ) %][% subscription.branchcode %][% END %][% END %] + [% IF ( subscription.location_description ) %], [% subscription.location_description %][% ELSE %], [% subscription.location %][% END %] + [% IF ( subscription.callnumber ) %], [% subscription.callnumber %][% END %]

[% IF ( subscription.subscriptionnotes ) %]

[% subscription.subscriptionnotes %]

[% END %] diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 8949444..5769480 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -444,6 +444,9 @@ foreach my $subscription (@subscriptions) { $cell{histenddate} = format_date($subscription->{histenddate}); $cell{branchcode} = $subscription->{branchcode}; $cell{branchname} = GetBranchName($subscription->{branchcode}); + $cell{location} = $subscription->{location}; + $cell{location_description} = $shelflocations->{ $subscription->{'location'} }; + $cell{callnumber} = $subscription->{callnumber}; $cell{hasalert} = $subscription->{hasalert}; #get the three latest serials. $serials_to_display = $subscription->{opacdisplaycount}; -- 1.7.2.5