Bugzilla – Attachment 117410 Details for
Bug 26247
Search terms retained in header search creates UX inconsistency
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26247: Only copy header inputs if marked sticky
Bug-26247-Only-copy-header-inputs-if-marked-sticky.patch (text/plain), 27.48 KB, created by
Nick Clemens
on 2021-02-28 16:30:32 UTC
(
hide
)
Description:
Bug 26247: Only copy header inputs if marked sticky
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2021-02-28 16:30:32 UTC
Size:
27.48 KB
patch
obsolete
>From a99a385a787d1672a8ee5ec87a4ea7a4f33bb154 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Sun, 28 Feb 2021 15:51:27 +0000 >Subject: [PATCH] Bug 26247: Only copy header inputs if marked sticky > >This alters the 'keep_text' function to require 'head-searchbox' elements >to be marked with class 'sticky' ti have values carry over > >There have been complaints about the stickiness of retained search terms, this >patch attempts to mitigate that while preserving stickiness for other searches > >To test: >1 - Enable 'StaffRetainSearchTerms' (or don't apply previous patches) >2 - Search in staff client from header >3 - Search term is retained in the search box >4 - Click abother tab like 'checkin' >5 - Search term is copied to new tab >6 - Apply patch >7 - Reload the page >8 - Search in header >9 - Search term still retained >10 - Click on another header tab >11 - Search term is not copied >--- > koha-tmpl/intranet-tmpl/prog/en/includes/adv-search.inc | 6 +++--- > koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc | 8 ++++---- > koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc | 6 +++--- > koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc | 4 ++-- > .../intranet-tmpl/prog/en/includes/contracts-admin-search.inc | 2 +- > .../intranet-tmpl/prog/en/includes/currencies-admin-search.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/desks-admin-search.inc | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc | 6 +++--- > koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc | 4 ++-- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 8 ++++---- > koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/prefs-admin-search.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 2 +- > 18 files changed, 36 insertions(+), 36 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/adv-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/adv-search.inc >index a62f8e3556..ca3502fa4b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/adv-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/adv-search.inc >@@ -8,14 +8,14 @@ > <div id="checkin_search" class="residentsearch"> > <label class="tip" for="ret_barcode">Scan a barcode to check in:</label> > <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off"> >- <input type="text" name="barcode" class="head-searchbox" id="ret_barcode" size="40" accesskey="r" /> >+ <input type="text" name="barcode" class="head-searchbox sticky" id="ret_barcode" size="40" accesskey="r" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> > <div id="renew_search" class="residentsearch"> > <label class="tip" for="ren_barcode">Scan a barcode to renew:</label> > <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off"> >- <input type="text" class="head-searchbox" name="barcode" id="ren_barcode" size="40" /> >+ <input type="text" class="head-searchbox sticky" name="barcode" id="ren_barcode" size="40" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> >@@ -25,7 +25,7 @@ > <div id="patron_search" class="residentsearch"> > <label class="tip" for="searchmember">Enter patron card number or partial name:</label> > <form action="/cgi-bin/koha/members/member.pl" method="post"> >- <input name="searchmember" class="head-searchbox" id="searchmember" size="40" type="text" /> >+ <input name="searchmember" class="head-searchbox sticky" id="searchmember" size="40" type="text" /> > <input type="hidden" name="quicksearch" value="1" /> > <input value="Submit" class="submit" type="submit" /> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc >index 13474f87c1..e2c75a6ac6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc >@@ -37,7 +37,7 @@ > <option value="is">is exactly</option> > [% END %] > </select> >- <input id="value_mainentry" type="text" name="value" value="[% value | html %]" class="head-searchbox" /> >+ <input id="value_mainentry" type="text" name="value" value="[% value | html %]" class="head-searchbox sticky" /> > <select name="orderby"> > [% IF ( orderby == 'HeadingAsc' ) %] > <option value="HeadingAsc" selected="selected">Heading A-Z</option> >@@ -93,7 +93,7 @@ > <option value="is">is exactly</option> > [% END %] > </select> >- <input id="value_mainheading" type="text" name="value" value="[% value | html %]" class="head-searchbox" /> >+ <input id="value_mainheading" type="text" name="value" value="[% value | html %]" class="head-searchbox sticky" /> > <select name="orderby"> > [% IF ( orderby == 'HeadingAsc' ) %] > <option value="HeadingAsc" selected="selected">Heading A-Z</option> >@@ -147,7 +147,7 @@ > <option value="is">is exactly</option> > [% END %] > </select> >- <input id="value_matchheading" type="text" name="value" value="[% value | html %]" class="head-searchbox" /> >+ <input id="value_matchheading" type="text" name="value" value="[% value | html %]" class="head-searchbox sticky" /> > <select name="orderby"> > [% IF ( orderby == 'HeadingAsc' ) %] > <option value="HeadingAsc" selected="selected">Heading A-Z</option> >@@ -203,7 +203,7 @@ > <option value="is">is exactly</option> > [% END %] > </select> >- <input id="value_anywhere" type="text" name="value" value="[% value | html %]" class="head-searchbox" /> >+ <input id="value_anywhere" type="text" name="value" value="[% value | html %]" class="head-searchbox sticky" /> > <select name="orderby"> > [% IF ( orderby == 'HeadingAsc' ) %] > <option value="HeadingAsc" selected="selected">Heading A-Z</option> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc >index e280286ce6..79185b67ad 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc >@@ -9,7 +9,7 @@ > <div id="checkin_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off"> > <label class="tip" for="ret_barcode">Scan a barcode to check in:</label> >- <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" type="text" /> >+ <input class="head-searchbox sticky" name="barcode" id="ret_barcode" size="40" type="text" /> > > <input value="Submit" class="submit" type="submit" /> > </form> >@@ -17,7 +17,7 @@ > <div id="renew_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off"> > <label class="tip" for="ren_barcode">Scan a barcode to renew:</label> >- <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" /> >+ <input class="head-searchbox sticky" name="barcode" id="ren_barcode" size="40" type="text" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc >index fe5a09163c..8b07d97123 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-search.inc >@@ -5,7 +5,7 @@ > <div id="addbooks_search" class="residentsearch"> > <form name="search" action="addbooks.pl"> > <label class="tip" for="cat_search">Search the catalog and the reservoir:</label> >- <input class="head-searchbox" type="text" name="q" id="cat_search" size="40" /> >+ <input class="head-searchbox sticky" type="text" name="q" id="cat_search" size="40" /> > <input type="submit" class="submit" value="Submit" /> > </form> > </div> >@@ -16,14 +16,14 @@ > <div id="checkin_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off"> > <label class="tip" for="ret_barcode">Scan a barcode to check in:</label> >- <input class="head-searchbox" type="text" name="barcode" id="ret_barcode" size="40" /> >+ <input class="head-searchbox sticky" type="text" name="barcode" id="ret_barcode" size="40" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> > <div id="renew_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off"> > <label class="tip" for="ren_barcode">Scan a barcode to renew:</label> >- <input class="head-searchbox" type="text" name="barcode" id="ren_barcode" size="40" /> >+ <input class="head-searchbox sticky" type="text" name="barcode" id="ren_barcode" size="40" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc >index ef3a232e78..5be4f15574 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc >@@ -8,7 +8,7 @@ > <div id="renew_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off"> > <label class="tip" for="ren_barcode">Scan a barcode to renew:</label> >- <input class="head-searchbox" type="text" name="barcode" id="ren_barcode" size="40" /> >+ <input class="head-searchbox sticky" type="text" name="barcode" id="ren_barcode" size="40" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> >@@ -23,7 +23,7 @@ > [% ELSE %] > <label class="tip" for="search-form">Enter search keywords:</label> > [% END %] >- <input class="head-searchbox" type="text" name="q" id="search-form" size="40" /> >+ <input class="head-searchbox sticky" type="text" name="q" id="search-form" size="40" /> > <input type="submit" class="submit" value="Submit"/> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc >index 2e82fb6e89..e0044eefa4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc >@@ -8,14 +8,14 @@ > <div id="checkin_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off"> > <label class="tip" for="ret_barcode">Scan a barcode to check in:</label> >- <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" accesskey="r" type="text" /> >+ <input class="head-searchbox sticky" name="barcode" id="ret_barcode" size="40" accesskey="r" type="text" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> > <div id="renew_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off"> > <label class="tip" for="ren_barcode">Scan a barcode to renew:</label> >- <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" /> >+ <input class="head-searchbox sticky" name="barcode" id="ren_barcode" size="40" type="text" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc >index 294af36d9c..5cbba32a28 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc >@@ -5,7 +5,7 @@ > <div id="city_search" class="residentsearch"> > <form action="[% script_name | html %]" method="post"> > <label class="tip" for="city_name_filter">City search:</label> >- <input class="head-searchbox" type="text" name="city_name_filter" id="city_name_filter" value="[% city_name_filter | html %]" size="40" /> >+ <input class="head-searchbox sticky" type="text" name="city_name_filter" id="city_name_filter" value="[% city_name_filter | html %]" size="40" /> > <input type="submit" name="submit" value="OK" class="submit" /> > </form> > </div> >@@ -21,7 +21,7 @@ > [% ELSE %] > <label class="tip" for="search-form">Enter search keywords:</label> > [% END %] >- <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox form-text" /> >+ <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox sticky form-text" /> > <input type="submit" value="Submit" class="submit" /> > </form> > </div>[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc >index 85ad5e2c11..4eb59a5d92 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc >@@ -6,7 +6,7 @@ > <div id="contract_description_search" class="residentsearch"> > <form action="[% script_name | html %]" method="post"> > <label class="tip" for="searchfield">Search by contract name or/and description:</label> >- <input class="head-searchbox" type="text" name="searchfield" id="searchfield" size="40" value="[% searchfield | html %]" /> >+ <input class="head-searchbox sticky" type="text" name="searchfield" id="searchfield" size="40" value="[% searchfield | html %]" /> > <input type="submit" class="submit" name="search" value="Search" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/currencies-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/currencies-admin-search.inc >index 48c30f7690..a332b41470 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/currencies-admin-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/currencies-admin-search.inc >@@ -5,7 +5,7 @@ > <div id="currency_search" class="residentsearch"> > <form action="[% script_name | html %]" method="post"> > <label class="tip" for="description">Currencies search:</label> >- <input class="head-searchbox" type="text" name="description" id="description" size="40" value="[% searchfield | html %]" /> >+ <input class="head-searchbox sticky" type="text" name="description" id="description" size="40" value="[% searchfield | html %]" /> > <input type="submit" class="submit" name="search" value="Search" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/desks-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/desks-admin-search.inc >index 5b67592d68..863d267acd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/desks-admin-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/desks-admin-search.inc >@@ -5,7 +5,7 @@ > <div id="desk_search" class="residentsearch"> > <form action="[% script_name|html %]" method="post"> > <label class="tip" for="desk_name">Desk search:</label> >- <input class="head-searchbox" type="text" name="desk_name" id="desk_name" value="[% searchfield|html %]" size="40" /> >+ <input class="head-searchbox sticky" type="text" name="desk_name" id="desk_name" value="[% searchfield|html %]" size="40" /> > <input type="submit" name="submit" value="OK" class="submit" /> > </form> > </div> >@@ -21,7 +21,7 @@ > [% ELSE %] > <label class="tip" for="search-form">Enter search keywords:</label> > [% END %] >- <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox form-text" /> >+ <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox sticky form-text" /> > <input type="submit" value="Submit" class="submit" /> > </form> > </div>[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc >index 27c55daa06..40f334fb33 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc >@@ -8,14 +8,14 @@ > <div id="checkin_search" class="residentsearch"> > <label class="tip" for="ret_barcode">Scan a barcode to check in:</label> > <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off"> >- <input name="barcode" class="head-searchbox" id="ret_barcode" size="40" accesskey="r" type="text" /> >+ <input name="barcode" class="head-searchbox sticky" id="ret_barcode" size="40" accesskey="r" type="text" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> > <div id="renew_search" class="residentsearch"> > <label class="tip" for="ren_barcode">Scan a barcode to renew:</label> > <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off"> >- <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" /> >+ <input class="head-searchbox sticky" name="barcode" id="ren_barcode" size="40" type="text" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> >@@ -25,7 +25,7 @@ > <div id="patron_search" class="residentsearch"> > <label class="tip" for="searchmember">Enter patron card number or partial name:</label> > <form action="/cgi-bin/koha/members/member.pl" method="post"> >- <input name="searchmember" class="head-searchbox" id="searchmember" size="40" type="text" autocomplete="off" /> >+ <input name="searchmember" class="head-searchbox sticky" id="searchmember" size="40" type="text" autocomplete="off" /> > <input type="hidden" name="quicksearch" value="1" /> > <input value="Submit" class="submit" type="submit" /> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc >index 281ce2df1a..ae307c12ad 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc >@@ -5,7 +5,7 @@ > <div id="notices_search" class="residentsearch"> > <form action="/cgi-bin/koha/tools/letter.pl" method="post"> > <label class="tip" for="searchfield">Search existing notices:</label> >- <input class="head-searchbox" type="text" name="searchfield" id="searchfield" size="40" value="" /> >+ <input class="head-searchbox sticky" type="text" name="searchfield" id="searchfield" size="40" value="" /> > <input type="submit" class="submit" name="search" value="Search" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc >index 726e39d30d..a331d15622 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc >@@ -4,7 +4,7 @@ > <label class="tip" for="findborrower">Enter patron card number or partial name:</label> > [% IF ( PatronAutoComplete ) %] > <div class="autocomplete"> >- <input autocomplete="off" id="findborrower" name="findborrower" size="40" class="head-searchbox focus" type="text" /> >+ <input autocomplete="off" id="findborrower" name="findborrower" size="40" class="head-searchbox sticky focus" type="text" /> > <input id="autocsubmit" type="submit" class="submit" value="Submit" /> > [% IF ( stickyduedate ) %] > <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> >@@ -12,7 +12,7 @@ > [% END %] > </div> > [% ELSE %] >- <input id="findborrower" name="findborrower" size="40" class="head-searchbox focus" type="text" autocomplete="off" /> >+ <input id="findborrower" name="findborrower" size="40" class="head-searchbox sticky focus" type="text" autocomplete="off" /> > [% IF ( stickyduedate ) %] > <input type="hidden" name="duedatespec" value="[% duedatespec | html %]" /> > <input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" /> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index b8aee067d9..39fb0c5181 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -11,7 +11,7 @@ > <form action="/cgi-bin/koha/members/member.pl" method="post"> > <label class="tip" for="searchmember">Enter patron card number or partial name:</label> > <div class="autocomplete"> >- <input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox focus" name="searchmember" type="text" value="[% searchmember | html %]" autocomplete="off" /> >+ <input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox sticky focus" name="searchmember" type="text" value="[% searchmember | html %]" autocomplete="off" /> > <input type="hidden" name="quicksearch" value="1" /> > <span class="filteraction" id="filteraction_off"> <a href="#">[-]</a></span> > <span class="filteraction" id="filteraction_on"> <a href="#">[+]</a></span> >@@ -84,14 +84,14 @@ > <div id="checkin_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off"> > <label class="tip" for="ret_barcode">Scan a barcode to check in:</label> >- <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" accesskey="r" type="text" /> >+ <input class="head-searchbox sticky" name="barcode" id="ret_barcode" size="40" accesskey="r" type="text" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> > <div id="renew_search" class="residentsearch"> > <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off"> > <label class="tip" for="ren_barcode">Scan a barcode to renew:</label> >- <input class="head-searchbox" name="barcode" id="ren_barcode" size="40" type="text" /> >+ <input class="head-searchbox sticky" name="barcode" id="ren_barcode" size="40" type="text" /> > <input value="Submit" class="submit" type="submit" /> > </form> > </div> >@@ -106,7 +106,7 @@ > [% ELSE %] > <label class="tip" for="search-form">Enter search keywords:</label> > [% END %] >- <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox form-text" /> >+ <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox sticky form-text" /> > <input type="submit" name="op" id="opac-submit" value="Submit" class="submit" /> > </form> > </div>[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc >index b781094798..87c2b97e91 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patrons-admin-search.inc >@@ -5,7 +5,7 @@ > <div id="patron_category_search" class="residentsearch"> > <form action="[% script_name | html %]" method="post"> > <label class="tip" for="description">Search by patron category name:</label> >- <input class="head-searchbox" type="text" name="description" size="40" value="[% searchfield | html %]" /> >+ <input class="head-searchbox sticky" type="text" name="description" size="40" value="[% searchfield | html %]" /> > <input type="submit" class="submit" name="search" value="Search" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-admin-search.inc >index bbd27362e4..b6202d52d4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-admin-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-admin-search.inc >@@ -7,7 +7,7 @@ > <label class="tip" for="searchfield">System preference search:</label> > <input type="hidden" name="tab" value="[% last_tab | html %]" /> > <input type="hidden" name="op" value="search" /> >- <input class="head-searchbox" type="text" size="40" name="searchfield" id="searchfield" value=""> >+ <input class="head-searchbox sticky" type="text" size="40" name="searchfield" id="searchfield" value=""> > <input type="submit" class="submit" value="Search" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc >index 3d78eafdaf..052d2a6c8e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc >@@ -5,7 +5,7 @@ > <div id="z3950_search" class="residentsearch"> > <form action="/cgi-bin/koha/admin/z3950servers.pl" method="post"> > <label class="tip" for="searchfield">Z39.50/SRU server search:</label> >- <input class="head-searchbox" type="text" name="searchfield" id="searchfield" size="40" value="[% searchfield | html %]" /> >+ <input class="head-searchbox sticky" type="text" name="searchfield" id="searchfield" size="40" value="[% searchfield | html %]" /> > <input type="submit" class="submit" name="search" value="Search" /> > </form> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >index 4f06af9465..27006cae0b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js >@@ -258,7 +258,7 @@ function playSound( sound ) { > > // For keeping the text when navigating the search tabs > function keep_text(clicked_index) { >- var searchboxes = document.getElementsByClassName("head-searchbox"); >+ var searchboxes = document.getElementsByClassName("head-searchbox sticky"); > var persist = searchboxes[0].value; > > for (i = 0; i < searchboxes.length - 1; i++) { >-- >2.11.0
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 26247
:
117408
|
117409
|
117410
|
117411
|
117461
|
117535
|
117536
|
117537
|
117538
|
117539
|
120353
|
120354
|
120355
|
120356
|
120357
|
120358
|
120359
|
120360
|
136683
|
136767
|
137310
|
138478
|
140473
|
140474