006 in book format record triggers incorrect icon

Bug #1553271 reported by Elaine Hardy
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Evergreen
New
Undecided
Unassigned

Bug Description

If a book format bibliographic record correctly has a 006 and 007 to describe an accompanying CD, the icon displayed in the OPAC record is for e-book icon rather than for a print book and the correct format icon for the accompanying material. An example is http://gapines.org/eg/opac/record/5729659?contains=contains;_special=1;qtype=identifier|tcn;query=ocn903215160;locg=1

In this case, the icons should be for the print book and for a music CD, or just the print book icon, if having both isn’t an option. I think the presence of the 006 is triggering the incorrect icon – if I delete it and leave the 007, the icon for print book displays

Revision history for this message
Terran McCanna (tmccanna) wrote :

I looked at behavior of this on Master, and as far as I can tell, I think it is a bug with how the format attributes are recorded in the database when the marc record is saved. When it saves, it should be creating an array of hashes (in this case, one hash for the book and one hash for the cd), but it looks like it is only creating a single hash and incorrectly creating it as an ebook. Each hash should include values for label, icon, and itemtype, and this particular one is just saving:

label is E-book
icon is /images/format_icons/icon_format/ebook.png
itemtype is Book

The script that is looking at the format attributes (on template/opac/parts/record/summary.tt2) is written to loop through all of the formats and display them all, but since it has only saved one, it is only displaying one.

tags: added: opac
Revision history for this message
Elaine Hardy (ehardy) wrote :

We are still seeing this in 3.2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.