Bugzilla – Attachment 169748 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: Add new system preference 'OPACVirtualCardBarcode'
Bug-26777-Add-new-system-preference-OPACVirtualCar.patch (text/plain), 5.76 KB, created by
Martin Renvoize (ashimema)
on 2024-07-26 15:18:15 UTC
(
hide
)
Description:
Bug 26777: Add new system preference 'OPACVirtualCardBarcode'
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-07-26 15:18:15 UTC
Size:
5.76 KB
patch
obsolete
>From 047a1f021364b953203383b3f4bff3beab17175f Mon Sep 17 00:00:00 2001 >From: Sam Lau <samalau@gmail.com> >Date: Mon, 24 Jun 2024 16:26:36 +0000 >Subject: [PATCH] Bug 26777: Add new system preference 'OPACVirtualCardBarcode' > >Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../data/mysql/atomicupdate/bug_26777.pl | 32 +++++++++++++++++++ > .../data/mysql/atomicupdate/bug_37118.pl | 23 ------------- > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/opac.pref | 17 ++++++++++ > 4 files changed, 50 insertions(+), 23 deletions(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_26777.pl > delete mode 100755 installer/data/mysql/atomicupdate/bug_37118.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_26777.pl b/installer/data/mysql/atomicupdate/bug_26777.pl >new file mode 100755 >index 00000000000..f9df800b93c >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_26777.pl >@@ -0,0 +1,32 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "26777", >+ description => "Adds new system preferences 'OPACVirtualCard and 'OPACVirtualCardBarcode'", >+ 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') >+ } >+ ); >+ >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('OPACVirtualCardBarcode', 'code39', 'code39|code128|ean13|upca|upce|ean8|itf14|qrcode|matrix2of5|industrial2of5|iata2of5|coop2of5','Specify the type of barcode to be used in the patron virtual library card tab in the OPAC.', 'Choice') >+ } >+ ); >+ >+ >+ # sysprefs >+ say $out "Added new system preference 'OPACVirtualCard'"; >+ say $out "Added new system preference 'OPACVirtualCardBarcode'"; >+ >+ }, >+}; >diff --git a/installer/data/mysql/atomicupdate/bug_37118.pl b/installer/data/mysql/atomicupdate/bug_37118.pl >deleted file mode 100755 >index 4c3990c89fc..00000000000 >--- a/installer/data/mysql/atomicupdate/bug_37118.pl >+++ /dev/null >@@ -1,23 +0,0 @@ >-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 707f80b805b..2a4002a8529 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -569,6 +569,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('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'), >+('OPACVirtualCardBarcode','code39','code39|code128|ean13|upca|upce|ean8|itf14|qrcode|matrix2of5|industrial2of5|iata2of5|coop2of5','Specify the type of barcode to be used in the patron virtual library card tab in the OPAC','Choice'), > ('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 1f26f6623e7..9b3b1ca675a 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 >@@ -914,6 +914,23 @@ OPAC: > 1: Allow > 0: "Don't allow" > - patrons to access the 'My Virtual Card' tab on their account page on the OPAC. >+ - "If set to allow, show a " >+ - pref: OPACVirtualCardBarcode >+ default: code39 >+ choices: >+ code39: "CODE39" >+ code128: "CODE128" >+ ean13: "EAN-13" >+ upca: "UPC-A" >+ upce: "UPC-E" >+ ean8: "EAN-8" >+ itf14: "ITF-14" >+ qrcode: "QR Code" >+ matrix2of5: "Matrix 2 of 5" >+ industrial2of5: "Industrial 2 of 5" >+ iata2of5: "IATA 2 of 5" >+ coop2of5: "COOP 2 of 5" >+ - " barcode in the patron's virtual card." > - > - "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