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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 3045-3051 sub CanBookBeRenewed { Link Here
3045
            $soonestrenewal->truncate( to => 'day' );
3045
            $soonestrenewal->truncate( to => 'day' );
3046
        }
3046
        }
3047
3047
3048
        if ( $soonestrenewal > DateTime->now( time_zone => C4::Context->tz() ) )
3048
        if ( $soonestrenewal > dt_from_string() )
3049
        {
3049
        {
3050
            return ( 0, "auto_too_soon" ) if $issue->auto_renew;
3050
            return ( 0, "auto_too_soon" ) if $issue->auto_renew;
3051
            return ( 0, "too_soon" );
3051
            return ( 0, "too_soon" );
(-)a/installer/data/mysql/kohastructure.sql (-2 / +2 lines)
Lines 1625-1632 CREATE TABLE `issues` ( -- information related to check outs or issues Link Here
1625
  `returndate` datetime default NULL, -- date the item was returned, will be NULL until moved to old_issues
1625
  `returndate` datetime default NULL, -- date the item was returned, will be NULL until moved to old_issues
1626
  `lastreneweddate` datetime default NULL, -- date the item was last renewed
1626
  `lastreneweddate` datetime default NULL, -- date the item was last renewed
1627
  `renewals` tinyint(4) NOT NULL default 0, -- lists the number of times the item was renewed
1627
  `renewals` tinyint(4) NOT NULL default 0, -- lists the number of times the item was renewed
1628
  `auto_renew` tinyint(1) default FALSE, -- automatic renewal
1629
  `unseen_renewals` tinyint(4) NOT NULL default 0, -- lists the number of consecutive times the item was renewed without being seen
1628
  `unseen_renewals` tinyint(4) NOT NULL default 0, -- lists the number of consecutive times the item was renewed without being seen
1629
  `auto_renew` tinyint(1) default FALSE, -- automatic renewal
1630
  `auto_renew_error` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- automatic renewal error
1630
  `auto_renew_error` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- automatic renewal error
1631
  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this record was last touched
1631
  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this record was last touched
1632
  `issuedate` datetime default NULL, -- date the item was checked out or issued
1632
  `issuedate` datetime default NULL, -- date the item was checked out or issued
Lines 1660-1667 CREATE TABLE `old_issues` ( -- lists items that were checked out and have been r Link Here
1660
  `returndate` datetime default NULL, -- date the item was returned
1660
  `returndate` datetime default NULL, -- date the item was returned
1661
  `lastreneweddate` datetime default NULL, -- date the item was last renewed
1661
  `lastreneweddate` datetime default NULL, -- date the item was last renewed
1662
  `renewals` tinyint(4) NOT NULL default 0, -- lists the number of times the item was renewed
1662
  `renewals` tinyint(4) NOT NULL default 0, -- lists the number of times the item was renewed
1663
  `auto_renew` tinyint(1) default FALSE, -- automatic renewal
1664
  `unseen_renewals` tinyint(4) NOT NULL default 0, -- lists the number of consecutive times the item was renewed without being seen
1663
  `unseen_renewals` tinyint(4) NOT NULL default 0, -- lists the number of consecutive times the item was renewed without being seen
1664
  `auto_renew` tinyint(1) default FALSE, -- automatic renewal
1665
  `auto_renew_error` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- automatic renewal error
1665
  `auto_renew_error` varchar(32) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- automatic renewal error
1666
  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this record was last touched
1666
  `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, -- the date and time this record was last touched
1667
  `issuedate` datetime default NULL, -- date the item was checked out or issued
1667
  `issuedate` datetime default NULL, -- date the item was checked out or issued
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 674-680 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
674
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),
674
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),
675
('UpdateItemWhenLostFromHoldList','',NULL,'This is a list of values to update an item when it is marked as lost from the holds to pull screen','Free'),
675
('UpdateItemWhenLostFromHoldList','',NULL,'This is a list of values to update an item when it is marked as lost from the holds to pull screen','Free'),
676
('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'),
676
('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'),
677
('UnseenRenewals','0','','Allow renewals to be recorded as "unseen" by the library, and count against the borrowers unseen renewals limit','YesNo'),
677
('UnseenRenewals','0','','Allow renewals to be recorded as "unseen" by the library, and count against the patrons unseen renewals limit.','YesNo'),
678
('UnsubscribeReflectionDelay','',NULL,'Delay for locking unsubscribers', 'Integer'),
678
('UnsubscribeReflectionDelay','',NULL,'Delay for locking unsubscribers', 'Integer'),
679
('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'),
679
('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'),
680
('UpdateNotForLoanStatusOnCheckin', '', 'NULL', '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. E.g. ''-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.', 'Free'),
680
('UpdateNotForLoanStatusOnCheckin', '', 'NULL', '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. E.g. ''-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.', 'Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +1 lines)
Lines 324-330 Circulation: Link Here
324
              choices:
324
              choices:
325
                  yes: Allow
325
                  yes: Allow
326
                  no: "Don't allow"
326
                  no: "Don't allow"
327
            - renewals to be recorded as "unseen" by the library, and count against the borrowers unseen renewals limit
327
            - renewals to be recorded as "unseen" by the library, and count against the patrons unseen renewals limit.
328
        -
328
        -
329
            - Prevent patrons from making holds on the OPAC if they owe more than
329
            - Prevent patrons from making holds on the OPAC if they owe more than
330
            - pref: maxoutstanding
330
            - pref: maxoutstanding
(-)a/t/db_dependent/Circulation/issue.t (-2 lines)
Lines 32-38 use Koha::Checkouts; Link Here
32
use Koha::Database;
32
use Koha::Database;
33
use Koha::DateUtils;
33
use Koha::DateUtils;
34
use Koha::Holds;
34
use Koha::Holds;
35
use Koha::IssuingRules;
36
use Koha::Items;
35
use Koha::Items;
37
use Koha::Library;
36
use Koha::Library;
38
use Koha::Patrons;
37
use Koha::Patrons;
39
- 

Return to bug 24083