From c656cff676b01b45b2b4057c776f963df37d4bd6 Mon Sep 17 00:00:00 2001 From: Eivin Giske Skaaren Date: Mon, 11 May 2015 18:57:11 +0000 Subject: [PATCH] Bug 14189: Made text persist when clicking the tabs under the searchbox To test: Apply the patch and see that the text now is there in the search box when clicking the tabs: check in, check out etc.. (More files changed for persistent text in searchbox) Sponsored-by: Halland County Library Signed-off-by: Magnus Enger This is something I have wanted quite a few times over the years... Tested by going to every main area of Koha, entering some random text into the search box and then clicking on all the available tabs to check that the entered text is carried over to all the boxes. There are a couple of places where text is not carried over, but I guess that might be because one of the boxes is structurally different to the others. These are: - "Vendor search" and "Orders search" in Acquisitions - "Search subscriptions" in Serials I have not looked at how this is implemented, just that it works as it should. Bug 14189 refactor after failed QA. Signed-off-by: Jonathan Druart Amended patch: replace tabs with spaces Signed-off-by: Tomas Cohen Arazi --- .../prog/en/includes/budgets-admin-search.inc | 10 +++---- .../prog/en/includes/cat-search.inc | 10 +++---- .../prog/en/includes/cataloging-search.inc | 14 ++++----- .../prog/en/includes/checkin-search.inc | 6 ++-- .../prog/en/includes/circ-search.inc | 10 +++---- .../prog/en/includes/cities-admin-search.inc | 10 +++---- .../en/includes/contracts-admin-search.inc | 10 +++---- .../en/includes/currencies-admin-search.inc | 10 +++---- .../prog/en/includes/doc-head-close.inc | 3 ++ .../prog/en/includes/home-search.inc | 14 ++++----- .../prog/en/includes/letters-search.inc | 10 +++---- .../prog/en/includes/patron-search-box.inc | 4 +-- .../prog/en/includes/patron-search.inc | 14 ++++----- .../prog/en/includes/patrons-admin-search.inc | 10 +++---- .../prog/en/includes/prefs-admin-search.inc | 12 ++++---- .../en/includes/printers-admin-search.inc | 10 +++---- .../prog/en/includes/searchbox-keep-text.inc | 30 +++++++++++++++++++ .../prog/en/includes/serials-search.inc | 6 ++-- .../en/includes/stopwords-admin-search.inc | 10 +++---- .../en/includes/suggestions-add-search.inc | 6 ++-- .../prog/en/includes/z3950-admin-search.inc | 10 +++---- 21 files changed, 126 insertions(+), 93 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/searchbox-keep-text.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-search.inc index b99c52a173..86d9b92ce3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-search.inc @@ -5,7 +5,7 @@ [% END %] 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 84cc3339d8..6eae19329f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc @@ -8,7 +8,7 @@ @@ -17,16 +17,16 @@ [% END %] 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 7315205398..1fda946fde 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 @@ @@ -14,7 +14,7 @@ @@ -23,17 +23,17 @@ [% INCLUDE 'patron-search-box.inc' %] 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 cf96ab9691..4f1e2b9c6b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/checkin-search.inc @@ -6,14 +6,14 @@ [% END %] 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 5a145c64ba..ab730ba203 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-search.inc @@ -7,7 +7,7 @@ [% END %] @@ -15,15 +15,15 @@ [% END %] 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 191f7f38d0..41bfdc47b3 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 @@ -4,7 +4,7 @@ @@ -15,14 +15,14 @@ [% 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 88145fb793..1d38559884 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 @@ -5,7 +5,7 @@ @@ -16,14 +16,14 @@ [% END %] 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 7ac9e3fd94..cbd6e5cc2f 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 @@ -4,7 +4,7 @@ @@ -13,14 +13,14 @@ [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc index 2f80b784b5..a93435bc5a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc @@ -56,3 +56,6 @@ var NO_LOCAL_JACKET = _("No cover image available"); //]]> [% END %] + + +[% INCLUDE 'searchbox-keep-text.inc' %] 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 f61ce8505f..fbf3618ba2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc @@ -7,7 +7,7 @@ [% END %] @@ -15,7 +15,7 @@ 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 1e28502747..806ee5ee2e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/letters-search.inc @@ -4,7 +4,7 @@ @@ -13,14 +13,14 @@ [% END %] 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 87f1969a5c..a7e9061ed7 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 @@ -26,7 +26,7 @@ $(document).ready(function(){
[% IF ( CircAutocompl ) %]
- + @@ -36,7 +36,7 @@ $(document).ready(function(){ [% END %]
[% ELSE %] - + [% IF ( stickyduedate ) %] 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 05a0e983c2..646c70a1d8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -7,7 +7,7 @@
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 3fd9f5d104..c248810b19 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 @@ -4,7 +4,7 @@ @@ -13,14 +13,14 @@ [% END %] 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 06b075256e..a224c896de 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 @@ -6,24 +6,24 @@
- +
[% INCLUDE 'patron-search-box.inc' %] [% IF ( CAN_user_catalogue ) %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc index 0fbc282f65..46deb14e09 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/printers-admin-search.inc @@ -4,7 +4,7 @@ @@ -13,15 +13,15 @@ [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/searchbox-keep-text.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/searchbox-keep-text.inc new file mode 100644 index 0000000000..3d7dbc2e28 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/searchbox-keep-text.inc @@ -0,0 +1,30 @@ + diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-search.inc index beb309c5fe..8ba2b1558c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-search.inc @@ -22,15 +22,15 @@ [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/stopwords-admin-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/stopwords-admin-search.inc index e45a5c7044..964f1b683e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/stopwords-admin-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/stopwords-admin-search.inc @@ -4,7 +4,7 @@ @@ -13,15 +13,15 @@ [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc index 877fcc2d29..58195c0210 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc @@ -18,15 +18,15 @@ [% END %] 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 f8430694d0..ffd5290d8f 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 @@ -4,7 +4,7 @@ @@ -15,15 +15,15 @@ [% END %] -- 2.39.5