Bugzilla – Attachment 88744 Details for
Bug 8995
Show OpenURL links in OPAC search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8995: (QA follow-up) Convert db update to perl
Bug-8995-QA-follow-up-Convert-db-update-to-perl.patch (text/plain), 2.58 KB, created by
Martin Renvoize (ashimema)
on 2019-04-25 09:46:28 UTC
(
hide
)
Description:
Bug 8995: (QA follow-up) Convert db update to perl
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-25 09:46:28 UTC
Size:
2.58 KB
patch
obsolete
>From 934d6c8bbaafc4cce306510b5c8e8fe1e6c401fe Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 25 Apr 2019 10:39:14 +0100 >Subject: [PATCH] Bug 8995: (QA follow-up) Convert db update to perl > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../mysql/atomicupdate/8995_OpenURL_sysprefs.sql | 6 ------ > installer/data/mysql/atomicupdate/bug_8995.perl | 15 +++++++++++++++ > 2 files changed, 15 insertions(+), 6 deletions(-) > delete mode 100644 installer/data/mysql/atomicupdate/8995_OpenURL_sysprefs.sql > create mode 100644 installer/data/mysql/atomicupdate/bug_8995.perl > >diff --git a/installer/data/mysql/atomicupdate/8995_OpenURL_sysprefs.sql b/installer/data/mysql/atomicupdate/8995_OpenURL_sysprefs.sql >deleted file mode 100644 >index ff70900e3e..0000000000 >--- a/installer/data/mysql/atomicupdate/8995_OpenURL_sysprefs.sql >+++ /dev/null >@@ -1,6 +0,0 @@ >-INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES >- ('OpenURLResolverURL', '', 'URL of OpenURL Resolver', NULL, 'Free'), >- ('OpenURLText', '', 'Text of OpenURL links (or image title if OpenURLImageLocation is defined)', NULL, 'Free'), >- ('OpenURLImageLocation', '', 'Location of image for OpenURL links', NULL, 'Free'), >- ('OPACShowOpenURL', '', 'Enable display of OpenURL links in OPAC search results and detail page', NULL, 'YesNo'), >- ('OPACOpenURLItemTypes', '', 'Show the OpenURL link only for these item types', NULL, 'Free'); >diff --git a/installer/data/mysql/atomicupdate/bug_8995.perl b/installer/data/mysql/atomicupdate/bug_8995.perl >new file mode 100644 >index 0000000000..d1fd16a5dd >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_8995.perl >@@ -0,0 +1,15 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if ( CheckVersion($DBversion) ) { >+ $dbh->do(q{ >+ INSERT IGNORE INTO `systempreferences` (`variable`, `value`, `explanation`, `options`, `type`) VALUES >+ ('OpenURLResolverURL', '', 'URL of OpenURL Resolver', NULL, 'Free'), >+ ('OpenURLText', '', 'Text of OpenURL links (or image title if OpenURLImageLocation is defined)', NULL, 'Free'), >+ ('OpenURLImageLocation', '', 'Location of image for OpenURL links', NULL, 'Free'), >+ ('OPACShowOpenURL', '', 'Enable display of OpenURL links in OPAC search results and detail page', NULL, 'YesNo'), >+ ('OPACOpenURLItemTypes', '', 'Show the OpenURL link only for these item types', NULL, 'Free'); >+ }); >+ >+ SetVersion($DBversion); >+ print >+"Upgrade to $DBversion done (Bug 8995 - Add new preferences for OpenURLResolvers)\n"; >+} >-- >2.20.1
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 8995
:
13141
|
22753
|
23625
|
23626
|
23627
|
24087
|
24088
|
24089
|
26899
|
26900
|
26901
|
29357
|
29358
|
29359
|
30385
|
30386
|
30387
|
30388
|
30389
|
30390
|
35747
|
35916
|
40647
|
44639
|
48371
|
48372
|
55131
|
55132
|
55133
|
55134
|
55135
|
55136
|
55882
|
64513
|
64514
|
64515
|
64516
|
64517
|
64518
|
64519
|
64532
|
64533
|
64534
|
64535
|
64536
|
64537
|
64538
|
86483
|
86484
|
86485
|
86486
|
86487
|
86488
|
86489
|
86490
|
86491
|
86492
|
86541
|
86542
|
86557
|
86558
|
86559
|
86601
|
86602
|
86603
|
86604
|
86605
|
86606
|
86607
|
86608
|
86609
|
86610
|
88665
|
88666
|
88667
|
88668
|
88669
|
88670
|
88671
|
88672
|
88673
|
88735
|
88736
|
88737
|
88738
|
88739
|
88740
|
88741
|
88742
|
88743
|
88744
|
89012
|
89013
|
89014
|
89015
|
89120