Comment 0 for bug 1420509

Revision history for this message
Blake GH (bmagic) wrote :

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