The Biblio module has a field called Year of Publication. This field can contain either a year (1999) or a string ("Submitted", "In Press"). I don't quite understand the reason for this, as opposed to using two different fields, but the result is that if the field contains a string, the Year of Publication facet displays 9999 or 9998.

I think that Solr should check the contents of the field and either exclude the field from the document if it contains a string, or create a different field/facet to contain this data.

Thoughts?

CommentFileSizeAuthor
#2 apachesolr_biblio-821660.patch1.12 KBebeyrent

Comments

ebeyrent’s picture

Another option is to replace the facet link text with the configured label on display. This is configured in the Style fieldset in admin/settings/biblio.

ebeyrent’s picture

StatusFileSize
new1.12 KB

Here's a patch that rewrites the facet text on output by passing the year through the _biblio_text_year() function.