From 7bdce5f84976fc239eb7b9fbab459a558c169615 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 19 Jul 2013 12:39:18 -0400 Subject: [PATCH] Bug 10609 - Use branch name rather than branch code in serials-collection.pl The serials collection page displays branchcode instead of library name. This patch uses the Branches template plugin to display the library name instead. Also corrected: Added missing datatables config include to prevent a JavaScript error. To test, view the serials collection page for a subsciption with existing issues. Library names should be displayed instead of branchcodes. There should be no JavaScript errors reported by the browser. Signed-off-by: Mirko Tietgen --- .../prog/en/modules/serials/serials-collection.tt | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt index b833795..3efe36d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt @@ -1,8 +1,10 @@ +[% USE Branches %] [% INCLUDE 'doc-head-open.inc' %] Koha › Serials › Serial collection information for [% bibliotitle %] [% INCLUDE 'doc-head-close.inc' %] +[% INCLUDE 'datatables-strings.inc' %] @@ -175,7 +177,7 @@ $(document).ready(function() { [% IF ( subscription.numberpattern7 ) %] None of the above [% END %] - [% subscription.branchcode %] + [% Branches.GetName( subscription.branchcode ) %] [% subscription.callnumber %] [% subscription.notes %] [% UNLESS subscription.closed %] @@ -311,7 +313,7 @@ $(document).ready(function() { [% serial.notes %] - [% serial.branchcode %] + [% Branches.GetName( serial.branchcode ) %] [% IF ( routing ) %] -- 1.7.2.5