From: Demian K. <dem...@vi...> - 2012-03-29 13:13:13
|
How do you obtain the URLs from the Image Server? Fortunately, VuFind makes it pretty easy to change where thumbnails come from. Image links are generated by getThumbnail method of the record driver (i.e. web/RecordDrivers/IndexRecord.php). By default, thumbnails are built by passing an ISBN to the bookcover.php module, which then uses the image services configured in config.ini to retrieve and proxy a thumbnail. If you need to get thumbnails from a different source, you have two options: 1.) Modify getThumbnail to generate a direct link to the image URL. 2.) Modify getThumbnail to pass extra parameters to bookcover.php, then modify bookcover.php to load images from a different source. This is the more complicated, and probably less desirable, solution - but sometimes it is necessary (for example, if you are trying to avoid cross-domain security warnings in certain browsers and need to proxy images). If all of the records in your system are coming from Voyager, you can simply edit the getThumbnail method in IndexRecord.php and be done with it. If only some records are coming from Voyager, you will want to create a custom record driver to deal with just those records. This technique has been discussed in some detail recently on the mailing lists, but if you need specific guidance, let me know and I'll be happy to point you in the right direction. - Demian From: Zoe Friedlander [mailto:zfr...@os...] Sent: Wednesday, March 28, 2012 8:07 PM To: 'vuf...@li...' Subject: [VuFind-General] displaying thumbnails that come from Image Server (from Voyager/Ex Libris) Hi, in our Voyager catalog we use the Voyager add-on product called Image Server, to display thumbnail images of posters on the Voyager report page (we photograph the posters in-house and produce the images), and also larger images on the record display page. Is anyone else doing that too, and have you been able to get those thumbnails and images to display in your VuFind catalog? Pointers welcome. Thanks! Zoe Friedlander * Systems Librarian * Margaret Herrick Library ------------------------------------------------------------------------------------------ Academy of Motion Picture Arts and Sciences * Tel 310-247-3036 x2239 * Fax 310-657-5193 * www.oscars.org<http://www.oscars.org/> * zfriedlander @oscars.org |