cul-it / uls

Unified Library Site Development
1 stars 2 forks source link

ULS UNITS PSL - Get cover image for Classic books. #80

Closed manolobevia closed 5 years ago

manolobevia commented 5 years ago
manolobevia commented 5 years ago

Probably, I will be using cheerio.js. Review: https://medium.com/data-scraper-tips-tricks/scraping-data-with-javascript-in-3-minutes-8a7cf8275b31.

Mark record for ISBN: 020

manolobevia commented 5 years ago

Not using cheerio.js since we are not using ES6.

manolobevia commented 5 years ago

@tap87 I am passing this issue to you. PSL is providing a list of books with the BIBID. We need the ISBN number to get the covers from google books API. There is no API from the library catalogue.

Frances pass me this info:

For the OPAC, we get the ISBN from the full catalog record, though I think we actually use the OCLC numbers to retrieve book covers from Google because it's more consistently populated in the records. There should be several ways to get these identifiers. I think there's probably a database table that has these identifiers already extracted from the full record so you can query for them more directly, and assuming it's still up there should be a web-based url you can hit to retrieve the bibliographic marc in xml format and then find the identifiers in the records yourself. (edited) http://yazproxy.library.cornell.edu:9000/voyager?query=rec.id%3D3589320&startRecord=1&maximumRecords=1&recordSchema=opacxml&version=1.1&operation=searchRetrieve

That includes the argument rec.id=3589320, and that's where you swap your own bib id's.

The ISBN number is in the field 020, and the OCLC identifier is in the field 035 where the value is prefixed with (OCoLC). (edited) I'm not sure about the firewall. That'll take some experimentation. I can access it without the VPN from an ethernet connection in room 218, but I'm not sure about the wireless network or from off campus.

manolobevia commented 5 years ago

Closing this issue since the images have been provided by the client.