Bugzilla – Attachment 107507 Details for
Bug 20472
Add digital scan as optional format to Article Requests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20472: Db rev for new preference ArticleRequestsSupportedFormats
Bug-20472-Db-rev-for-new-preference-ArticleRequest.patch (text/plain), 3.76 KB, created by
Marcel de Rooy
on 2020-07-29 14:48:28 UTC
(
hide
)
Description:
Bug 20472: Db rev for new preference ArticleRequestsSupportedFormats
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-07-29 14:48:28 UTC
Size:
3.76 KB
patch
obsolete
>From eb6a37125df482510d3c66c4b14caaa7a17716d5 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 26 Mar 2018 15:10:54 +0200 >Subject: [PATCH] Bug 20472: Db rev for new preference > ArticleRequestsSupportedFormats >Content-Type: text/plain; charset=utf-8 > >This preference controls which formats are actually offered to patrons of >the library via the Article Request feature. >By default, it only contains PHOTOCOPY. This is default behavior. > >The request format SCAN will be made possible by this report and can be >added by changing the preference. > >Test plan: >Run the dbrev. Check the new pref on Administration. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > installer/data/mysql/atomicupdate/bug_20472b.perl | 8 ++++++++ > installer/data/mysql/sysprefs.sql | 1 + > .../prog/en/modules/admin/preferences/circulation.pref | 5 +++++ > 3 files changed, 14 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_20472b.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_20472b.perl b/installer/data/mysql/atomicupdate/bug_20472b.perl >new file mode 100644 >index 0000000000..d33859c525 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_20472b.perl >@@ -0,0 +1,8 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES >+ ('ArticleRequestsSupportedFormats', 'PHOTOCOPY', 'PHOTOCOPY|SCAN', 'List supported formats between vertical bars', 'free') >+ }); >+ NewVersion( $DBversion, 20472, "Add syspref ArticleRequestsSupportedFormats"); >+} >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index dbb13938ae..f4427e2e1d 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -59,6 +59,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ArticleRequestsMandatoryFields', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''yes''', 'multiple'), > ('ArticleRequestsMandatoryFieldsItemsOnly', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''item_only''', 'multiple'), > ('ArticleRequestsMandatoryFieldsRecordOnly', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''bib_only''', 'multiple'), >+('ArticleRequestsSupportedFormats', 'PHOTOCOPY', 'PHOTOCOPY|SCAN', 'List supported formats between vertical bars', 'free'), > ('AudioAlerts','0','','Enable circulation sounds during checkin and checkout in the staff interface. Not supported by all web browsers yet.','YesNo'), > ('AuthDisplayHierarchy','0','','Display authority hierarchies','YesNo'), > ('AuthFailureLog','',NULL,'If enabled, log authentication failures','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >index 20e0400fd0..3079702860 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >@@ -1156,6 +1156,11 @@ Circulation: > pages: Pages > chapters: Chapters > - >+ - >+ - "The following article request formats are supported:" >+ - pref: ArticleRequestsSupportedFormats >+ - "(Valid choices are currently: PHOTOCOPY and SCAN. Separate the supported formats by a vertical bar. The first listed format is selected by default when you request via the OPAC.)" >+ > Return claims: > - > - When marking a checkout as "claims returned", >-- >2.11.0
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 20472
:
107506
|
107507
|
107508
|
107509
|
107510
|
107511
|
107512
|
111473
|
111474
|
111475
|
111476
|
111477
|
111478
|
111479
|
122366
|
122367
|
122368
|
122369
|
122370
|
122371
|
122372
|
122373
|
122374
|
122375
|
122376
|
122377
|
122378
|
122379
|
122382
|
122383
|
122699
|
122700
|
122701
|
122702
|
122703
|
122704
|
122705
|
122706
|
122775
|
122781