Bugzilla – Attachment 159467 Details for
Bug 35260
Review batch checkout page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35260: Revise structure of the batch checkout page
Bug-35260-Revise-structure-of-the-batch-checkout-p.patch (text/plain), 7.89 KB, created by
Kyle M Hall (khall)
on 2023-12-01 17:26:15 UTC
(
hide
)
Description:
Bug 35260: Revise structure of the batch checkout page
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-12-01 17:26:15 UTC
Size:
7.89 KB
patch
obsolete
>From d601f53dc7fe1273dc497861ed5a8be17aec5995 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 6 Nov 2023 17:21:59 +0000 >Subject: [PATCH] Bug 35260: Revise structure of the batch checkout page > >This patch makes some changes to the style and structure of the batch >checkout page in order to make it more usable. > >To test, apply the patch and rebuild the staff interface CSS. Clear >your browser cache if necessary. > >- Make sure the BatchCheckouts preference is enabled and that the > BatchCheckoutsValidCategories has some categories selected. >- Locate a patron and open the batch checkout page. >- Test the process of checking out to the patron both by entering > barcodes into the textarea and by uploading a file. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../prog/css/src/staff-global.scss | 25 +++-- > .../circ/circulation_batch_checkouts.tt | 94 ++++++++++--------- > 2 files changed, 65 insertions(+), 54 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 99b2ad0d896..06ea0309d49 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -2506,6 +2506,23 @@ td.bundle { > > #circ_circulation_issue { > position: relative; >+ >+ fieldset { >+ label { >+ display: block; >+ font-size: 105%; >+ font-weight: bold; >+ margin-bottom: 1rem; >+ max-width: 75%; >+ } >+ >+ #onsite_checkout-select { >+ label { >+ display: inline; >+ margin: 0; >+ } >+ } >+ } > } > > #renew_as_unseen_label { >@@ -3605,14 +3622,6 @@ input.renew { > } > } > >-.onsite_checkout-select { >- label, >- #circ_circulation_issue & { >- font-size: inherit; >- font-weight: normal; >- } >-} >- > .onsite_checkout { > color: $warning-text-color; > } >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt >index 2f7e19ec3f6..3cc70201b00 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt >@@ -50,11 +50,12 @@ > <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2"> > [% END %] > <main> >- <h1>Batch check out</h1> >+ [% IF patron %] >+ [% INCLUDE 'members-toolbar.inc' %] >+ [% END %] >+ >+ <h1>Batch check out</h1> > >-[% IF patron %] >-[% INCLUDE 'members-toolbar.inc' %] >-[% END %] > > [% IF patron and not batch_allowed %] > <div class="dialog alert">You are not allowed to use batch checkout for this patron</div> >@@ -83,47 +84,44 @@ > </div> > [% ELSIF patron and not checkout_infos %] > <form method="post" enctype="multipart/form-data" action="/cgi-bin/koha/circ/circulation.pl"> >- <fieldset id="circ_circulation_issue"> >- <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label> >- <fieldset class="rows"> >- <legend>Use a file</legend> >- <ol> >- <li><label for="uploadfile">File: </label> <input type="file" id="uploadfile" name="uploadfile" /></li> >- </ol> >- </fieldset> >- <fieldset class="rows"> >- <legend>Or list barcodes one by one</legend> >- <ol> >- <li> >- <label for="barcodelist">Barcode list (one barcode per line): </label> >- <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea> >- </li> >- </ol> >- </fieldset> >- [% IF Koha.Preference('SpecifyDueDate') || Koha.Preference('OnSiteCheckouts') %] >- <fieldset class="rows"> >- <ol> >- [% IF Koha.Preference('SpecifyDueDate') %] >- <legend>Due date</legend> >- <li> >- <label for="duedatespec">Hard due date: [% INCLUDE 'date-format.inc' %]</label> >- <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" class="flatpickr" data-flatpickr-enable-time="true"/> >- </li> >- [% END %] >- [% IF Koha.Preference('OnSiteCheckouts') %] >- <li> >- <div id="onsite_checkout-select"> >- <label for="onsite_checkout">On-site checkout:</label> >- <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting"/> >- </div> >- </li> >- [% END %] >- </ol> >- </fieldset> >- [% END %] >+ <div id="circ_circulation_issue"> >+ <fieldset> >+ <legend>Checking out to [% INCLUDE 'patron-title.inc' %]</legend> >+ <ol> >+ <li> >+ <label for="barcodelist">Enter barcodes (one barcode per line): </label> >+ <textarea rows="10" cols="30" id="barcodelist" name="barcodelist"></textarea> >+ </li> >+ <li> >+ <label for="uploadfile">Or use a file: </label> >+ <input type="file" id="uploadfile" name="uploadfile" /> >+ </li> >+ </ol> >+ </fieldset> >+ >+ [% IF Koha.Preference('SpecifyDueDate') || Koha.Preference('OnSiteCheckouts') %] >+ <fieldset> >+ <ol> >+ [% IF Koha.Preference('SpecifyDueDate') %] >+ <li> >+ <label for="duedatespec">Specify due date: [% INCLUDE 'date-format.inc' %]</label> >+ <input type="text" size="20" id="duedatespec" name="duedatespec" value="[% duedatespec | html %]" class="flatpickr" data-flatpickr-enable-time="true"/> >+ </li> >+ [% END %] >+ [% IF Koha.Preference('OnSiteCheckouts') %] >+ <li class="radio"> >+ <div id="onsite_checkout-select"> >+ <input type="checkbox" id="onsite_checkout" name="onsite_checkout" class="circ_setting"/> >+ <label for="onsite_checkout">On-site checkout</label> >+ </div> >+ </li> >+ [% END %] >+ </ol> >+ </fieldset> >+ [% END %] > > <input type="hidden" name="op" value="show" /> >- </fieldset> >+ </div> > > <fieldset class="action"> > <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% patron.borrowernumber | html %]" /> >@@ -135,11 +133,12 @@ > > [% ELSIF patron %] > [% IF confirmation_needed && CAN_user_circulate_force_checkout %] >- <h3>Batch checkout confirmation [% IF patron %] for [% INCLUDE 'patron-title.inc' invert_name = 1 %] [% END %]</h3> >+ <h3>Batch checkout confirmation</h3> > <form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform" autocomplete="off"> > [% ELSE %] >- <h3>Batch checkout information [% IF patron.borrowernumber %] for [% INCLUDE 'patron-title.inc' invert_name = 1 %] |[% batch | html %]|[% END %]</h3> >+ <h3>Batch checkout results</h3> > [% END %] >+ <div class="page-section"> > <table id="checkout_infos"> > <thead> > <tr> >@@ -308,13 +307,16 @@ > [% END %] > > [% IF checkout_info.issue.date_due %] >- <li>Due on [% checkout_info.issue.date_due | $KohaDates as_due_date => 1 %]</li> >+ <ul> >+ <li>Due on [% checkout_info.issue.date_due | $KohaDates as_due_date => 1 %]</li> >+ </ul> > [% END %] > </td> > </tr> > [% END %] > </tbody> > </table> >+ </div> > > [% IF confirmation_needed && CAN_user_circulate_force_checkout %] > <fieldset> >-- >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 35260
:
158539
|
158573
| 159467