Bugzilla – Attachment 100115 Details for
Bug 20936
Holds history for patrons in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20936: Add OPACHoldsHistory syspref
Bug-20936-Add-OPACHoldsHistory-syspref.patch (text/plain), 3.37 KB, created by
Kyle M Hall (khall)
on 2020-03-04 13:41:44 UTC
(
hide
)
Description:
Bug 20936: Add OPACHoldsHistory syspref
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-03-04 13:41:44 UTC
Size:
3.37 KB
patch
obsolete
>From 3723107edc7f0a2e7a42f8d4e26e2ce7d7e46fef Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Sun, 9 Feb 2020 17:53:55 -0300 >Subject: [PATCH] Bug 20936: Add OPACHoldsHistory syspref > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../data/mysql/atomicupdate/bug-20936.perl | 17 +++++++++++++++++ > installer/data/mysql/sysprefs.sql | 1 + > .../prog/en/modules/admin/preferences/opac.pref | 6 ++++++ > 3 files changed, 24 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug-20936.perl > >diff --git a/installer/data/mysql/atomicupdate/bug-20936.perl b/installer/data/mysql/atomicupdate/bug-20936.perl >new file mode 100644 >index 0000000000..b9173fcde4 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug-20936.perl >@@ -0,0 +1,17 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ # you can use $dbh here like: >+ $dbh->do(qq{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('OPACHoldsHistory','1','','If ON, enables display of Patron Holds History in OPAC','YesNo') >+ }); >+ >+ # or perform some test and warn >+ # if( !column_exists( 'biblio', 'biblionumber' ) ) { >+ # warn "There is something wrong"; >+ # } >+ >+ # Always end with this (adjust the bug info) >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 20936 - Add OPACHoldsHistory preferences)\n"; >+} >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 40f7a4740f..5b9e72a728 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -386,6 +386,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('OpacHiddenItemsExceptions','',NULL,'List of borrower categories, separated by |, that can see items otherwise hidden by OpacHiddenItems','Textarea'), > ('OpacHighlightedWords','1','','If Set, then queried words are higlighted in OPAC','YesNo'), > ('OPACHoldingsDefaultSortField','first_column','first_column|homebranch|holdingbranch','Default sort field for the holdings table at the OPAC','choice'), >+('OPACHoldsHistory','1','','If ON, enables display of Patron Holds History in OPAC','YesNo'), > ('OPACHoldsIfAvailableAtPickup','1','','Allow to pickup up holds at libraries where the item is available','YesNo'), > ('OPACHoldsIfAvailableAtPickupExceptions','','','List the patron categories not affected by OPACHoldsIfAvailableAtPickup if off','Free'), > ('OpacHoldNotes','0','','Show hold notes on OPAC','YesNo'), >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 9c9b2b7f00..254f832c98 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 >@@ -708,6 +708,12 @@ OPAC: > yes: Allow > no: "Don't allow" > - patrons to see what books they have checked out in the past. >+ - >+ - pref: OPACHoldsHistory >+ choices: >+ yes: Allow >+ no: "Don't allow" >+ - patrons to see what books they have place holds in the past. > - > - pref: EnableOpacSearchHistory > default: 0 >-- >2.21.1 (Apple Git-122.3)
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 20936
:
98629
|
98630
|
100115
|
100116
|
100117
|
100205
|
100206
|
100207
|
100471
|
100472
|
100473
|
100474
|
101724
|
101725
|
101726
|
101727
|
101772
|
101915
|
102166
|
103948
|
103949
|
103950
|
103951
|
104040
|
104041
|
104466
|
104467
|
105131
|
112667
|
112668
|
112730
|
112731
|
112732
|
112733
|
113446
|
113447
|
113448
|
113449