From 3c80b7c19e07ae2c19a45949d91b78ac339a30e9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 9 May 2016 17:59:52 +0100 Subject: [PATCH] Bug 16478: Fix checkout history tabs - intranet MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test plan: Same as before for the intranet. And please retest the OPAC => I have changed the filter's values to match OPAC/intranet Signed-off-by: Jonathan Druart Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall --- .../intranet-tmpl/prog/en/modules/members/readingrec.tt | 7 +++---- .../opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt index 2937e15c56..5f2e1d836b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/readingrec.tt @@ -88,11 +88,10 @@ [% FOREACH issue IN loop_reading %] [% IF issue.returndate %][% ELSE %][% END %] - [% IF issue.onsite_checkout %] - onsite_checkout - [% ELSE %] - standard_checkout + [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %] + [% ELSE %][% issuetype = 'standard_checkout' %] [% END %] + [% issuetype %] [% issue.issuestimestamp | $KohaDates with_hours => 1 %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt index 19bbe49d86..c4a74195ee 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt @@ -80,8 +80,8 @@ [% FOREACH issue IN READING_RECORD %] - [% IF issue.onsite_checkout %][% issuetype = 'onsite' %] - [% ELSE %][% issuetype = 'checkout' %] + [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %] + [% ELSE %][% issuetype = 'standard_checkout' %] [% END %] [% issuetype %] @@ -192,9 +192,9 @@ select: function(e, ui) { var id = $(ui.tab).attr("id"); if ( id == "tab_checkout" ) { - table.fnFilter("checkout", 0); + table.fnFilter("standard_checkout", 0); } else if ( id == "tab_onsite_checkout" ) { - table.fnFilter("onsite", 0); + table.fnFilter("onsite_checkout", 0); } else { // all table.fnFilter('', 0); } -- 2.39.5