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', '', '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 648-653 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
648
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
648
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
649
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
649
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
650
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),
650
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),
651
('OPACShowSavings', '', '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'),
651
('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'),
652
('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'),
652
('SkipHoldTrapOnNotForLoanValue','',NULL,'If set, Koha will never trap items for hold with this notforloan value','Integer'),
653
('SkipHoldTrapOnNotForLoanValue','',NULL,'If set, Koha will never trap items for hold with this notforloan value','Integer'),
653
('SlipCSS','',NULL,'Slips CSS url.','free'),
654
('SlipCSS','',NULL,'Slips CSS url.','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +7 lines)
Lines 543-548 OPAC: Link Here
543
            - "identifiers for authors and contributors to the detail pages in the OPAC."
543
            - "identifiers for authors and contributors to the detail pages in the OPAC."
544
            - "This feature requires authorities with 024$2 and 024$a."
544
            - "This feature requires authorities with 024$2 and 024$a."
545
            - "Valid source codes in $2 are currently: orcid, scopus, loop, rid and viaf."
545
            - "Valid source codes in $2 are currently: orcid, scopus, loop, rid and viaf."
546
        -
547
            - "Calculate the amount a patron has 'saved' by using the library based on replacement prices, and display:"
548
            - pref: OPACShowSavings
549
              multiple:
550
                  checkouthistory: "on patron's checkout history page (the system preference <em>opacreadinghistory</em> must be enabled)"
551
                  summary: "in user summary box on OPAC homepage (the system preference <em>OPACUserSummary</em> must be enabled)"
552
                  user: "on patron's 'your summary' page"
546
    OpenURL:
553
    OpenURL:
547
        -
554
        -
548
            - 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):'
555
            - 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):'
549
- 

Return to bug 31051