[Koha] Adding your own book covers to koha

Vimal Kumar vimal0212 at gmail.com
Sat May 23 20:20:37 NZST 2009


Here is a simple solution to display your own book jacket in OPAC.

 Find the following file,
/usr/share/koha/opac/htdocs/opac-tmpl/prog/en/modules/opac-detail.tmpl

Open this file in a tex editor and find the following code segment, Line 57.


<!-- TMPL_IF NAME="AmazonContent" --><a href="
http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="amazonisbn"
-->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="
http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="amazonisbn"
-->.01._PIdp-schmooS,TopRight,7,-26_SCMZZZZZZZ_.jpg" alt="Cover Image"
/></a><!-- /TMPL_IF -->


  Replace above mentioned part using following code.

 <img src="http://www.yourserver.com/P/<!-- TMPL_VAR NAME="isbn" -->.jpg"
alt="Book Cover Image" />

 You can place Images folder in your webspace called “P”. Otherwise you can
create a folder for book jacket in the same place “opac-detail.tmpl”
resides. Book jacket images must be in jpg format.

Image name must be ISBN number of Books (Eg. 0060779616.jpg).

Drawback of this solution is OPAC will not display images from Amazon.


 This solution earlier suggested by Ata ur Rehman for Koha 2.9.

But this solution will also work well with Koha 3.


-- 
Vimal Kumar V.
Asst. Librarian
Asian School of Business
Technopark, Trivandrum-695 581
Web: www.vimalkumar.co.nr
Blog: http://vimalkumar.oksociety.in

OK Society Volunteer. http://oksociety.in
---------------------------------------------------------------------------
"I forget what I was taught. I only remember what I have learnt"
-Patrick White
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20090523/3f13e927/attachment.htm 


More information about the Koha mailing list