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

(-)a/C4/SIP/ILS/Transaction/Checkout.pm (-6 / +6 lines)
Lines 71-96 sub do_checkout { Link Here
71
    } else {
71
    } else {
72
        foreach my $confirmation (keys %{$needsconfirmation}) {
72
        foreach my $confirmation (keys %{$needsconfirmation}) {
73
            if ($confirmation eq 'RENEW_ISSUE'){
73
            if ($confirmation eq 'RENEW_ISSUE'){
74
                $self->screen_msg("Item already checked out to you: renewing item.");
74
                $self->screen_msg( C4::Context->preference('RenewItemSIPMessage') );
75
            } elsif ($confirmation eq 'RESERVED' or $confirmation eq 'RESERVE_WAITING') {
75
            } elsif ($confirmation eq 'RESERVED' or $confirmation eq 'RESERVE_WAITING') {
76
                my $x = $self->{item}->available($patron_barcode);
76
                my $x = $self->{item}->available($patron_barcode);
77
                if ($x) {
77
                if ($x) {
78
                    $self->screen_msg("Item was reserved for you.");
78
                    $self->screen_msg( C4::Context->preference('ReservedWaitingSIPMessage') );
79
                } else {
79
                } else {
80
                    $self->screen_msg("Item is reserved for another patron upon return.");
80
                    $self->screen_msg( C4::Context->preference('ReservedSIPMessage') );
81
                    $noerror = 0;
81
                    $noerror = 0;
82
                }
82
                }
83
            } elsif ($confirmation eq 'ISSUED_TO_ANOTHER') {
83
            } elsif ($confirmation eq 'ISSUED_TO_ANOTHER') {
84
                $self->screen_msg("Item already checked out to another patron.  Please return item for check-in.");
84
                $self->screen_msg( C4::Context->preference('CheckedToAnotherSIPMessage') );
85
                $noerror = 0;
85
                $noerror = 0;
86
                last;
86
                last;
87
            } elsif ($confirmation eq 'DEBT') {
87
            } elsif ($confirmation eq 'DEBT') {
88
                $self->screen_msg('Outstanding Fines block issue');
88
                $self->screen_msg( C4::Context->preference('DebtSIPMessage') );
89
                $noerror = 0;
89
                $noerror = 0;
90
                last;
90
                last;
91
            } elsif ($confirmation eq 'HIGHHOLDS') {
91
            } elsif ($confirmation eq 'HIGHHOLDS') {
92
                $overridden_duedate = $needsconfirmation->{$confirmation}->{returndate};
92
                $overridden_duedate = $needsconfirmation->{$confirmation}->{returndate};
93
                $self->screen_msg('Loan period reduced for high-demand item');
93
                $self->screen_msg( C4::Context->preference('HighHoldsSIPMessage') );
94
            } elsif ($confirmation eq 'RENTALCHARGE') {
94
            } elsif ($confirmation eq 'RENTALCHARGE') {
95
                if ($self->{fee_ack} ne 'Y') {
95
                if ($self->{fee_ack} ne 'Y') {
96
                    $noerror = 0;
96
                    $noerror = 0;
(-)a/installer/data/mysql/atomicupdate/bug_19787_-_SIP_Message_sysprefs.sql (+7 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
2
('RenewItemSIPMessage','Item already checked out to you: renewing item.',NULL,'Message to be shown when renewing item in self-checkout','Free'),
3
('ReservedSIPMessage','Item was reserved for you.',NULL,'Message to be shown when attempting to check out an item in self-checkout reserved by another patron','Free'),
4
('ReservedWaitingSIPMessage','Item is reserved for another patron upon return.',NULL,'Message to be shown when checking out an item in self-checkout that the user has reserved', 'Free'),
5
('CheckedToAnotherSIPMessage','Item already checked out to another person.', NULL, 'Message to be shown when attempting to check out an item in self-checkout already checked out by another patron', 'Free'),
6
('DebtSIPMessage','Outstanding fines, block issue.',NULL,'Message to be shown when patron attempting to check out in self-checkout has outstanding fines','Free')
7
('HighHoldsSIPMessage','Loan period reduced for high-demand item',NULL,'Message to be shown when checking out a high demand item','Free');
(-)a/installer/data/mysql/sysprefs.sql (+6 lines)
Lines 102-107 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
102
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
102
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
103
('checkdigit','none','none|katipo','If ON, enable checks on patron cardnumber: none or \"Katipo\" style checks','Choice'),
103
('checkdigit','none','none|katipo','If ON, enable checks on patron cardnumber: none or \"Katipo\" style checks','Choice'),
104
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
104
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
105
('CheckedToAnotherSIPMessage','Item already checked out to another person.', NULL, 'Message to be shown when attempting to check out an item in self-checkout already checked out by another patron', 'Free'),
105
('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'),
106
('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'),
106
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
107
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
107
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
108
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
Lines 117-122 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
117
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
118
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
118
('CurrencyFormat','US','US|FR|CH','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\'  in \'FR\' or \'360,000.00\'  in \'US\'.','Choice'),
119
('CurrencyFormat','US','US|FR|CH','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\'  in \'FR\' or \'360,000.00\'  in \'US\'.','Choice'),
119
('dateformat','us','metric|us|iso|dmydot','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd, dmydot dd.mm.yyyy)','Choice'),
120
('dateformat','us','metric|us|iso|dmydot','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd, dmydot dd.mm.yyyy)','Choice'),
121
('DebtSIPMessage','Outstanding fines, block issue.',NULL,'Message to be shown when patron attempting to check out in self-checkout has outstanding fines','Free'),
120
('DebugLevel','2','0|1|2','Define the level of debugging information sent to the browser when errors are encountered (set to 0 in production). 0=none, 1=some, 2=most','Choice'),
122
('DebugLevel','2','0|1|2','Define the level of debugging information sent to the browser when errors are encountered (set to 0 in production). 0=none, 1=some, 2=most','Choice'),
121
('decreaseLoanHighHolds',NULL,'','Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue','YesNo'),
123
('decreaseLoanHighHolds',NULL,'','Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue','YesNo'),
122
('decreaseLoanHighHoldsControl', 'static', 'static|dynamic', "Chooses between static and dynamic high holds checking", 'Choice'),
124
('decreaseLoanHighHoldsControl', 'static', 'static|dynamic', "Chooses between static and dynamic high holds checking", 'Choice'),
Lines 185-190 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
185
('hidelostitems','0','','If ON, disables display of\"lost\" items in OPAC.','YesNo'),
187
('hidelostitems','0','','If ON, disables display of\"lost\" items in OPAC.','YesNo'),
186
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
188
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
187
('hide_marc','0',NULL,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)','YesNo'),
189
('hide_marc','0',NULL,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)','YesNo'),
190
('HighHoldsSIPMessage','Loan period reduced for high-demand item',NULL,'Message to be shown when checking out a high demand item','Free'),
188
('HighlightOwnItemsOnOPAC','0','','If on, and a patron is logged into the OPAC, items from his or her home library will be emphasized and shown first in search results and item details.','YesNo'),
191
('HighlightOwnItemsOnOPAC','0','','If on, and a patron is logged into the OPAC, items from his or her home library will be emphasized and shown first in search results and item details.','YesNo'),
189
('HighlightOwnItemsOnOPACWhich','PatronBranch','PatronBranch|OpacURLBranch','Decides which branch\'s items to emphasize. If PatronBranch, emphasize the logged in user\'s library\'s items. If OpacURLBranch, highlight the items of the Apache var BRANCHCODE defined in Koha\'s Apache configuration file.','Choice'),
192
('HighlightOwnItemsOnOPACWhich','PatronBranch','PatronBranch|OpacURLBranch','Decides which branch\'s items to emphasize. If PatronBranch, emphasize the logged in user\'s library\'s items. If OpacURLBranch, highlight the items of the Apache var BRANCHCODE defined in Koha\'s Apache configuration file.','Choice'),
190
('HoldFeeMode','not_always','any_time_is_placed|not_always|any_time_is_collected','Set the hold fee mode','Choice'),
193
('HoldFeeMode','not_always','any_time_is_placed|not_always|any_time_is_collected','Set the hold fee mode','Choice'),
Lines 449-454 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
449
('RenewalLog','0','','If ON, log information about renewals','YesNo'),
452
('RenewalLog','0','','If ON, log information about renewals','YesNo'),
450
('RenewalPeriodBase','date_due','date_due|now','Set whether the renewal date should be counted from the date_due or from the moment the Patron asks for renewal ','Choice'),
453
('RenewalPeriodBase','date_due','date_due|now','Set whether the renewal date should be counted from the date_due or from the moment the Patron asks for renewal ','Choice'),
451
('RenewalSendNotice','0','',NULL,'YesNo'),
454
('RenewalSendNotice','0','',NULL,'YesNo'),
455
('RenewItemSIPMessage','Item already checked out to you: renewing item.',NULL,'Message to be shown when checking out an item already checked out to that user in self-checkout','Free'),
452
('RenewSerialAddsSuggestion','0',NULL,'If ON, adds a new suggestion at serial subscription renewal','YesNo'),
456
('RenewSerialAddsSuggestion','0',NULL,'If ON, adds a new suggestion at serial subscription renewal','YesNo'),
453
('RentalFeesCheckoutConfirmation', '0', NULL , 'Allow user to confirm when checking out an item with rental fees.', 'YesNo'),
457
('RentalFeesCheckoutConfirmation', '0', NULL , 'Allow user to confirm when checking out an item with rental fees.', 'YesNo'),
454
('RentalsInNoissuesCharge','1',NULL,'Rental charges block checkouts (added to noissuescharge).','YesNo'),
458
('RentalsInNoissuesCharge','1',NULL,'Rental charges block checkouts (added to noissuescharge).','YesNo'),
Lines 456-461 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
456
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
460
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
457
('RequestOnOpac','1',NULL,'If ON, globally enables patron holds on OPAC','YesNo'),
461
('RequestOnOpac','1',NULL,'If ON, globally enables patron holds on OPAC','YesNo'),
458
('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'),
462
('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'),
463
('ReservedSIPMessage','Item was reserved for you.',NULL,'Message to be shown when attempting to check out an item in self-checkout reserved by another patron','Free'),
464
('ReservedWaitingSIPMessage','Item is reserved for another patron upon return.',NULL,'Message to be shown when checking out an item in self-checkout that the user has reserved', 'Free'),
459
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
465
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
460
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
466
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
461
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
467
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-menu.inc (+1 lines)
Lines 14-19 Link Here
14
[% IF ( patrons ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Patrons" href="/cgi-bin/koha/admin/preferences.pl?tab=patrons">Patrons</a></li>
14
[% IF ( patrons ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Patrons" href="/cgi-bin/koha/admin/preferences.pl?tab=patrons">Patrons</a></li>
15
[% IF ( searching ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Searching" href="/cgi-bin/koha/admin/preferences.pl?tab=searching">Searching</a></li>
15
[% IF ( searching ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Searching" href="/cgi-bin/koha/admin/preferences.pl?tab=searching">Searching</a></li>
16
[% IF ( serials ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Serials" href="/cgi-bin/koha/admin/preferences.pl?tab=serials">Serials</a></li>
16
[% IF ( serials ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Serials" href="/cgi-bin/koha/admin/preferences.pl?tab=serials">Serials</a></li>
17
[% IF ( sip ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="SIP" href="/cgi-bin/koha/admin/preferences.pl?tab=sip">SIP</a></li>
17
[% IF ( staff_client ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Staff client" href="/cgi-bin/koha/admin/preferences.pl?tab=staff_client">Staff client</a></li>
18
[% IF ( staff_client ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Staff client" href="/cgi-bin/koha/admin/preferences.pl?tab=staff_client">Staff client</a></li>
18
[% IF ( tools ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Tools" href="/cgi-bin/koha/admin/preferences.pl?tab=tools">Tools</a></li>
19
[% IF ( tools ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Tools" href="/cgi-bin/koha/admin/preferences.pl?tab=tools">Tools</a></li>
19
[% IF ( web_services ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Web services" href="/cgi-bin/koha/admin/preferences.pl?tab=web_services">Web services</a></li>
20
[% IF ( web_services ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Web services" href="/cgi-bin/koha/admin/preferences.pl?tab=web_services">Web services</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/sip.pref (-1 / +32 lines)
Line 0 Link Here
0
- 
1
SIP:
2
    Checking out:
3
        -
4
            - "Show this message when renewing an item in self-checkout:"
5
            - pref: RenewItemSIPMessage
6
              class: multi
7
            - Leave blank to show no message.
8
        -
9
            - "Show this message when checking out an item in self-checkout reserved to another patron:"
10
            - pref: ReservedSIPMessage
11
              class: multi
12
            - Leave blank to show no message.
13
        -
14
            - "Show this message when checking out an item in self-checkout that the user has reserved:"
15
            - pref: ReservedWaitingSIPMessage
16
              class: multi
17
            - Leave blank to show no message.
18
        -
19
            - "Show this message when checking out an item in self-checkout that is already checked out to another patron:"
20
            - pref: CheckedToAnotherSIPMessage
21
              class: multi
22
            - Leave blank to show no message.
23
        -
24
            - "Show this message when patron attempting to check out an item in self-checkout has outstanding fines:"
25
            - pref: DebtSIPMessage
26
              class: multi
27
            - Leave blank to show no message.
28
        -
29
            - "Show this message when checking out an item in high demand:"
30
            - pref: HighHoldsSIPMessage
31
              class: multi
32
            - Leave blank to show no message.

Return to bug 19787