Comment 4 for bug 1629108

Revision history for this message
Kathy Lussier (klussier) wrote :

I've spent quite a bit of time testing this code, and Blake has addressed most issues through recent code changes.

We're left with one outstanding issue and would like broader feedback from the community on the best approach to take. When limiting by an attribute, a format limiter for example, the search results page now only displays metarecord results that contain a bib record with that limiter and also display a record count for those grouped records that match that limiter.

Overall, it's working very well.

The one area where numbers don't add up correctly is in the copy counts on the metarecrod result screen and then the list of copies available when you click Show More Details on the metarecord result page. The displayed copy counts are for copies attached to all records in the MR group, not just the ones that match the limiter.

For example, the screenshot at https://www.screencast.com/t/fXsShrvrU2, shows the metarecord search results page for a Harry Potter search, limited to the Large Print Format. There are two large print editions of Harry Potter and the Sorcerer's Stone with a total of 11 copies attached to those two records. However, the total displayed copy count is 28 because it includes the copies attached to other formats of this metarecord group.

From what I understand, there is nothing unapi.holdings_xml now that filters, probably because if the records that don't match the filter typically wouldn't display on the search results page. Any ideas on the best approach to get the copy counts accurate?