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

Inactive electronic portfolios are indexed #1689

Closed christinach closed 3 years ago

christinach commented 3 years ago

Inactive electronic portfolios should not be indexed

christinach commented 3 years ago

Per @mzelesky: e-resources will have to deactivate portfolios if they deactivate the associate services. Then our code will work.

christinach commented 3 years ago

Following issue https://github.com/pulibrary/bibdata/issues/1662 I reviewed mmsid:99125340401906421 and found that: "Regarding the electronic portfolios we are checking for 951$a to see if it is active. However when I export id: 99125340401906421. Both 951 fields have $a = ‘Available’.

The only other subfield that has information is 951$j , COLLECTION TEMPORARILY DEACTIVATED AT THE SERVICE LEVEL, 9/20/21. Journal links are leading to a login box. Reported to ExLibris support. // We do not have access to the medical journals, which are included in this target; deactivated those --nb, 1/18"

I looked with @mzelesky and this is part of a larger issue with the electronic portfolios. Portfolios that are set as inactive they still have the service available (951$a). One solution is the esupport to update all the inactive portfolios with an inactive service. Another solution would be to look if the https://developers.exlibrisgroup.com/alma/integrations/sru/ could give us better results. For now as long as 'inactive portfolios' in Alma continue to have an 'available' service they will appear in the record page in the catalog.

hectorcorrea commented 3 years ago

This the SRU call for this record:

https://princeton.alma.exlibrisgroup.com/view/sru/01PRI_INST?version=1.2&operation=searchRetrieve&recordSchema=marcxml&query=alma.mms_id=99125340401906421

It looks like the response for the AVE fields does not give us more information than what we get with the API. Below is snippet of the response:

<datafield ind1=" " ind2=" " tag="AVE">
  <subfield code="8">53804819680006421</subfield>
  <subfield code="c">61753495350006421</subfield>
  <subfield code="e">Available</subfield>
  <subfield code="m">China Academic Journals</subfield>
  <subfield code="s">Available from 1999 until 2019.</subfield>
  <subfield code="t">East View</subfield>
</datafield>
  <datafield ind1=" " ind2=" " tag="AVE">
  <subfield code="8">53804819690006421</subfield>
  <subfield code="c">61753484190006421</subfield>
  <subfield code="e">Available</subfield>
  <subfield code="m">China Online Journals Wanfang Data</subfield>
  <subfield code="s">Available from 2002.</subfield>
  <subfield code="t">China Online Journals</subfield>
</datafield>
christinach commented 3 years ago

Thank you for testing the SRU @hectorcorrea

mzelesky commented 3 years ago

Yes, thank you @hectorcorrea. This will inform other work too.