Bugzilla – Attachment 171358 Details for
Bug 36197
Allow for OPAC unauthenticated ILL request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36197: Add ILLOpacUnauthenticatedRequest sys pref
Bug-36197-Add-ILLOpacUnauthenticatedRequest-sys-pr.patch (text/plain), 3.29 KB, created by
Pedro Amorim
on 2024-09-12 09:34:36 UTC
(
hide
)
Description:
Bug 36197: Add ILLOpacUnauthenticatedRequest sys pref
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-09-12 09:34:36 UTC
Size:
3.29 KB
patch
obsolete
>From feb6cba6513747482bac8c8302d5754162363ac3 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 16 Apr 2024 14:06:01 +0000 >Subject: [PATCH] Bug 36197: Add ILLOpacUnauthenticatedRequest sys pref > >Signed-off-by: David Nind <david@davidnind.com> >--- > installer/data/mysql/atomicupdate/bug_36197.pl | 14 ++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../admin/preferences/interlibrary_loans.pref | 7 +++++++ > 3 files changed, 22 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_36197.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_36197.pl b/installer/data/mysql/atomicupdate/bug_36197.pl >new file mode 100755 >index 0000000000..c3d53c045f >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_36197.pl >@@ -0,0 +1,14 @@ >+use Modern::Perl; >+return { >+ bug_number => "36197", >+ description => "Add new ILLOpacUnauthenticatedRequest system preferences", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('ILLOpacUnauthenticatedRequest','',NULL,'Can OPAC users place ILL requests without having to be logged in','YesNo'); } >+ ); >+ say $out "Added new system preference 'ILLOpacUnauthenticatedRequest'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 51cc62a0dc..fa4d9cc118 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -322,6 +322,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('AutoILLBackendPriority','',NULL,'Set the automatic backend selection priority','ILLBackends'), > ('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'), > ('ILLOpacbackends',NULL,NULL,'ILL backends to enabled for OPAC initiated requests','multiple'), >+('ILLOpacUnauthenticatedRequest',NULL,NULL,'Can OPAC users place ILL requests without having to be logged in','YesNo'), > ('ILLPartnerCode','IL','','Patrons from this patron category will be used as partners to place ILL requests with','free'), > ('ILLSendStaffNotices', NULL, NULL, 'Send these ILL notices to staff', 'multiple'), > ('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref >index f99234b8b3..bc74371a0d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/interlibrary_loans.pref >@@ -47,6 +47,13 @@ Interlibrary loans: > - pref: ILLOpacbackends > class: multi > - (separated with |). If left empty, all installed backends will be enabled. >+ - >+ - pref: ILLOpacUnauthenticatedRequest >+ default: 0 >+ choices: >+ 0: "Don't allow" >+ 1: Allow >+ - OPAC users to place ILL requests without having to be logged in. > Workflow: > - > - pref: ILLCheckAvailability >-- >2.39.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 36197
:
171358
|
171359
|
171360
|
171361
|
171362
|
171363
|
171364
|
171365
|
171366
|
171367
|
171368
|
171369
|
171370
|
171371
|
174495
|
174496
|
174497
|
174498
|
174499
|
174500
|
174501
|
174502
|
174503
|
174504
|
174505
|
174506
|
174507
|
174508