View | Details | Raw Unified | Return to bug 25733
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_25733.pl (+22 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "25733",
6
    description => "Adds new system preference UnresolvedClaimReturnedWarningThreshold",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(
13
            q{
14
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
15
            ('UnresolvedClaimReturnedWarningThreshold', '', '', 'Sets the number of unresolved return claims past which the librarian will be warned the patron has many unresolved return claims', 'Integer');
16
        }
17
        );
18
19
        # sysprefs
20
        say $out "Added new system preference 'UnresolvedClaimReturnedWarningThreshold'";
21
    },
22
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 821-826 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
821
('UNIMARCAuthorsFacetsSeparator',', ',NULL,'UNIMARC authors facets separator','short'),
821
('UNIMARCAuthorsFacetsSeparator',', ',NULL,'UNIMARC authors facets separator','short'),
822
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),
822
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),
823
('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'),
823
('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'),
824
('UnresolvedClaimReturnedWarningThreshold', '', '', 'Sets the number of unresolved return claims past which the librarian will be warned the patron has many unresolved return claims', 'Integer'),
824
('UnseenRenewals','0','','Allow renewals to be recorded as "unseen" by the library, and count against the patrons unseen renewals limit.','YesNo'),
825
('UnseenRenewals','0','','Allow renewals to be recorded as "unseen" by the library, and count against the patrons unseen renewals limit.','YesNo'),
825
('UnsubscribeReflectionDelay','',NULL,'Delay for locking unsubscribers', 'Integer'),
826
('UnsubscribeReflectionDelay','',NULL,'Delay for locking unsubscribers', 'Integer'),
826
('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'),
827
('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'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +5 lines)
Lines 1469-1474 Circulation: Link Here
1469
              class: integer
1469
              class: integer
1470
            - days.
1470
            - days.
1471
            - <span class="hint">This system preference is used by the cleanup_database.pl cronjob.</span>
1471
            - <span class="hint">This system preference is used by the cleanup_database.pl cronjob.</span>
1472
        -
1473
            - Warn librarians that a patron has excessive unresolved return claims if the patron has claimed the return of more than
1474
            - pref: UnresolvedClaimReturnedWarningThreshold
1475
              class: integer
1476
            - items.
1472
1477
1473
    Recalls:
1478
    Recalls:
1474
        -
1479
        -
1475
- 

Return to bug 25733