Bug 27073

Summary: refactor cover image to get image(s) (url) from api call/template include
Product: Koha Reporter: Mark Hofstetter <koha>
Component: OPACAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Mark Hofstetter 2020-11-20 20:48:00 UTC
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