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

add wildcard for publication date searches #1149

Closed cummingsm closed 7 years ago

cummingsm commented 8 years ago

The Advanced Search page has a set of fields for specifying the publication date: "Year", Year "from"; Year "to". These fields accept integers. A search will fail if, for example, the 260 MARC tag subfield c includes a terminating dot character "c": "1560."

For example a search for the year 1560 and author:paynell fails to return results. Then edit the value in the search field to read author:paynell AND publicationdate:[1560.] and there are results (9609365 and 9596189). Alternatively using an asterisk instead of a dot works too.

Edit the form handling by appending an asterisk to the date field(s) if the user submitted a date.