http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9991
Bug ID: 9991
Summary: De-duplicate "no cover image available" (currently in
lieu of prioritizing cover image sources)
Classification: Unclassified
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Templates
Assignee: [email protected]
Reporter: [email protected]
Currently, when you have the system preferences for multiple cover image
sources turned on, it's possible to have multiple "No Cover Image Available"
graphics appearing in the OPAC for any 1 record.
I think it would make more sense to just have 1 "No Cover Image Available" if
there are actually no cover images available. Plus, if there is at least 1
cover image available, there should be 0 "No Cover Image Available" graphics
appearing for that record.
One idea (purely JScript-based):
1) Add a class to each cover art span (or possibly use the existing thumbnail
class for the img)
2) Then use a JScript function to loop through each record's a.p1 element
(which seems to be unique...although we could always add a cover art class to
it as well).
3) If span.cover_art (or img.thumbnail) exists, remove all span.no-image
elements within that a.p1 element.
4) If span.cover_art (or img.thumbnail) does not exist AND count(span.no-image)
> 1, remove every span.no-image after the first instance within that a.p1
element.
I don't think we could do it solely with Perl or TT, because the existence of
cover art is going to vary depending on several other JScript functions which
run independently of each other.
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
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/