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

Return to bug 31051