sul-dlss / cocina-models

Cocina repository data model (implemented in Ruby)
https://sul-dlss.github.io/cocina-models/
3 stars 0 forks source link

methods to get "full title" and "additional titles" #655

Closed ndushay closed 11 months ago

ndushay commented 11 months ago

part of sul-dlss/dor_indexing_app/issues/1075 and sul-dlss/dor_indexing_app/issues/1044

We want to be able to boost relevancy in Argo distinguishing between matches on "main title", on "full title" (main title + subtitle and such), and on additional titles.

Since the cocina gem already has a "TitleBuilder" with a lot of the logic present, it is easiest to add the new methods to this gem, rather than duplicate the logic elsewhere. Also, it makes it available for other potential consumers.

ndushay commented 11 months ago

Closing this, but there will be tweaks as an outgrowth of #657