http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7709
Priority: P5 - low Change sponsored?: --- Bug ID: 7709 Assignee: oleon...@myacpl.org Summary: Cover Images Template plugin QA Contact: koha.sek...@gmail.com Severity: enhancement Classification: Unclassified OS: All Reporter: koha.sek...@gmail.com Hardware: All Status: NEW Version: master Component: Templates Product: Koha As we add more and more sources for cover images, and use them in more and more places, it becomes increasingly difficult to keep the code synchronized. I propose we move the logic of picking and displaying a cover image out of the templates and into a T:T Plugin. Usage would be like: [% biblionumber | KohaCoverImage %] I say biblionumber instead of normalised_isbn (which is common for most all external services) because it will also work for local cover images. This does add the overhead of having to look up the normalized ISBN again, even if we already had it on the page. Anyone more familiar with passing variables (particularly hashes) to T:T plugins, would be welcome to step up here. This would simplify out templates by several dozen lines of code, and provide a uniform logic for selection. New selection methods, as well as new sources, would be easy to add, since they'd only need to be coded in one place. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/