From: Demian K. <dem...@vi...> - 2012-03-08 14:56:26
|
The record driver contains a getThumbnail method, so you can define a custom way of obtaining a thumbnail for any record. At Villanova, we use this technique for items in our digital library: https://library.villanova.edu/Find/Search/Results?lookfor=&type=AllFields&filter[]=collection%3A%22Digital+Library%22&view=list<https://library.villanova.edu/Find/Search/Results?lookfor=&type=AllFields&filter%5b%5d=collection%3A%22Digital+Library%22&view=list> To summarize: 1.) At index time, populate the recordtype field of the index with a string identifying the record source (we use "vudl" since our digital library is VuDL). You may also want to store thumbnail information in the index somewhere - there is a single thumbnail field you could use, though if you have different sizes, you'll have to either use the new dynamic field technique introduced in VuFind 1.3, or you can stuff data into the fullrecord field (which is how the VuDL driver currently works). 2.) Create a custom record driver class named to match your recordtype value - ours is web/RecordDrivers/VudlRecord.php - and define a getThumbnail() method. You can see the VuDL driver code here: https://vufind.svn.sourceforge.net/svnroot/vufind/trunk/web/RecordDrivers/VudlRecord.php - Demian From: Hugo Agud [mailto:ha...@or...] Sent: Thursday, March 08, 2012 9:33 AM To: vuf...@li... Subject: [VuFind-General] using thumbnails from Dspace or other sources Dear all Checking some code in Vufind and some files it raised one doubt.... If we are harvesting a file from a repository that have thumbnail, it is possible to put into vufind like it does with the covers...? reviewing the code and some files.. I thnink perhaps it is possible.... but I am not pretty sure... Anybody is using the thumbnail in the repository inside of Vufind? Kindest Regards hugo -- Hugo Agud - Orex Digital www.orex.es<http://www.orex.es> Director Avenida Sarriá 29 · 08029 Barcelona [http://www.orex.es/images/website/templateImages/originals/Logotwitter.jpg] <http://twitter.com/OrexDigital> [http://orex.gmt.brightpearl.com/images/website/templateImages/originals/skype.jpg] [http://orex.gmt.brightpearl.com/images/website/templateImages/originals/miniblogspot.jpg] :<http://orexsl.blogspot.com> hugoaguda - Tel: 93 539 40 70 Fax: 93 539 33 30 ha...@or...<mailto:ha...@or...> · http://www.orex.es/ No imprima este mensaje a no ser que sea necesario. Una tonelada de papel implica la tala de 15 árboles y el consumo de 250.000 litros de agua. Aviso de confidencialidad Este mensaje contiene información que puede ser CONFIDENCIAL y/o de USO RESTRINGIDO. Si usted no es el receptor deseado del mensaje (ni está autorizado a recibirlo por el remitente), no está autorizado a copiar, reenviar o divulgar el mensaje o su contenido. Si ha recibido este mensaje por error, por favor, notifíquenoslo inmediatamente y bórrelo de su sistema. |