Bugzilla – Attachment 156632 Details for
Bug 34562
Update more pop-up windows with consistent footer markup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34562: Update more pop-up windows with consistent footer markup
Bug-34562-Update-more-pop-up-windows-with-consiste.patch (text/plain), 6.67 KB, created by
Katrin Fischer
on 2023-10-06 14:42:19 UTC
(
hide
)
Description:
Bug 34562: Update more pop-up windows with consistent footer markup
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-10-06 14:42:19 UTC
Size:
6.67 KB
patch
obsolete
>From 257419ed2b0d92c5f3a6b84c40e06b49c8f37d17 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 17 Aug 2023 10:52:12 +0000 >Subject: [PATCH] Bug 34562: Update more pop-up windows with consistent footer > markup >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch updates a few more pop-up window templates to standardize the >markup of footer controls. The patch also updates the way catalog.js >triggers the "Add to list" pop-up so that it uses the same >window-opening JS function that similar pages do, since the default >gives us consistent popup features. > >To test, apply the patch and perform a catalog search in the staff >interface which will return multiple results. > >- Check the box next to one or more results. >- Click the "Add to list" button. > - Test the various options here: Add to an existing list, a new list, > or choose "More lists." > - In each case the pop-up window which appears should have a > consistent fixed footer with "Save" and "Cancel" buttons. > - Confirm that these controls can be navigated to using the tab key. > - Confirm that each one works correctly. > >- Go to Administration -> Z39.50/SRU servers -> New SRU server. > - Click the "Modify" button by the "SRU Search fields mapping" field. > - Inspect and test the resulting pop-up window. > - Switch the "Record type" dropdown to "Authority," click the > "Modify" button again, and test this version of the pop-up window > too. > >Signed-off-by: Ãmily-Rose Francoeur <emily-rose.francoeur@inLibro.com> >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > .../prog/en/modules/admin/sru_modmapping.tt | 12 ++++--- > .../en/modules/admin/sru_modmapping_auth.tt | 12 ++++--- > .../virtualshelves/addbybiblionumber.tt | 31 ++++++++++--------- > koha-tmpl/intranet-tmpl/prog/js/catalog.js | 3 +- > 4 files changed, 34 insertions(+), 24 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt >index e06d1c2be6..b76619cb92 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping.tt >@@ -72,10 +72,14 @@ > </div> > </div> > </fieldset> >- <fieldset class="action"> >- <input type="submit" class="btn btn-primary" value="Save" /> >- <a class="close cancel" href="#">Cancel</a> >- </fieldset> >+ <nav class="navbar navbar-default navbar-fixed-bottom"> >+ <div class="container-fluid"> >+ <fieldset class="action"> >+ <input type="submit" class="btn btn-primary" value="Save" /> >+ <button class="btn btn-default close_window">Cancel</button> >+ </fieldset> >+ </div> >+ </nav> > </form> > </main> > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt >index 7c12e278d0..2c3757a8c4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/sru_modmapping_auth.tt >@@ -73,10 +73,14 @@ > </div> > </div> > </fieldset> >- <fieldset class="action"> >- <input type="submit" class="btn btn-primary" value="Save" /> >- <a class="close cancel" href="#">Cancel</a> >- </fieldset> >+ <nav class="navbar navbar-default navbar-fixed-bottom"> >+ <div class="container-fluid"> >+ <fieldset class="action"> >+ <input type="submit" class="btn btn-primary" value="Save" /> >+ <button class="btn btn-default close_window">Cancel</button> >+ </fieldset> >+ </div> >+ </nav> > </form> > > </main> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt >index 76631902ba..ca1da22b03 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt >@@ -13,12 +13,12 @@ > <div class="container-fluid"> > > [% UNLESS (authorized) %] >-<h1>Error adding to list</h1> >- <p align="center"> >- [% IF (errcode==1) %]Could not create a new list. Please check the name.<br/>[% END %] >- [% IF (errcode==2) %]Sorry, you do not have permission to add items to this list.<br/>[% END %] >- <a href="javascript:self.close();">Close this window.</a> >- </p> >+ <div class="dialog alert"> >+ <h1>Error adding to list</h1> >+ [% IF (errcode==1) %]<p>Could not create a new list. Please check the name.</p>[% END %] >+ [% IF (errcode==2) %]<p>Sorry, you do not have permission to add items to this list.</p>[% END %] >+ <button class="btn btn-default close_window focus">Close window</button> >+ </div> > [% ELSE %] > > [% IF ( multiple ) %] >@@ -111,15 +111,16 @@ > > [% END %] > >- >-<!-- SAVE --> >- <fieldset class="action"> >- <input type="hidden" name="sortfield" value="title" /> >- <input type="submit" class="btn btn-primary" value="Save" /> <a class="close cancel" href="#">Cancel</a> >- </fieldset> >- </form> >-<!-- /SAVE --> >- >+ <input type="hidden" name="sortfield" value="title" /> >+ <nav class="navbar navbar-default navbar-fixed-bottom"> >+ <div class="container-fluid"> >+ <fieldset class="action"> >+ <input type="submit" class="btn btn-primary" value="Save" /> >+ <button class="btn btn-default close_window">Cancel</button> >+ </fieldset> >+ </div> >+ </nav> >+ </form> > [% END %] > > [% SET popup_window = 1 %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/catalog.js b/koha-tmpl/intranet-tmpl/prog/js/catalog.js >index 072680afce..09eb2fe550 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/catalog.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/catalog.js >@@ -19,7 +19,8 @@ function addToCart(){ > addRecord( biblionumber ); > } > >-function addToShelf() { window.open('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumber=' + biblionumber,'Add_to_virtualshelf','width=500,height=400,toolbar=false,scrollbars=yes'); >+function addToShelf() { >+ openWindow('/cgi-bin/koha/virtualshelves/addbybiblionumber.pl?biblionumber=' + biblionumber,'Add_to_virtualshelf'); > } > function printBiblio() {window.print(); } > >-- >2.30.2
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 34562
:
154531
|
155555
| 156632