gwu-libraries / launchpad

A django based system that provides a stable URL for every item in the library's catalog. Various discovery services will link to these URLs. The page for each item will in turn link out to various other resources that provide methods for accessing the content of the items.
MIT License
15 stars 9 forks source link

Online checkbox is excluding full text items #1219

Closed lwrubel closed 6 years ago

lwrubel commented 6 years ago

As reported by Debbie Bezanson, when you click on the "Online Resources" checkbox at the top of search results, too few results are left.

For example: bioinformatics: 9,010 titles bioinformatics limited to Shared E-Resources Collection: 2,085 titles bioinformatics limited to Shared E-Resources Collection limited to Online Resources Checkbox at top: 118 titles

Another example: studies in frankness When you click on the "Online Resources" checkbox, the HathiTrust result goes away when it should stay.

This seems to have to do with the way the "Online Resources" checkbox is changing the search parameters. In views.py, it adds to the query string ("q"):

    lccallnum:('gw electronic' OR 'shared+electronic'" + \
            " OR 'e-resources' OR 'e-govpub' OR 'streaming'" + \
            " OR 'hathitrust')"