Bugzilla – Attachment 79373 Details for
Bug 21403
Add Indian Amazon Affiliate option to AmazonLocale setting
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21403: Add Indian Amazon Affiliate option to AmazonLocale setting
Bug-21403-Add-Indian-Amazon-Affiliate-option-to-Am.patch (text/plain), 3.78 KB, created by
Owen Leonard
on 2018-09-25 13:27:12 UTC
(
hide
)
Description:
Bug 21403: Add Indian Amazon Affiliate option to AmazonLocale setting
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2018-09-25 13:27:12 UTC
Size:
3.78 KB
patch
obsolete
>From 7ae32d159e074145b519e5634406af0abdf73b17 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 25 Sep 2018 13:16:09 +0000 >Subject: [PATCH] Bug 21403: Add Indian Amazon Affiliate option to AmazonLocale > setting > >This patch adds an "IN" option to the AmazonLocale setting, allowing >Indian libraries to use their Amazon Affiliate ID in Koha's links to >Amazon. > >To test, apply the patch and run updatedatabase. > >- Go to Administration -> System preferences -> Enhanced content. >- Enable the OPACAmazonCoverImages preference. >- Enter a dummy ID in the AmazonAssocTag preference. >- Confirm that you can select "Indian" for the AmazonLocale preference. >- Select "Indian" and save. >- Open a record in the OPAC and confirm that the cover image links to > Amazon.in and includes the ID you entered in AmazonAssocTag. >- Do the same with a record in the staff client. >--- > C4/External/Amazon.pm | 1 + > .../data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql | 1 + > installer/data/mysql/sysprefs.sql | 2 +- > .../prog/en/modules/admin/preferences/enhanced_content.pref | 1 + > 4 files changed, 4 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql > >diff --git a/C4/External/Amazon.pm b/C4/External/Amazon.pm >index a76ab86..644d3ba 100644 >--- a/C4/External/Amazon.pm >+++ b/C4/External/Amazon.pm >@@ -37,6 +37,7 @@ sub get_amazon_tld { > CA => '.ca', > DE => '.de', > FR => '.fr', >+ IN => '.in', > JP => '.jp', > UK => '.co.uk', > US => '.com', >diff --git a/installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql b/installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql >new file mode 100644 >index 0000000..06de3fe >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql >@@ -0,0 +1 @@ >+UPDATE `systempreferences` SET options = 'US|CA|DE|FR|IN|JP|UK' WHERE variable = 'AmazonLocale'; >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index a08ff3e..0a54b66 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -43,7 +43,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('AlternateHoldingsSeparator','',NULL,'The string to use to separate subfields in alternate holdings displays.','free'), > ('AmazonAssocTag','','','See: http://aws.amazon.com','free'), > ('AmazonCoverImages','0','','Display Cover Images in Staff Client from Amazon Web Services','YesNo'), >-('AmazonLocale','US','US|CA|DE|FR|JP|UK','Use to set the Locale of your Amazon.com Web Services','Choice'), >+('AmazonLocale','US','US|CA|DE|FR|IN|JP|UK','Use to set the Locale of your Amazon.com Web Services','Choice'), > ('AnonSuggestions','0',NULL,'Set to enable Anonymous suggestions to AnonymousPatron borrowernumber','YesNo'), > ('AnonymousPatron','0',NULL,'Set the identifier (borrowernumber) of the anonymous patron. Used for Suggestion and reading history privacy',''), > ('ArticleRequests', '0', NULL, 'Enables the article request feature', 'YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >index 9701280..9d11d34 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >@@ -25,6 +25,7 @@ Enhanced Content: > CA: Canadian > DE: German > FR: French >+ IN: Indian > JP: Japanese > UK: British > - website. >-- >2.1.4
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 21403
:
79353
|
79373
|
79608
|
79735
|
79736