it seems for me that there is (template) code duplication to show cover images. see grep -rl OPACAmazonCoverImages includes/shelfbrowser.inc includes/opac-bottom.inc modules/opac-user.tt modules/opac-opensearch.tt modules/opac-results-grouped.tt modules/opac-readingrecord.tt modules/opac-detail.tt modules/opac-shelves.tt modules/opac-showreviews-rss.tt modules/opac-showreviews.tt modules/opac-results.tt I'm not sure if this is autogenerated? maybe this duplicate code should be wrapped in an api call, with more logic implemented than in the rather crude template if-statments