is that book checked out
play

Is That Book Checked Out? Getting Holdings and Availability Data - PowerPoint PPT Presentation

Is That Book Checked Out? Getting Holdings and Availability Data into Other Applications Jane Sandberg Linn-Benton Community College April 21, 2016 1 / 14 Background Creating a new Discovery Layer Using Blacklight, because its cool!


  1. Is That Book Checked Out? Getting Holdings and Availability Data into Other Applications Jane Sandberg Linn-Benton Community College April 21, 2016 1 / 14

  2. Background � Creating a new Discovery Layer � Using Blacklight, because it’s cool! � Wanted real-time holdings data, but did not want to query the db directly. 2 / 14

  3. I had already met SuperCat � Our consortium’s sysadmin pointed me toward some documentation on the wiki � I used it to create a cute display of our new books 3 / 14

  4. SuperCat is nice! 4 / 14

  5. SuperCat is nice! Format was nice! I could easily parse the XML with nokogiri’s xpath powers – Blacklight already had this as a dependency! 4 / 14

  6. SuperCat is nice! Format was nice! I could easily parse the XML with nokogiri’s xpath powers – Blacklight already had this as a dependency! Credentials required None! 4 / 14

  7. SuperCat is nice! Format was nice! I could easily parse the XML with nokogiri’s xpath powers – Blacklight already had this as a dependency! Credentials required None! Capabilities are clear Easy to get to list of possible formats. 4 / 14

  8. How to use SuperCat Format http://example.com/opac/extras/supercat/ { COMMAND } / { FORMAT } / { Specific information needed by your COMMAND } 5 / 14

  9. How to use SuperCat Format http://example.com/opac/extras/supercat/ { COMMAND } / { FORMAT } / { Specific information needed by your COMMAND } Example SuperCat query http://libcat.linnbenton.edu/opac/extras/supercat/retrieve/atom- full/record/514477 5 / 14

  10. Results of Supercat query [ snip ] < counts > < count type=”p u b l i c ” count=”1” a v a i l a b l e =”1” unshad < count type=” s t a f f ” count=”1” a v a i l a b l e =”1” unshado < /counts > < volumes > < volume id=”tag : open − i l s . org : asset − call number /6433 < copies > < copy id=”tag : open − i l s . org : asset − copy /442300” < s t a t u s i d e n t =”0” o p a c v i s i b l e =”t” > Available < < l o c a t i o n i d e n t =”223” o p a c v i s i b l e =”t” > New bo < c i r c l i b i d e n t =”7” o p a c v i s i b l e =”t” > LBCC Libr [ snip ] 6 / 14

  11. Supercat isn’t perfect � The atom-full format had everything I needed, but it also returns a bunch of other (bibliographic) data that we don’t really need. � htmlholdings-full format didn’t have any helpful markup. Also wasn’t totally interested in dropping results in as an HTML list. � Staff suggestion: display due datetime when item checked out 7 / 14

  12. OpenSearch Credit: Alan David Robb / CC0 8 / 14

  13. OpenSearch Format was also nice! In fact, it had the same format options as supercat... Credit: Alan David Robb / CC0 8 / 14

  14. OpenSearch Format was also nice! In fact, it had the same format options as supercat... Credentials required None! Credit: Alan David Robb / CC0 8 / 14

  15. OpenSearch Format was also nice! In fact, it had the same format options as supercat... Credentials required None! Capabilities are clear Credit: Alan David Robb / CC0 Because they are the same as supercat... 8 / 14

  16. UnAPI Credit: Public Domain Image 9 / 14

  17. UnAPI Format was almost ideal! holdings xml-full! Credit: Public Domain Image 9 / 14

  18. UnAPI Format was almost ideal! holdings xml-full! Credentials required None! Credit: Public Domain Image 9 / 14

  19. UnAPI Format was almost ideal! holdings xml-full! Credentials required None! Capabilities are not clear Unless you read through Open-ILS/src/perlmods /lib/OpenILS/WWW /SuperCat.pm Credit: Public Domain Image 9 / 14

  20. UnAPI � URLs look like this: https://libcat.linnbenton.edu/opac/extras/unapi? id=tag:U2@bre:biblio record entry/280157& format=holdings xml-full � Still don’t have due dates in there. 10 / 14

  21. JSON from opensrf web gateway Credit: Joaquim Alves Gaspar / CC-BY-SA-3.0 11 / 14

  22. JSON from opensrf web gateway Format is kinda scary But very compact! Credit: Joaquim Alves Gaspar / CC-BY-SA-3.0 11 / 14

  23. JSON from opensrf web gateway Format is kinda scary But very compact! Credentials required Authentication token Credit: Joaquim Alves Gaspar / CC-BY-SA-3.0 11 / 14

  24. JSON from opensrf web gateway Format is kinda scary But very compact! Credentials required Authentication token Capabilities are pretty much unlimited Credit: Joaquim Alves Gaspar / As long as Evergreen can CC-BY-SA-3.0 do it, I can do it too. 11 / 14

  25. JSON from opensrf web gateway http://libcat.linnbenton.edu/gateway? service=open-ils.cat& method=open-ils.cat.asset.copy tree.retrieve& param=[AUTH TOKEN]& param=294385&param=7 12 / 14

  26. Getting an auth token How to get here: Admin → For developers → Javascript Shell 13 / 14

  27. Results of opensrf query { ” payload ”:[[/ ∗ − − S acn −−∗ /[[],”2012 − 11 − 13T15 :50: 08 − 0800” ,756052 ,” f ”,”2012 − 11 − 13T15:50:08 − 0800” , 756052 ,275533 ,”M1507 . O5555 2003 bx ” ,7 ,294385 , null , null , null ,” M1507 O5555 02003BX”,/ ∗−− S acnc −−∗ /[3, ” L i b r a r y of Congress (LC)” ,” a s s e t . l a b e l n o r m a l i z e r l c ” , ”050ab ,055 ab ,090 abef ”] / ∗−− E acnc −−∗ /,/ ∗−− S acnp − −∗ /[ − 1 ,”” ,”” ,1] / ∗−− E acnp −−∗ /,/ ∗−− S acns − −∗ /[ − 1 ,”” ,”” ,1] / ∗−− E acns −−∗ /]/ ∗−− E acn −−∗ /,/ ∗−− S acn −−∗ /[[ / ∗−− S acp −−∗ /[ null , null ,”38813001133703” ,358160 , null ,7 ,”DEFAULT” ,” t ” , null , ”2012 − 11 − 13T15:51:31 − 0800” , [ snip ] 14 / 14

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend