Bugzilla – Attachment 123707 Details for
Bug 23656
Add search box at the top of the cataloging editor page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23656: Add hidden search bar to addbiblio and allow toggling
Bug-23656-Add-hidden-search-bar-to-addbiblio-and-a.patch (text/plain), 3.22 KB, created by
Nick Clemens (kidclamp)
on 2021-08-10 16:31:13 UTC
(
hide
)
Description:
Bug 23656: Add hidden search bar to addbiblio and allow toggling
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-08-10 16:31:13 UTC
Size:
3.22 KB
patch
obsolete
>From 22b751a4cc3fdc312ef2aa51e396d901e19c7e3d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 26 May 2021 10:35:02 +0000 >Subject: [PATCH] Bug 23656: Add hidden search bar to addbiblio and allow > toggling > >This patch adds the search header to the cataloging editor page, defaulted as hidden > >A new link is added to show the bar, or hide the bar > >To test: >1 - Apply patch >2 - Load the basic cataloging editor for a book >3 - Note new link near top 'Show search box' >4 - Click it >5 - Search box appears >6 - Click now visible 'Hide search box' >7 - Search box hides >8 - Confirm search box works as expected >9 - Repeat for the advanced cataloging editor >--- > .../intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt | 5 +++++ > .../intranet-tmpl/prog/en/modules/cataloguing/editor.tt | 5 +++++ > koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 6 ++++++ > 3 files changed, 16 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >index 00c6767d1a..6c94ea0a62 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -710,6 +710,11 @@ function PopupMARCFieldDoc(field) { > </div> > > [% INCLUDE 'header.inc' %] >+ <span class="cataloging_search_box" style="display:none;">[% INCLUDE 'cataloging-search.inc' %]</span> >+ <div> >+ <a class="search_toggle">Show search box</a> >+ <a class="search_toggle" style="display:none;">Hide search box</a> >+ </div> > > <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> > <ol> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt >index ba6b88b95b..b47b85da26 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt >@@ -16,6 +16,11 @@ > </div> > > [% INCLUDE 'header.inc' %] >+ <span class="cataloging_search_box" style="display:none;">[% INCLUDE 'cataloging-search.inc' %]</span> >+ <div> >+ <a class="search_toggle">Show search box</a> >+ <a class="search_toggle" style="display:none;">Hide search box</a> >+ </div> > [% PROCESS 'keyboard_shortcuts.inc' %] > > <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb"> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >index 2dc65396ad..e9ac01aa36 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >@@ -583,6 +583,12 @@ $(document).ready(function() { > $("input.input_marceditor, input.indicator").addClass('noEnterSubmit'); > }); > >+ //Toggle search box >+ $(".search_toggle").click(function(){ >+ $(".search_toggle").toggle(); >+ $(".cataloging_search_box").toggle("slow"); >+ }); >+ > if ( window.editor === undefined ) { // TODO This does not work with the advanced editor > Select2Utils.initSelect2($('.subfield_line select[data-category=""]')); // branches, itemtypes and cn_source > Select2Utils.initSelect2($('.subfield_line select[data-category!=""]')); >-- >2.20.1
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 23656
:
121421
|
122336
|
122337
|
122340
|
123707
|
131127
|
146743
|
146850
|
147356