Hi everyone,
I’m trying to write a plugin that will override the default date display setting in search results – right now, it defaults to the Date Expression, even if Begin and End dates are present. I would like it to default to Begin Date – End Date, since our use of Date Expression is limited to describing bulk dates and we rely much more on the Begin and End dates for browsing/searching.
Does anyone know where this default behavior is defined? I can see that the template frontend/app/views/dates/_show.html.erb has some conditional logic that displays the Date Expression if it exists, but this seems to only apply to the Date section in a record view, rather than the search results.
Any pointers would be greatly appreciated!
Thanks,
Hannah
--
Hannah Wang
Deputy Archivist for Digital Archives | U.S. Senate Historical Office
201 Hart Senate Office Building | (202) 224-3351