Bugzilla – Attachment 136772 Details for
Bug 31051
Show patron's 'savings' on the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31051: Add OPACShowSavings system preference
Bug-31051-Add-OPACShowSavings-system-preference.patch (text/plain), 3.90 KB, created by
Biblibre Sandboxes
on 2022-06-30 13:56:59 UTC
(
hide
)
Description:
Bug 31051: Add OPACShowSavings system preference
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2022-06-30 13:56:59 UTC
Size:
3.90 KB
patch
obsolete
>From 74452a1fbb5012f84758544193dbd69cd17b8e9e Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 27 Jun 2022 17:11:23 +1200 >Subject: [PATCH] Bug 31051: Add OPACShowSavings system preference > >Signed-off-by: Axelle <axelle.clarisse@univ-amu.fr> >--- > .../bug_31051_-_add_OPACShowSavings_syspref.pl | 12 ++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../prog/en/modules/admin/preferences/opac.pref | 7 +++++++ > 3 files changed, 20 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl b/installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl >new file mode 100644 >index 0000000000..f78f77b9af >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_31051_-_add_OPACShowSavings_syspref.pl >@@ -0,0 +1,12 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "31051", >+ description => "Add new system preference OPACShowSavings", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ >+ $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') }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index c1162d9f6c..9004db67f3 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -635,6 +635,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'), > ('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'), > ('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'), >+('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'), > ('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'), > ('SkipHoldTrapOnNotForLoanValue','',NULL,'If set, Koha will never trap items for hold with this notforloan value','Integer'), > ('SlipCSS','',NULL,'Slips CSS url.','free'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index ea9e864911..711f6e1ceb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -534,6 +534,13 @@ OPAC: > 1: Enable > 0: Disable > - "interface for browsing all holdings (Elasticsearch only)." >+ - >+ - "Calculate the amount a patron has 'saved' by using the library based on replacement prices, and display:" >+ - pref: OPACShowSavings >+ multiple: >+ checkouthistory: "on patron's checkout history page (the system preference <em>opacreadinghistory</em> must be enabled)" >+ summary: "in user summary box on OPAC homepage (the system preference <em>OPACUserSummary</em> must be enabled)" >+ user: "on patron's 'your summary' page" > OpenURL: > - > - 'Complete URL of OpenURL resolver (starting with <code>http://</code> or <code>https://</code>):' >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31051
:
136564
|
136664
|
136698
|
136699
|
136770
|
136772
|
136773
|
136779
|
136781
|
139100
|
139101
|
139102
|
139408
|
139409
|
139410
|
139911
|
139912
|
139913
|
139914
|
139937
|
143384
|
144082
|
144759
|
144760
|
144761
|
144762
|
144763
|
146431
|
146432
|
147189
|
147190