Bugzilla – Attachment 130549 Details for
Bug 30095
Allow to change "warn when late" setting in subscriptions batch modification tool
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30095: Add "warn when late" to subscriptions batch mod tool
Bug-30095-Add-warn-when-late-to-subscriptions-batc.patch (text/plain), 4.13 KB, created by
Julian Maurice
on 2022-02-14 15:37:00 UTC
(
hide
)
Description:
Bug 30095: Add "warn when late" to subscriptions batch mod tool
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2022-02-14 15:37:00 UTC
Size:
4.13 KB
patch
obsolete
>From 217713ff78d62da1cc63c7261a362815a8778a40 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 14 Feb 2022 15:38:25 +0100 >Subject: [PATCH] Bug 30095: Add "warn when late" to subscriptions batch mod > tool > >This patch depends on bug 29996 > >Test plan: >1. On the Serials module main page, do a search that return at least 2 > subscriptions >2. Check at least 2 boxes in the first column of the table, then click > on "Edit selected serials" above the table >3. Verify that the table above the form display correct data for the > "Warn when late" column >4. Submit the form without changing anything. Verify that the setting > "warn when late" was not changed for selected subscriptions >5. Repeat steps 1 and 2. Set "Warn when late" to "No" and submit the > form. Verify that the setting "warn when late" was changed to "No" > for all selected subscriptions >6. Repeat steps 1 and 2. Set "Warn when late" to "Yes" and submit the > form. Verify that the setting "warn when late" was changed to "Yes" > for all selected subscriptions >--- > .../en/modules/serials/subscription-batchedit.tt | 16 ++++++++++++++++ > serials/subscription-batchedit.pl | 1 + > 2 files changed, 17 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt >index 360b18e41d..2bc0256ed0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt >@@ -49,6 +49,7 @@ > <th>Nonpublic notes</th> > <th>Call number</th> > <th>Create item when receiving</th> >+ <th>Warn when late</th> > <th>Expiration date</th> > </tr> > </thead> >@@ -71,6 +72,13 @@ > <span>No</span> > [% END %] > </td> >+ <td> >+ [% IF subscription.warn_when_late %] >+ <span>Yes</span> >+ [% ELSE %] >+ <span>No</span> >+ [% END %] >+ </td> > <td>[% subscription.enddate | $KohaDates %]</td> > </tr> > [% END %] >@@ -140,6 +148,14 @@ > </select> > > </li> >+ <li> >+ <label for="warn_when_late">Warn when late: </label> >+ <select id="warn_when_late" name="warn_when_late"> >+ <option value="">No change</option> >+ <option value="0">No</option> >+ <option value="1">Yes</option> >+ </select> >+ </li> > <li> > <label for="enddate">Expiration date: </label> > <input type="text" class="flatpickr" id="enddate" name="enddate" placeholder="No change"/> >diff --git a/serials/subscription-batchedit.pl b/serials/subscription-batchedit.pl >index 556f81e8b3..7ab8d3906b 100755 >--- a/serials/subscription-batchedit.pl >+++ b/serials/subscription-batchedit.pl >@@ -59,6 +59,7 @@ if ($batchedit) { > notes => scalar $cgi->param('notes'), > internalnotes => scalar $cgi->param('internalnotes'), > serialsadditems => scalar $cgi->param('serialsadditems'), >+ warn_when_late => scalar $cgi->param('warn_when_late'), > enddate => dt_from_string(scalar $cgi->param('enddate')), > ); > >-- >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 30095
:
130549
|
175386