culibraries / library-reporting

Anything to do with library reporting, mostly but not limited to FOLIO.
0 stars 0 forks source link

Film Expiration Search #51

Open arthur-aguilera opened 2 years ago

arthur-aguilera commented 2 years ago

Swank Expiration Dates: BIBLIOGRAPHIC MARC Tag 001 starts with "swv" AND BIBLIOGRAPHIC MARC Tag 506 ends with (exact) "4/30/2022"

Kanopy Expiration Dates: BIBLIOGRAPHIC MARC Tag 001 starts with (exact) "kan" AND BIBLIOGRAPHIC MARC Tag 001 All Fields don't have "kano" AND BIBLIOGRAPHIC BCODE3 equal to "z" AND BIBLIOGRAPHIC MARC Tag 956 has "kanopy" AND BIBLIOGRAPHIC MARC Tag 506 has "expires: 5/" AND BIBLIOGRAPHIC MARC Tag 506 ends with "2022"

Within Inventory App, you can search all records beginning with swv by searching "swv*" in the HRID field. Still exploring how to limit this by the 506 field.

LDP App - MARC searching is supporting through the LDP App but the search strings have to be exact. You can't (so far) search a field that starts or contains a string.

image

steveellis commented 2 years ago

See #55.

steveellis commented 2 years ago

@arthur-aguilera would be great if you could add a sentence or two about the report description and maybe name.

steveellis commented 2 years ago

What 506 is: https://www.loc.gov/marc/bibliographic/concise/bd506.html

arthur-aguilera commented 2 years ago

Changed title "Film Expiration Search" and will add #50 to this and close out that ticket.

steveellis commented 2 years ago

https://github.com/culibraries/folio/issues/264

steveellis commented 2 years ago

We identified a few places where notes fields (500) are available in FOLIO. Here's a screenshot for example:

image

Also 506 is being included in our data migration:

blocke1 commented 1 year ago

@arthur-aguilera I have been trying to work on this but am doing something wrong. I can get both parts of these to work individually but not together:

select instance_id from folio_source_record.marc__t as marc where (marc.field = '035' and marc.sf = 'a' and marc.content like '%kan%') intersect (select instance_id from folio_source_record.marc__t as marc2 where (marc2.field = '506' and marc2.sf = 'b' and marc2.content like '%expires%'))