SearchWorks icon indicating copy to clipboard operation
SearchWorks copied to clipboard

Not retrieving pieces information (for "latest" display) when record is attached to an order line in a package

Open saseestone opened this issue 1 year ago • 5 comments

Reported by Serials staff. In the SearchWorks "At the Library" section we're not displaying the "Latest..." statement for some Serials. When staff view the record in FOLIO, there are pieces associated with the order, but when staff look in SearchWorks => Librarian view => FOLIO JSON the pieces section is null.

Example record in SearchWorks: https://searchworks.stanford.edu/view/491281. If you look at the Librarian View FOLIO JSON, you'll see pieces = null. image

In FOLIO, the receiving history looks like this: image

Notice that this title is one of two titles in a package. You can see the two titles in the middle column above. (Under "Actions"). Could something about the fact that this title is associated with a package mean that we're not getting the pieces?

Here is the SearchWorks record for the other title in that package: https://searchworks.stanford.edu/view/14181385)

Irina in Acq can provide more examples of titles in packages if needed.

saseestone avatar Jan 19 '24 00:01 saseestone

JIRA ticket for original report: https://jirasul.stanford.edu/jira/browse/SW-4265?filter=13813

saseestone avatar Jan 19 '24 00:01 saseestone

New info from Irina: this is a new process that started AFTER migration. So we didn't have any examples like this in folio-test before migration and it's not migrated data.

saseestone avatar Jan 19 '24 00:01 saseestone

This is also a problem in Traject::FolioPostgresReader. I am not sure how data is being pulled in via Searchworks but based on the traject indexer this field was never really set from what I can tell. The query is just searching for a field in the db called pieces: https://github.com/sul-dlss/searchworks_traject_indexer/blob/e0491c887170813888862756b2aa291304fc728c/lib/traject/readers/folio_postgres_reader.rb#L374.

dnoneill avatar Jan 23 '24 19:01 dnoneill

Other examples provided by Camelia Naranch in Acquisitions:

  • a399917 link | POL# 910103F06-1 | Virginia magazine of history and biography |SAL3 https://searchworks.stanford.edu/view/399917

  • a469834 link | POL# 941723F06-1 | The Tracker | MUS https://searchworks.stanford.edu/view/469834

  • a14181385 link | Weltwoche Grün comes with a491281 Weltwoche | both CPR/SAL3 https://searchworks.stanford.edu/view/14181385

saseestone avatar Mar 13 '25 03:03 saseestone