Teach TPAC to show jacket images by Record ID collab/bshum/added-content-by-id
authorJeff Godin <jgodin@tadl.org>
Wed, 25 Jul 2012 18:02:00 +0000 (14:02 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 28 Feb 2013 04:30:19 +0000 (23:30 -0500)
commit2b199771ee27379c8c28127756c7b3373a45be70
treec00ff1a21c106fb3fcefd7fca6cda683fe2e116c
parent1547e6fc90585de45c29d61d89f27f8d6d16358d
Teach TPAC to show jacket images by Record ID

Retrieve AC jackets by record ID in TPAC and include jacket image
even if we lack an ISBN/UPC.

Conditional output of the jacket image <img> tag breaks local added
content overrides by record ID. Make the inclusion of the jacket
image unconditional.

Use an onerror handler to hide broken jacket images for those cases
where we receive a 404 instead of a 1x1 placeholder.

Signed-off-by: Jeff Godin <jgodin@tadl.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2