Bug 10609: Use library name rather than code in serials-collection.pl
authorOwen Leonard <oleonard@myacpl.org>
Fri, 19 Jul 2013 16:39:18 +0000 (12:39 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 1 Aug 2013 15:13:31 +0000 (15:13 +0000)
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 <mirko@abunchofthings.net>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works well and uses the new TT plugin for displaying the branch name.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt

index b833795..3efe36d 100644 (file)
@@ -1,8 +1,10 @@
+[% USE Branches %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Serials &rsaquo; Serial collection information for [% bibliotitle %]</title>
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
 [% INCLUDE 'doc-head-close.inc' %]
 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
+[% INCLUDE 'datatables-strings.inc' %]
 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
 
@@ -175,7 +177,7 @@ $(document).ready(function() {
                 [% IF ( subscription.numberpattern7 ) %]
                     None of the above
                 [% END %]</td>
-            <td> [% subscription.branchcode %]</td>
+            <td>[% Branches.GetName( subscription.branchcode ) %]</td>
             <td> [% subscription.callnumber %]</td>
         <td> [% subscription.notes %]
             [% UNLESS subscription.closed %]
@@ -311,7 +313,7 @@ $(document).ready(function() {
                     [% serial.notes %]
                 </td>
                 <td>
-                    [% serial.branchcode %]
+                    [% Branches.GetName( serial.branchcode ) %]
                 </td>
                 [% IF ( routing ) %]
                 <td>