From 5bbea3ea2ca08e7d1b785cdfb90524bb29f553ac Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 25 May 2015 12:13:08 +0200 Subject: [PATCH] Bug 14269: OPAC: Some template improvements for the full serial history page MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - Fix filter labels: Library : -> Library: Subscription : -> Subscription: - Make '(All)' entry in filter pull downs translatable - Show branch name instead of branchcode in table and filter To test: - Verify changes as described above - Verify filters still work as expected Followed test plan. Works as expected. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../en/modules/opac-full-serial-issues.tt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt index f0b91c1779..18e18941be 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-full-serial-issues.tt @@ -1,5 +1,6 @@ [% USE Koha %] [% USE KohaDates %] +[% USE Branches %] [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Full subscription history for [% bibliotitle %] [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %] @@ -26,10 +27,9 @@

Refine your search

- + - - +
@@ -90,7 +90,7 @@   [% END %] - [% serial.branchcode %] + [% Branches.GetName( serial.branchcode ) %] [% serial.notes %] [% IF ( serial.status2 && serial.planneddate ) %] @@ -174,13 +174,14 @@ }); // Setting the option values with branchcodes - $("#libraryfilter").append(''); + $("#libraryfilter").append(''); for (var i = 0; i < subarray.length; i++) { $("#libraryfilter").append(''); } } // Filter by Library + function filterByLibrary() { selectedStatus = $("#libraryfilter").val(); @@ -205,7 +206,7 @@ if (subarray.indexOf($(this).text()) == -1) { subarray.push($(this).text()); } }); // Setting the option values with subscription id's - $("#subscriptionidfilter").append(''); + $("#subscriptionidfilter").append(''); for (var i = 0; i < subarray.length; i++) { $("#subscriptionidfilter").append(''); } @@ -248,7 +249,7 @@ // Remove old subscription options $("#subscriptionidfilter option").remove(); - $("#subscriptionidfilter option").append(''); + $("#subscriptionidfilter option").append(''); $("#subscriptionidfilter").attr("disabled", "disabled"); if (keeplibrary != true) { -- 2.39.5