UMNLibraries/umedia

Metadata Display - two issues on current UMedia

Opened this issue · 3 comments

Issue one: Display for Publisher field needs to support multiple values. (Inputting into CDM as ; [space] like the rest of our multi-value fields).
Example: The facet box (?) in the browse view is displaying 2 subjects as one string.
Screenshot 2024-08-16 at 10 28 06 AM

Issue two: Display of dashes within subjects is inconsistent. I'd like to have single dashes display and not be stripped out. So, same collection as issue one (Little Sandy Review), the value input into CDM was Music - Minnesota. But it is displaying as Music Minnesota in both the item-level view and the subject facet in the browse view.

Publisher is to be indexed as multivalued in cf9f31bd42afc3bcb51be2d6548ed85bc0bac0d7 . Will need to deploy and reindex to see changes at a later date.

(change actually made on umedia_solr_conf UMNLibraries/umedia_solr_conf@cf9f31b

CDMDEXER Titleize SplitFormatter, StripFormatter, SubjectFormatter are invoked.

Pretty sure that Titleize is invoking Rails .titleize directly, and according to the "x-men" example here, it strips out hyphens. https://apidock.com/rails/v6.0.0/String/titleize

https://github.com/rails/rails/blob/main/activesupport/lib/active_support/inflector/methods.rb#L179-L196

Wow I don't like that implementation! Not good for library metadata. @theberg75 this will have to go into a wider survey since it is possibly affecting other fields that use the Titleize filter.