samvera / questioning_authority

Question your authorities
Other
54 stars 30 forks source link

Getty aat parse error when trying to find an id #206

Closed elrayle closed 5 years ago

elrayle commented 5 years ago

Attempting to access: http://localhost:3000/qa/show/getty/aat/300264917 produces a parse error...

image

This is because the generated URL http://vocab.getty.edu/aat/300264917.json returns an empty body with a 303 return code. The recommended URL in the result is...

"http://vocab.getty.edu/download/json?uri=http://vocab.getty.edu/aat/300264917.json"

I tried updating lib/qa/authorities/getty/aat.rb#find_url(id) to use the recommended URL and it works.

Need to update aat.rb, and probably tgn.rb and ulan.rb as well.