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

(-)a/acqui/lateorders.pl (-1 / +1 lines)
Lines 64-70 my ($template, $loggedinuser, $cookie) = get_template_and_user( Link Here
64
);
64
);
65
65
66
my $booksellerid = $input->param('booksellerid');
66
my $booksellerid = $input->param('booksellerid');
67
my $delay        = $input->param('delay') // 0;
67
my $delay        = $input->param('delay') // C4::Context->preference('DefaultLateOrderFilterDaysAgo');
68
68
69
# Get the "date from" param if !defined is today
69
# Get the "date from" param if !defined is today
70
my $estimateddeliverydatefrom = $input->param('estimateddeliverydatefrom');
70
my $estimateddeliverydatefrom = $input->param('estimateddeliverydatefrom');
(-)a/installer/data/mysql/atomicupdate/bug_32266.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "32266",
5
    description => "Add syspref DefaultLateOrderFilterDaysAgo",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Do you stuffs here
10
        $dbh->do(q{
11
            INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('DefaultLateOrderFilterDaysAgo', '0', NULL, 'How many days ago late orders are displayed', 'integer')
12
        });
13
        # Print useful stuff here
14
        say $out "Added syspref DefaultLateOrderFilterDaysAgo";
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 176-181 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
176
('DefaultHoldExpirationdateUnitOfTime','days','days|months|years','Which unit of time is used when setting the default expiration date. ','choice'),
176
('DefaultHoldExpirationdateUnitOfTime','days','days|months|years','Which unit of time is used when setting the default expiration date. ','choice'),
177
('DefaultHoldPickupLocation','loggedinlibrary','loggedinlibrary|homebranch|holdingbranch','Which branch should a hold pickup location default to. ','choice'),
177
('DefaultHoldPickupLocation','loggedinlibrary','loggedinlibrary|homebranch|holdingbranch','Which branch should a hold pickup location default to. ','choice'),
178
('DefaultLanguageField008','','','Fill in the default language for field 008 Range 35-37 of MARC21 records (e.g. eng, nor, ger, see <a href=\"http://www.loc.gov/marc/languages/language_code.html\">MARC Code List for Languages</a>)','Free'),
178
('DefaultLanguageField008','','','Fill in the default language for field 008 Range 35-37 of MARC21 records (e.g. eng, nor, ger, see <a href=\"http://www.loc.gov/marc/languages/language_code.html\">MARC Code List for Languages</a>)','Free'),
179
('DefaultLateOrderFilterDaysAgo', '0', NULL, 'How many days ago late orders are displayed', 'integer'),
179
('DefaultLongOverdueSkipLostStatuses', '', NULL, 'Skip these lost statuses by default in longoverdue.pl', 'Free'),
180
('DefaultLongOverdueSkipLostStatuses', '', NULL, 'Skip these lost statuses by default in longoverdue.pl', 'Free'),
180
('DefaultLongOverdueChargeValue', '', NULL, "Charge a lost item to the borrower's account when the LOST value of the item changes to n.", 'integer'),
181
('DefaultLongOverdueChargeValue', '', NULL, "Charge a lost item to the borrower's account when the LOST value of the item changes to n.", 'integer'),
181
('DefaultLongOverdueDays', '', NULL, "Set the LOST value of an item when the item has been overdue for more than n days.", 'integer'),
182
('DefaultLongOverdueDays', '', NULL, "Set the LOST value of an item when the item has been overdue for more than n days.", 'integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-1 / +6 lines)
Lines 199-204 Staff interface: Link Here
199
                  1: Show
199
                  1: Show
200
                  0: "Don't show"
200
                  0: "Don't show"
201
            - a search field pulldown for 'Search the catalog' boxes.
201
            - a search field pulldown for 'Search the catalog' boxes.
202
        -
203
            - By default, show <a href="/cgi-bin/koha/acqui/lateorders.pl">late orders</a> older than
204
            - pref: DefaultLateOrderFilterDaysAgo
205
              default: 0
206
              class: integer
207
            - days (999 days being max).
202
    Authentication:
208
    Authentication:
203
        -
209
        -
204
            - pref: staffShibOnly
210
            - pref: staffShibOnly
205
- 

Return to bug 32266