Bugzilla – Attachment 37570 Details for
Bug 1487
Set only the used fields/subfields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 1487: Store the "display only used tags/subf" value in a cookie
SIGNED-OFF-Bug-1487-Store-the-display-only-used-ta.patch (text/plain), 2.90 KB, created by
Josef Moravec
on 2015-04-08 10:31:26 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 1487: Store the "display only used tags/subf" value in a cookie
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2015-04-08 10:31:26 UTC
Size:
2.90 KB
patch
obsolete
>From 565c5a9b7c4d89c4dcb31be980e0516809316097 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 8 Apr 2015 11:15:02 +0200 >Subject: [PATCH] [SIGNED-OFF] 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 <josef.moravec@gmail.com> >--- > admin/marctagstructure.pl | 2 +- > koha-tmpl/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 f969b07..82b2231 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 17ee420..01f20af 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' %] > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> > [% INCLUDE 'datatables.inc' %] >+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script> > > <script type="text/javascript"> > //<![CDATA[ >@@ -169,9 +170,9 @@ $(document).ready(function() { > <input type="submit" value="Search" /> > <p> <label for="select_display">Display only used tags/subfields</label> > [% IF ( select_display ) %] >- <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" onchange="this.form.submit();" /> >+ <input type="checkbox" name="select_display" id="select_display" value="True" checked="checked" onchange="$.cookie('marctagstructure_selectdisplay', 0); this.form.submit();" /> > [% ELSE %] >- <input type="checkbox" name="select_display" id="select_display" value="True" onchange="this.form.submit();" /> >+ <input type="checkbox" name="select_display" id="select_display" value="True" onchange="$.cookie('marctagstructure_selectdisplay', 1); this.form.submit();" /> > [% END %]</p> > </fieldset> > </form> >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 1487
:
4813
|
37564
|
37570
|
37571
|
37657