ObjectiveSubject / ccl

1 stars 0 forks source link

Archive for databases #72

Closed kpettinga closed 6 years ago

kpettinga commented 6 years ago

@gabrielo-cuc you can see this working at https://libraryweb.wpengine.com/database-directory/

Note: Right now you don't have any subjects assigned to databases so clicking those links wont show you any databases.

gabriel-ortiz commented 6 years ago

Nice work @kpettinga it's looking Sharp. So is there a way to assign subjects to databases on import? Or else, would subjects be assigned manually? I'll have to verify that subjects have been assigned in spring share too. Thank you!

kpettinga commented 6 years ago

@gabrielo-cuc right now it doesnt appear that any kind of subject is available in the raw data for each database. So they'll need to be assigned manually. If there's a way for you to assign subjects in spring share, then we can probably have subject be auto-assigned to databases on import. But right now there's no data for that kind of thing.

gabriel-ortiz commented 6 years ago

@kpettinga Oh i see now -- ok so it looks like we can expand the API route to include subjects by appending expand=subjects to the API request. But then the next step would be to assign the subject to the existing taxonomy.

kpettinga commented 6 years ago

hey @gabrielo-cuc thanks for that. I added expand=subjects to the API request and put in some logic to assign subject terms to databases. If you re-run the import for databases they should get assigned their respective subjects.

Feel free to close this out unless you have anything else.

gabriel-ortiz commented 6 years ago

@kpettinga "Databases by Title" doesn't seem to be working, is it working on your end? I've re-runned the import and published all databases, and when I click on specific letters, there are no databases returned. And there are definitely some within that alphabetical group. For example there should be a few databases in http://libraryweb.wpengine.com/databases/?begins_with=B Could this be a caching thing? I could try redoing the import.