From 7bf698732727dd4f9c45630366df01d4345542a0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 8 Apr 2015 11:15:02 +0200 Subject: [PATCH] Bug 1487: Store the "display only used tags/subf" value in a cookie On the marc framework page, the checkbox to display only used tags/subfields is always unchecked. It should be stored into a cookie to always display the same view. Test plan: 1/ Go on the marc framework page 2/ Check the checkbox 3/ Go somewhere else on the staff interface 4/ Back to the marc framework page, the checkbox should be checked Signed-off-by: Josef Moravec Signed-off-by: Kyle M Hall Works as advertised, getting datatables error when using feature but the error exists pre-patch Signed-off-by: Tomas Cohen Arazi --- admin/marctagstructure.pl | 2 +- .../intranet-tmpl/prog/en/modules/admin/marctagstructure.tt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index e8ae8bcdae..77286871fd 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -40,7 +40,7 @@ $searchfield=~ s/\,//g; my $offset = $input->param('offset') || 0; my $op = $input->param('op') || ''; -my $dspchoice = $input->param('select_display'); +my $dspchoice = $input->cookie("marctagstructure_selectdisplay") // $input->param('select_display'); my $pagesize = 20; my $script_name = "/cgi-bin/koha/admin/marctagstructure.pl"; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt index 17ee4202e9..01f20af129 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt @@ -7,6 +7,7 @@ [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'datatables.inc' %] +