pulibrary / bibdata

Local API for retrieving bibliographic and other useful data from Alma (Ruby 3.2.0, Rails 7.1.3.4)
BSD 2-Clause "Simplified" License
16 stars 7 forks source link

Add discrete fields for new Change The Subject Headings #1688

Open christinach opened 2 years ago

christinach commented 2 years ago

lc_subjects are the LC subject headings found in the record. lc_subject_display is the filtered list of LC subject headings. local_subjects is the new subjects. subject_display is lc_subject_display and local_subjects

work in progress branch https://github.com/pulibrary/bibdata/commit/61e387715c5ffeddb8bf54a2ffdc781d77a24888

We will also have to change the Orangelight fields in the codebase to look subject_display and not lc_subject_display

christinach commented 2 years ago

For the existing fields lc_subject_display, subject_unstem_search, subject_topic_facet :

In production: lc_subject_display: [ "Refugees—Drama", "Africans—Europe—Drama", "Undocumented immigrants—Europe—Drama", "Africa—Emigration and immigration—Drama" ],

Proposed: lc_subject_display: [ "Refugees—Drama", "Africans—Europe—Drama", "Africa—Emigration and immigration—Drama"]


In production: "subject_unstem_search": [ "Refugees—Drama", "Africans—Europe—Drama", "Illegal aliens—Europe—Drama", "Africa—Emigration and immigration—Drama", "Undocumented immigrants—Europe—Drama" ],

Proposed: subject_unstem_search: lc_subjects + local_subjects subject_unstem_search: [ "Refugees—Drama", "Africans—Europe—Drama", "Illegal aliens—Europe—Drama", "Africa—Emigration and immigration—Drama", "Undocumented immigrants—Europe—Drama" ]


In production: "subject_topic_facet": [ "Refugees", "Africans", "Europe", "Undocumented immigrants", "Africa", "Emigration and immigration" ],

Proposed "subject_topic_facet": [ "Refugees", "Africans", "Europe", "Undocumented immigrants", "Africa", "Emigration and immigration" ]

We can discuss this further in our meeting; if we want to close this issue in this workcycle, we will follow @mzelesky's proposal but we will call it 'lc_subject_display_new'. When we decide to run a full reindex:

  1. we create the new catalog index collection;
  2. we swap the index;
  3. we have an orangelight PR ready to look for 'subject_display' instead of 'lc_subject_display' for 'Subjects' in the record page. (open a new issue for 3. when we decide how to proceed with this issue )
christinach commented 2 years ago

working branch: https://github.com/pulibrary/bibdata/tree/1688-discrete-fields