Details
Description
Allow users to toggle the result display between list/grid/gallery. See examples:
- Blacklight@Stanford: http://searchworks.stanford.edu/?q=joyce&search_field=search&view=gallery
- Library of Congress Prints & Photos Catalogue: http://www.loc.gov/pictures/search/?q=ireland&st=grid
- Europeana: http://www.europeana.eu/portal/brief-doc.html?query=ireland&start=1&view=table
- Villanova Digital Library: http://digital.library.villanova.edu/Catholica%20Collection/?view=grid&page=1
Most of these examples are more or less exclusively for digital/visual collections, but Blacklight handles this well by creating dummy covers for books without covers. A simpler alternative would be to only present the grid/gallery option when certain format facets are applied. This feature would make VuFind more attractive for people seeking to integrate ILS bibliographic records with their digital repository/IR.
- Blacklight@Stanford: http://searchworks.stanford.edu/?q=joyce&search_field=search&view=gallery
- Library of Congress Prints & Photos Catalogue: http://www.loc.gov/pictures/search/?q=ireland&st=grid
- Europeana: http://www.europeana.eu/portal/brief-doc.html?query=ireland&start=1&view=table
- Villanova Digital Library: http://digital.library.villanova.edu/Catholica%20Collection/?view=grid&page=1
Most of these examples are more or less exclusively for digital/visual collections, but Blacklight handles this well by creating dummy covers for books without covers. A simpler alternative would be to only present the grid/gallery option when certain format facets are applied. This feature would make VuFind more attractive for people seeking to integrate ILS bibliographic records with their digital repository/IR.
Possible areas for further work/discusssion:
- make this a configurable option (this should be straight-forward enough)
- refactor *.tpls - this patch relies on smarty {if}s in Search/list-list.tpl and RecordDrivesr/Index/result.tpl to decide which layout to load. An alternative might be to load different tpls depending on the view, i.e. list-gird.tpl and result-grid.tpl. This would probably make it easier to add other views, but would result in some duplication of code between the tpls.
- Dummy bookcovers (like Blacklight) for items that have an ISBN but don't return a cover. There are options here - javascript onload event; use php imagecreate() in bookcover.php (adding a dependency) - but I can't think of any easy way to do this without reworking how bookcover.php is used currently.
Feedback appreciated.