Bugzilla – Attachment 169742 Details for
Bug 26777
Give the user the option to display their patron card barcode from the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26777: Added new sys pref 'OPACVirtualCard'
Bug-26777-Added-new-sys-pref-OPACVirtualCard.patch (text/plain), 3.51 KB, created by
Martin Renvoize (ashimema)
on 2024-07-26 15:17:52 UTC
(
hide
)
Description:
Bug 26777: Added new sys pref 'OPACVirtualCard'
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-07-26 15:17:52 UTC
Size:
3.51 KB
patch
obsolete
>From 3e94fd1a03e56d483c50bb4b713dfcdfd268ba11 Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Tue, 18 Jun 2024 19:04:44 +0000 >Subject: [PATCH] Bug 26777: Added new sys pref 'OPACVirtualCard' > >Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../data/mysql/atomicupdate/bug_37118.pl | 21 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/opac.pref | 6 ++++++ > 3 files changed, 28 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_37118.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_37118.pl b/installer/data/mysql/atomicupdate/bug_37118.pl >new file mode 100644 >index 00000000000..26d3554c943 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_37118.pl >@@ -0,0 +1,21 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "37118", >+ description => "Adds new system preference 'OPACVirtualCard'", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ # Do you stuffs here >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('OPACVirtualCard', '0', NULL,'Enable virtual library cards for patrons on the OPAC.', 'YesNo') >+ }); >+ >+ # sysprefs >+ say $out "Added new system preference 'OPACVirtualCard'"; >+ >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 1a7cd033e90..707f80b805b 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -568,6 +568,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'), > ('OPACUserSummary', 1, NULL, "Show the summary of a logged in user's checkouts, overdues, holds and fines on the mainpage", 'YesNo'), > ('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'), >+('OPACVirtualCard','0',NULL,'If ON, the patron virtual library card tab in the OPAC will be enabled','YesNo'), > ('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'), > ('OPACXSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on OPAC','Free'), > ('OPACXSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on OPAC','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 1fe694567c2..1f26f6623e7 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 >@@ -908,6 +908,12 @@ OPAC: > 1: Show > 0: "Don't show" > - purchase suggestions from other patrons on the OPAC. >+ - >+ - pref: OPACVirtualCard >+ choices: >+ 1: Allow >+ 0: "Don't allow" >+ - patrons to access the 'My Virtual Card' tab on their account page on the OPAC. > - > - "Fields that should be mandatory for patron purchase suggestions:" > - pref: OPACSuggestionMandatoryFields >-- >2.45.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 26777
:
167969
|
167970
|
167971
|
167972
|
167976
|
167977
|
168029
|
168030
|
168165
|
168166
|
168167
|
168168
|
168169
|
168170
|
168171
|
168172
|
168289
|
168290
|
168291
|
168292
|
168293
|
168294
|
168295
|
168296
|
169742
|
169743
|
169744
|
169745
|
169746
|
169747
|
169748
|
169749
|
170667
|
170668
|
170669
|
170670
|
170671
|
170672
|
170673
|
170674