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.
---
.../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 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' %]
<title>Koha › Serials › 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>
--
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/