Grouped metabib results shows format icons that are not included

Bug #1420509 reported by Blake GH
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Medium
Blake GH

Bug Description

An example search:

http://missourievergreen.org/eg/opac/results?detail_record_view=1&query=Where+she+went&qtype=keyword&fi%3Asearch_format=&locg=174&modifier=metabib

The first result

"Where she went [Overdrive downloadable eBook] / Gayle Forman."

Shows: "Book" and "E-Audio" icons. It also has the quick link for the electronic resource. The Anchor tag is this:
http://missourievergreen.org/eg/opac/record/87396?detail_record_view=1;query=Where%20she%20went;qtype=keyword;locg=174;modifier=metabib

What happened to the book and the e-audio book? Weird?

 select * from metabib.metarecord where id= 308589
results:
308589;"whereshewentforman";87396;""

select source from metabib.metarecord_source_map where metarecord=308589
results:
1362008
1353047
1350326
1348119
160519
87396
510226
1130802
1142860
1300887

select mraf.id,value,bre.deleted from metabib.record_attr_flat mraf, biblio.record_entry bre where attr='icon_format'
and mraf.id in
(
select source from metabib.metarecord_source_map where metarecord=308589
)
and bre.id=mraf.id

results:
1350326;"book";f
510226;"ebook";f
1142860;"eaudio";f
1362008;"cdaudiobook";f
1353047;"book";f
87396;"ebook";f
1300887;"book";f

Presumably, the OPAC results page included bib 1142860 and 1353047. But the link didn't show us that. It showed us the "master_bib" of 87396

The server side code must be populating the search results wrong in some cases. All of the cases seem to involve electronic records. This might be related to this bug:
https://bugs.launchpad.net/evergreen/+bug/1403907

It only seems to crop up when you narrow your scope to individual system/libraries.

Blake GH (bmagic)
description: updated
Blake GH (bmagic)
tags: added: metarecords
tags: added: searching
Kathy Lussier (klussier)
Changed in evergreen:
importance: Undecided → Medium
Blake GH (bmagic)
Changed in evergreen:
assignee: nobody → Blake GH (blake-j)
Changed in evergreen:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers