Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
backend-devel:supercat:examples [2010/10/20 12:41] – rsoulliere | backend-devel:supercat:examples [2020/10/26 09:12] – [SuperCat and Feed Examples] katiegmartin |
---|
======SuperCat and Feed Examples====== | ======SuperCat and Feed Examples====== |
| |
**NOTE:** This documentation is also available in the Evergreen documentation at http://docs.evergreen-ils.org/1.6/draft/html/. In github: http://github.com/rsoulliere/Evergreen-DocBook/blob/master/1.6/development/supercat.xml. | **NOTE:** This documentation is also available in the Evergreen documentation at https://docs.evergreen-ils.org/2.0/draft/html/supercat.html. |
| In github: http://github.com/rsoulliere/Evergreen-DocBook/blob/master/1.6/development/supercat.xml. |
| |
=====Record types===== | =====Record types===== |
Similar to the OCLC xISBN service, Evergreen can return a list of related records based on its oISBN algorithm: | Similar to the OCLC xISBN service, Evergreen can return a list of related records based on its oISBN algorithm: |
| |
http://<hostname>/opac/extras/osibn/<ISBN> | http://<hostname>/opac/extras/oisbn/<ISBN> |
| |
For example, http://dev.gapines.org/opac/extras/oisbn/0439136350 returns:<code xml><idlist metarecord="302670"> | For example, http://gapines.org/opac/extras/oisbn/0439136350 returns:<code xml><idlist metarecord="302670"> |
<isbn record="250060">0790783525</isbn> | <isbn record="250060">0790783525</isbn> |
<isbn record="20717">0736691316</isbn> | <isbn record="20717">0736691316</isbn> |
http://<hostname>/opac/extras/supercat/retrieve/<format>/<record-type>/<bib-ID> | http://<hostname>/opac/extras/supercat/retrieve/<format>/<record-type>/<bib-ID> |
| |
For example, http://dev.gapines.org/opac/extras/supercat/retrieve/mods/record/555 returns:<code> | For example, http://gapines.org/opac/extras/supercat/retrieve/mods/record/555 returns:<code> |
<mods:modsCollection version="3.0"> | <mods:modsCollection version="3.0"> |
<mods:mods xsi:schemaLocation="http://www.loc.gov/mods/ http://www.loc.gov/standards/mods/mods.xsd"> | <mods:mods xsi:schemaLocation="http://www.loc.gov/mods/ http://www.loc.gov/standards/mods/mods.xsd"> |
//feed-type// can be one of atom, html, htmlholdings, marcxml, mods, mods3, or rss2. | //feed-type// can be one of atom, html, htmlholdings, marcxml, mods, mods3, or rss2. |
| |
For example, http://dev.gapines.org/opac/extras/feed/freshmeat/atom/biblio/import/10/2008-01-01 | Example: http://gapines.org/opac/extras/feed/freshmeat/atom/biblio/import/10/2008-01-01 |
| |
| =====Return a feed or page of recently created items===== |
| |
| You can generate a similar list, with the added ability to limit by Org Unit, using the item-age browse axis. |
| |
| To produce an RSS feed by item date rather than bib date, and to restrict it to a particular system within a consortium: |
| |
| Example: http://gapines.org/opac/extras/browse/atom/item-age/ARL-BOG/1/10 |
| |
| * //ARL-BOG// should be the short name of the org unit you're interested in |
| * //1// is the page (since you are browsing through pages of results) |
| * //10// is the number of results to return per page |
| |
| Modifying the 'atom' portion of the URL to 'atom-full' will include catalog links in the results: |
| |
| Example: http://gapines.org/opac/extras/browse/atom-full/item-age/ARL-BOG/1/10 |
| |
| Modifying the 'atom' portion of the URL to 'html-full' will produce an HTML page that is minimally formatted: |
| |
| Example: http://gapines.org/opac/extras/browse/html-full/item-age/ARL-BOG/1/10 |
=====Browse records===== | =====Browse records===== |
SuperCat can browse records in HTML and XML formats: | SuperCat can browse records in HTML and XML formats: |
http://<hostname>/opac/extras/supercat/browse/<format>/call_number/<org_unit>/<call_number> | http://<hostname>/opac/extras/supercat/browse/<format>/call_number/<org_unit>/<call_number> |
| |
For example, http://dev.gapines.org/opac/extras/browse/xml/call_number/-/GV returns:<code xml><hold:volumes xmlns:hold='http://open-ils.org/spec/holdings/v1'> | For example, http://gapines.org/opac/extras/browse/xml/call_number/-/GV returns:<code xml><hold:volumes xmlns:hold='http://open-ils.org/spec/holdings/v1'> |
<hold:volume id="tag:open-ils.org,2008:asset-call_number/130607" lib="FRRLS-FA" label="GUTCHEON BETH"> | <hold:volume id="tag:open-ils.org,2008:asset-call_number/130607" lib="FRRLS-FA" label="GUTCHEON BETH"> |
<act:owning_lib id="tag:open-ils.org,2008:actor-org_unit/111" name="Fayette County Public Library"/> | <act:owning_lib id="tag:open-ils.org,2008:actor-org_unit/111" name="Fayette County Public Library"/> |
http://<hostname>/opac/extras/supercat/formats/<record-type> | http://<hostname>/opac/extras/supercat/formats/<record-type> |
| |
For example, http://dev.gapines.org/opac/extras/supercat/formats/record returns:<code xml> | For example, http://gapines.org/opac/extras/supercat/formats/record returns:<code xml> |
<formats> | <formats> |
| |