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

(-)a/installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl (+12 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "31051",
5
    description => "Add new system preference OPACShowSavings",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('OPACShowSavings', 'none', 'none|checkouthistory|summary|user', 'Show on the OPAC the total amount a patron has saved by using a library instead of purchasing, based on replacement prices', 'multiple') });
11
    },
12
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 635-640 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
635
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
635
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
636
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
636
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
637
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),
637
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),
638
('OPACShowSavings', 'none', 'none|checkouthistory|summary|user', 'Show on the OPAC the total amount a patron has saved by using a library instead of purchasing, based on replacement prices', 'multiple'),
638
('SIP2SortBinMapping','',NULL,'Use the following mappings to determine the sort_bin of a returned item. The mapping should be on the form \"branchcode:item field:item field value:sort bin number\", with one mapping per line.','free'),
639
('SIP2SortBinMapping','',NULL,'Use the following mappings to determine the sort_bin of a returned item. The mapping should be on the form \"branchcode:item field:item field value:sort bin number\", with one mapping per line.','free'),
639
('SkipHoldTrapOnNotForLoanValue','',NULL,'If set, Koha will never trap items for hold with this notforloan value','Integer'),
640
('SkipHoldTrapOnNotForLoanValue','',NULL,'If set, Koha will never trap items for hold with this notforloan value','Integer'),
640
('SlipCSS','',NULL,'Slips CSS url.','free'),
641
('SlipCSS','',NULL,'Slips CSS url.','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +8 lines)
Lines 534-539 OPAC: Link Here
534
                  1: Enable
534
                  1: Enable
535
                  0: Disable
535
                  0: Disable
536
            - "interface for browsing all holdings (Elasticsearch only)."
536
            - "interface for browsing all holdings (Elasticsearch only)."
537
        -
538
            - "Calculate the amount a patron has 'saved' based on replacement prices, by using the library, and"
539
            - pref: OPACShowSavings
540
              multiple:
541
                  none: "do not display anywhere on the OPAC"
542
                  checkouthistory: "display on patron's checkout history page (the system preference <em>opacreadinghistory</em> must be enabled)"
543
                  summary: "display in user summary box on OPAC homepage (the system preference <em>OPACUserSummary</em> must be enabled)"
544
                  user: "display on patron's 'your summary' page"
537
    OpenURL:
545
    OpenURL:
538
        -
546
        -
539
            - 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):'
547
            - 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):'
540
- 

Return to bug 31051