Bugzilla – Attachment 136081 Details for
Bug 25560
Define itemtype specific rules in the UpdateNotForLoanStatusOnCheckin system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25560: Template & syspref yaml changes
Bug-25560-Template--syspref-yaml-changes.patch (text/plain), 4.59 KB, created by
Nick Clemens (kidclamp)
on 2022-06-15 11:32:02 UTC
(
hide
)
Description:
Bug 25560: Template & syspref yaml changes
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-06-15 11:32:02 UTC
Size:
4.59 KB
patch
obsolete
>From a9c7cbe9d439bdefe1c2e005c0c0c406e7e5baa1 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Thu, 21 May 2020 23:54:43 +0000 >Subject: [PATCH] Bug 25560: Template & syspref yaml changes > >Sponsored-By: Waikato Institute of Technology, NZ > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > admin/columns_settings.yml | 2 ++ > .../intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 11 +++++++++++ > .../en/modules/admin/preferences/circulation.pref | 1 + > 3 files changed, 14 insertions(+) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index a838a19f9b..b4dc72ed41 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -294,6 +294,8 @@ modules: > columnname: not_for_loan > - > columnname: hide_in_opac >+ - >+ columnname: updatenotforloan > - > columnname: rental_charge > - >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index 79763e85e3..ce4cb88088 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -339,6 +339,15 @@ Item types › Administration › Koha > [% END %] > <span class="hint">If checked, items will be automatically checked in once they've reached their due date. This feature requires the <code>misc/cronjobs/automatic_checkin.pl</code> cronjob. Ask your system administrator to schedule it.</span> > </li> >+ <li> >+ <label for="updatenotforloan">Update not for loan status on check-in: </label> >+ [% IF itemtype.updatenotforloan %] >+ <input type="checkbox" id="updatenotforloan" name="updatenotforloan" checked="checked" value="1" /> >+ [% ELSE %] >+ <input type="checkbox" id="updatenotforloan" name="updatenotforloan" value="1" /> >+ [% END %] >+ <span class="hint">Dependent on the UpdateNotForLoanStatusOnCheckin system preference being configured. If checked, items of this type will be updated by UpdateNotForLoanStatusOnCheckin syspref upon checkin. If not checked, items of this type will be excluded from update on checkin.</span> >+ </li> > <li> > <label for="rentalcharge">Rental charge: </label> > <input type="text" id="rentalcharge" name="rentalcharge" size="10" value="[% itemtype.rentalcharge | $Price on_editing => 1 %]" min="0" /> >@@ -477,6 +486,7 @@ Item types › Administration › Koha > <th>Search category</th> > <th>Not for loan</th> > <th>Hide in OPAC</th> >+ <th>Update not for loan status on checkin</th> > <th>Rental charge</th> > <th>Daily rental charge</th> > <th>Hourly rental charge</th> >@@ -543,6 +553,7 @@ Item types › Administration › Koha > <td>[% AuthorisedValues.GetByCode( 'ITEMTYPECAT', itemtype.searchcategory ) | html %]</td> > <td>[% IF ( itemtype.notforloan ) %]Yes[% ELSE %] [% END %]</td> > <td>[% IF ( itemtype.hideinopac ) %]Yes[% ELSE %] [% END %]</td> >+ <td>[% IF ( itemtype.updatenotforloan ) %]Yes[% ELSE %] [% END %]</td> > <td> > [% UNLESS ( itemtype.notforloan ) %] > [% itemtype.rentalcharge | $Price %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >index bc3520c731..ac20ced2de 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >@@ -639,6 +639,7 @@ Circulation: > - This is a list of value pairs. When an item is checked in, if the not for loan value on the left matches the items not for loan value > - "it will be updated to the right-hand value. For example, '-1: 0' will cause an item that was set to 'Ordered' to now be available for loan." > - Each pair of values should be on a separate line. >+ - Enable itemtypes to be updated upon checkin on the item type page (Administration > Item types) > - > - pref: CumulativeRestrictionPeriods > choices: >-- >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 25560
:
105236
|
105237
|
105238
|
105239
|
105240
|
105241
|
105242
|
105243
|
105244
|
105245
|
109562
|
109563
|
109564
|
109565
|
109566
|
109567
|
112492
|
112887
|
113161
|
113212
|
113213
|
113214
|
113215
|
113216
|
113217
|
131816
|
131817
|
131818
|
131819
|
131820
|
135742
|
135743
|
136079
|
136080
|
136081
|
136082
|
136083
|
136084
|
138494
|
138495
|
138496
|
138497
|
138498
|
138499
|
146556
|
146557
|
146558
|
146559
|
146993
|
148679
|
148680
|
148681
|
148682
|
148683