ISBN - Internal code

From Cookipedia
Jump to: navigation, search


ISBN Wiki Internals

How to set MediaWiki ISBN lookup so Amazon UK and others are included.

Some Useful information

Default install does not have UK locale lookups for internal MediaWiki ISBN function.

php array $bookstoreList contains ISBN lookup.

Array (for UK) is held in: /wiki/languages/messages/MessagesEn.php

Modified version for UK (Tested 2012) is:

/**
* Default list of book sources
*/
$bookstoreList = array(
       'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1',
       'Amazon.co.uk' => 'http://www.amazon.co.uk/exec/obidos/ISBN=$1',
       'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
       'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1',
       'Barnes & Noble' => 'http://search.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1'
);


#isbninternalcode #help