Comment 1 for bug 1553271

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.