From 82e1a1c1b39eb497a0ecf8742b2c1b272439b2b6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 19 Jul 2013 12:39:18 -0400 Subject: [PATCH] Bug 10609: Use library name rather than 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 Signed-off-by: Katrin Fischer Works well and uses the new TT plugin for displaying the branch name. Signed-off-by: Galen Charlton --- .../prog/en/modules/serials/serials-collection.tt | 6 ++++-- 1 file 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 b833795463..3efe36d05e 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 ) %] -- 2.39.5