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

(-)a/C4/SIP/ILS/Transaction/Checkout.pm (-6 / +6 lines)
Lines 68-76 sub do_checkout { Link Here
68
    } else {
68
    } else {
69
        foreach my $confirmation (keys %{$needsconfirmation}) {
69
        foreach my $confirmation (keys %{$needsconfirmation}) {
70
            if ($confirmation eq 'RENEW_ISSUE'){
70
            if ($confirmation eq 'RENEW_ISSUE'){
71
                $self->screen_msg("Item already checked out to you: renewing item.");
71
                $self->screen_msg( C4::Context->preference('RenewItemSIPMessage') );
72
            } elsif ($confirmation eq 'RESERVED' and !C4::Context->preference("AllowItemsOnHoldCheckoutSIP")) {
72
            } elsif ($confirmation eq 'RESERVED' and !C4::Context->preference("AllowItemsOnHoldCheckoutSIP")) {
73
                $self->screen_msg("Item is reserved for another patron upon return.");
73
                $self->screen_msg( C4::Context->preference('ReservedSIPMessage') );
74
                $noerror = 0;
74
                $noerror = 0;
75
            } elsif ($confirmation eq 'RESERVED' and C4::Context->preference("AllowItemsOnHoldCheckoutSIP")) {
75
            } elsif ($confirmation eq 'RESERVED' and C4::Context->preference("AllowItemsOnHoldCheckoutSIP")) {
76
                next;
76
                next;
Lines 78-96 sub do_checkout { Link Here
78
                      or $confirmation eq 'TRANSFERRED'
78
                      or $confirmation eq 'TRANSFERRED'
79
                      or $confirmation eq 'PROCESSING') {
79
                      or $confirmation eq 'PROCESSING') {
80
               $debug and warn "Item is on hold for another patron.";
80
               $debug and warn "Item is on hold for another patron.";
81
               $self->screen_msg("Item is on hold for another patron.");
81
               $self->screen_msg( C4::Context->preference('ReservedWaitingSIPMessage') );
82
               $noerror = 0;
82
               $noerror = 0;
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.perl (+14 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
5
        ('RenewItemSIPMessage','Item already checked out to you: renewing item.',NULL,'Message to be shown when renewing item in self-checkout','Free'),
6
        ('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'),
7
        ('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'),
8
        ('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'),
9
        ('DebtSIPMessage','Outstanding fines, block checkout.',NULL,'Message to be shown when patron attempting to check out in self-checkout has outstanding fines','Free'),
10
        ('HighHoldsSIPMessage','Loan period reduced for high-demand item',NULL,'Message to be shown when checking out a high demand item','Free')
11
    });
12
13
    NewVersion( $DBversion, 19787, "Add SIP message system preferences (RenewItemSIPMessage, ReservedSIPMessage, ReservedWaitingSIPMessage, CheckedToAnotherSIPMessage, DebtSIPMessage, HighHoldsSIPMessage)" );
14
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+7 lines)
Lines 123-128 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
123
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
123
('CatalogModuleRelink','0',NULL,'If OFF the linker will never replace the authids that are set in the cataloging module.','YesNo'),
124
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
124
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
125
('ChargeFinesOnClosedDays','0',NULL,'Charge fines on days the library is closed.','YesNo'),
125
('ChargeFinesOnClosedDays','0',NULL,'Charge fines on days the library is closed.','YesNo'),
126
('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'),
126
('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'),
127
('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'),
127
('CheckPrevCheckoutDelay','0', NULL,'Maximum number of days that will trigger a warning if the patron has borrowed that item in the past when CheckPrevCheckout is enabled.','free'),
128
('CheckPrevCheckoutDelay','0', NULL,'Maximum number of days that will trigger a warning if the patron has borrowed that item in the past when CheckPrevCheckout is enabled.','free'),
128
('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'),
129
('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'),
Lines 146-151 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
146
('CustomCoverImages','0',NULL,'If enabled, the custom cover images will be displayed in the staff interface. CustomCoverImagesURL must be defined.','YesNo'),
147
('CustomCoverImages','0',NULL,'If enabled, the custom cover images will be displayed in the staff interface. CustomCoverImagesURL must be defined.','YesNo'),
147
('CustomCoverImagesURL','',NULL,'Define an URL serving book cover images, using the following patterns: %issn%, %isbn%, FIXME ADD MORE (use it with CustomCoverImages and/or OPACCustomCoverImages)','free'),
148
('CustomCoverImagesURL','',NULL,'Define an URL serving book cover images, using the following patterns: %issn%, %isbn%, FIXME ADD MORE (use it with CustomCoverImages and/or OPACCustomCoverImages)','free'),
148
('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'),
149
('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'),
150
('DebtSIPMessage','Outstanding fines, block issue.',NULL,'Message to be shown when patron attempting to check out in self-checkout has outstanding fines','Free'),
149
('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'),
151
('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'),
150
('decreaseLoanHighHolds','0','','Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue','YesNo'),
152
('decreaseLoanHighHolds','0','','Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue','YesNo'),
151
('decreaseLoanHighHoldsControl', 'static', 'static|dynamic', "Chooses between static and dynamic high holds checking", 'Choice'),
153
('decreaseLoanHighHoldsControl', 'static', 'static|dynamic', "Chooses between static and dynamic high holds checking", 'Choice'),
Lines 228-233 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
228
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
230
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
229
('hide_marc','0',NULL,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)','YesNo'),
231
('hide_marc','0',NULL,'If ON, disables display of MARC fields, subfield codes & indicators (still shows data)','YesNo'),
230
('HighlightOwnItemsOnOPAC','0','','If on, and a patron is logged into the OPAC, items from their home library will be emphasized and shown first in search results and item details.','YesNo'),
232
('HighlightOwnItemsOnOPAC','0','','If on, and a patron is logged into the OPAC, items from their home library will be emphasized and shown first in search results and item details.','YesNo'),
233
('HighHoldsSIPMessage','Loan period reduced for high-demand item',NULL,'Message to be shown when checking out a high demand item','Free'),
234
('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'),
231
('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'),
235
('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'),
232
('HoldFeeMode','not_always','any_time_is_placed|not_always|any_time_is_collected','Set the hold fee mode','Choice'),
236
('HoldFeeMode','not_always','any_time_is_placed|not_always|any_time_is_collected','Set the hold fee mode','Choice'),
233
('HoldsAutoFill','0',NULL,'If on, librarian will not be asked if hold should be filled, it will be filled automatically','YesNo'),
237
('HoldsAutoFill','0',NULL,'If on, librarian will not be asked if hold should be filled, it will be filled automatically','YesNo'),
Lines 552-557 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
552
('RenewalLog','0','','If ON, log information about renewals','YesNo'),
556
('RenewalLog','0','','If ON, log information about renewals','YesNo'),
553
('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'),
557
('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'),
554
('RenewalSendNotice','0','',NULL,'YesNo'),
558
('RenewalSendNotice','0','',NULL,'YesNo'),
559
('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'),
555
('RenewSerialAddsSuggestion','0',NULL,'If ON, adds a new suggestion at serial subscription renewal','YesNo'),
560
('RenewSerialAddsSuggestion','0',NULL,'If ON, adds a new suggestion at serial subscription renewal','YesNo'),
556
('RentalFeesCheckoutConfirmation', '0', NULL , 'Allow user to confirm when checking out an item with rental fees.', 'YesNo'),
561
('RentalFeesCheckoutConfirmation', '0', NULL , 'Allow user to confirm when checking out an item with rental fees.', 'YesNo'),
557
('RentalsInNoissuesCharge','1',NULL,'Rental charges block checkouts (added to noissuescharge).','YesNo'),
562
('RentalsInNoissuesCharge','1',NULL,'Rental charges block checkouts (added to noissuescharge).','YesNo'),
Lines 559-564 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
559
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
564
('ReportsLog','0',NULL,'If ON, log information about reports.','YesNo'),
560
('RequestOnOpac','1',NULL,'If ON, globally enables patron holds on OPAC','YesNo'),
565
('RequestOnOpac','1',NULL,'If ON, globally enables patron holds on OPAC','YesNo'),
561
('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'),
566
('RequireStrongPassword','1','','Require a strong login password for staff and patrons','YesNo'),
567
('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'),
568
('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'),
562
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
569
('ReservesControlBranch','PatronLibrary','ItemHomeLibrary|PatronLibrary','Branch checked for members reservations rights','Choice'),
563
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
570
('ReservesMaxPickUpDelay','7','','Define the Maximum delay to pick up an item on hold','Integer'),
564
('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'),
571
('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 (+10 lines)
Lines 139-144 Link Here
139
        [% END %]
139
        [% END %]
140
        </li>
140
        </li>
141
141
142
        [% IF ( sip ) %]
143
            <li class="active">
144
                <a title="SIP" href="/cgi-bin/koha/admin/preferences.pl?tab=sip">SIP</a>
145
                [% PROCESS subtabs %]
146
        [% ELSE %]
147
            <li>
148
                <a title="SIP" href="/cgi-bin/koha/admin/preferences.pl?tab=sip">SIP</a>
149
        [% END %]
150
        </li>
151
142
        [% IF ( staff_interface ) %]
152
        [% IF ( staff_interface ) %]
143
            <li class="active">
153
            <li class="active">
144
                <a title="Staff interface" href="/cgi-bin/koha/admin/preferences.pl?tab=staff_interface">Staff interface</a>
154
                <a title="Staff interface" href="/cgi-bin/koha/admin/preferences.pl?tab=staff_interface">Staff interface</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/sip.pref (-1 / +32 lines)
Line 0 Link Here
0
- 
1
SIP:
2
    Custom SIP messages:
3
        -
4
            - "When renewing an item in self-checkout, show the message:"
5
            - pref: RenewItemSIPMessage
6
              class: multi
7
            - or leave blank to show no message.
8
        -
9
            - "When checking out an item in self-checkout reserved to another patron, show the message:"
10
            - pref: ReservedSIPMessage
11
              class: multi
12
            - or leave blank to show no message.
13
        -
14
            - "When checking out an item in self-checkout that the user has reserved, show the message:"
15
            - pref: ReservedWaitingSIPMessage
16
              class: multi
17
            - or leave blank to show no message.
18
        -
19
            - "When checking out an item in self-checkout that is already checked out to another patron, show the message:"
20
            - pref: CheckedToAnotherSIPMessage
21
              class: multi
22
            - or leave blank to show no message.
23
        -
24
            - "When patron attempting to check out an item in self-checkout has outstanding fines, show the message:"
25
            - pref: DebtSIPMessage
26
              class: multi
27
            - or leave blank to show no message.
28
        -
29
            - "When checking out an item in high demand, show the message:"
30
            - pref: HighHoldsSIPMessage
31
              class: multi
32
            - or leave blank to show no message.

Return to bug 19787