Bugzilla – Attachment 168678 Details for
Bug 25733
Return claims attention can't be cleared
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25733: Add new system preference 'UnresolvedClaimReturnedWarningThreshold'
Bug-25733-Add-new-system-preference-UnresolvedClai.patch (text/plain), 4.97 KB, created by
Sam Lau
on 2024-07-09 18:29:18 UTC
(
hide
)
Description:
Bug 25733: Add new system preference 'UnresolvedClaimReturnedWarningThreshold'
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2024-07-09 18:29:18 UTC
Size:
4.97 KB
patch
obsolete
>From a2fcdaf7c990ce1e51c4a287a69d60d37f69331c Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Tue, 9 Jul 2024 17:26:17 +0000 >Subject: [PATCH] Bug 25733: Add new system preference > 'UnresolvedClaimReturnedWarningThreshold' > >--- > .../data/mysql/atomicupdate/bug_25733.pl | 22 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../admin/preferences/circulation.pref | 5 +++++ > 3 files changed, 28 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_25733.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_25733.pl b/installer/data/mysql/atomicupdate/bug_25733.pl >new file mode 100755 >index 0000000000..d6288ded99 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_25733.pl >@@ -0,0 +1,22 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "25733", >+ description => "Adds new system preference UnresolvedClaimReturnedWarningThreshold", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('UnresolvedClaimReturnedWarningThreshold', '', '', 'Sets the number of unresolved return claims past which the librarian will be warned the patron has many unresolved return claims', 'Integer'); >+ } >+ ); >+ >+ # sysprefs >+ say $out "Added new system preference 'UnresolvedClaimReturnedWarningThreshold'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 9972bc4972..6a257f15a7 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -803,6 +803,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('UNIMARCAuthorsFacetsSeparator',', ',NULL,'UNIMARC authors facets separator','short'), > ('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'), > ('UniqueItemFields','barcode','','Pipe-separated list of fields that should be unique (used in acquisition module for item creation). Fields must be valid SQL column names of items table','Free'), >+('UnresolvedClaimReturnedWarningThreshold', '', '', 'Sets the number of unresolved return claims past which the librarian will be warned the patron has many unresolved return claims', 'Integer'), > ('UnseenRenewals','0','','Allow renewals to be recorded as "unseen" by the library, and count against the patrons unseen renewals limit.','YesNo'), > ('UnsubscribeReflectionDelay','',NULL,'Delay for locking unsubscribers', 'Integer'), > ('UpdateItemLocationOnCheckin', '', 'NULL', 'This is a list of value pairs.\n Examples:\n\nPROC: FIC - causes an item in the Processing Center location to be updated into the Fiction location on check in.\nFIC: GEN - causes an item in the Fiction location to be updated into the General stacks location on check in.\n_BLANK_:FIC - causes an item that has no location to be updated into the Fiction location on check in.\nFIC: _BLANK_ - causes an item in location FIC to be updated to a blank location on check in.\n_ALL_:FIC - causes all items to be updated into the Fiction location on check in.\nPROC: _PERM_ - causes an item that is in the Processing Center to be updated to it''s permanent location.\n\nGeneral rule: if the location value on the left matches the item''s current location, it will be updated to match the location value on the right.\nNote: PROC and CART are special values, for these locations only can location and permanent_location differ, in all other cases an update will affect both. Items in the CART location will be returned to their permanent location on checkout.\n\nThe special term _BLANK_ may be used on either side of a value pair to update or remove the location from items with no location assigned.\nThe special term _ALL_ is used on the left side of the colon (:) to affect all items.\nThe special term _PERM_ is used on the right side of the colon (:) to return items to their permanent location.', 'Free'), >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 3ba6d9b036..daa82a14e7 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 >@@ -1428,6 +1428,11 @@ Circulation: > class: integer > - days. > - <span class="hint">This system preference is used by the cleanup_database.pl cronjob.</span> >+ - >+ - Warn librarians that a patron has excessive unresolved return claims if the patron has claimed the return of more than >+ - pref: UnresolvedClaimReturnedWarningThreshold >+ class: integer >+ - items. > > Recalls: > - >-- >2.39.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 25733
: 168678 |
168679
|
168680
|
168681
|
168759