]> git.koha-community.org Git - koha.git/commit
Bug 21403: Add Indian Amazon Affiliate option to AmazonLocale setting
authorOwen Leonard <oleonard@myacpl.org>
Tue, 25 Sep 2018 13:16:09 +0000 (13:16 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 2 Oct 2018 00:03:03 +0000 (00:03 +0000)
commitd1bf2238c49bad5471b467aae4a5f680639cee97
treeb57c7fb4e7818646ef56175892d541df273b1fdd
parent15670cd590e4a1efc01bb9bd1648162781486f5b
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.

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/External/Amazon.pm
installer/data/mysql/atomicupdate/bug_21403-add_indian_amazon_domain.sql [new file with mode: 0644]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref