--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<chapter xml:id="supercat" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN"\r
+ xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">\r
+ <info>\r
+ <title>SuperCat</title>\r
+ </info>\r
+ <para>SuperCat allows Evergreen record and information retrieval from a web browser using a based on a number of open web standards and formats. The following record types are supported:</para>\r
+ <itemizedlist>\r
+ <listitem>isbn</listitem>\r
+ <listitem>metarecord</listitem>\r
+ <listitem>record</listitem>\r
+ </itemizedlist>\r
+ <simplesect>\r
+ <title>Return a list of ISBNs for related records</title>\r
+ <para>Similar to the OCLC xISBN service, Evergreen can return a list of related records based on its oISBN algorithm:</para>\r
+ <screen>http://<hostname>/opac/extras/osibn/<ISBN></screen>\r
+ <para>For example, http://dev.gapines.org/opac/extras/oisbn/0439136350 returns:</para>\r
+ <programlisting>\r
+ <idlist metarecord="302670">\r
+ <isbn record="250060">0790783525</isbn>\r
+ <isbn record="20717">0736691316</isbn>\r
+ <isbn record="250045">0790783517</isbn>\r
+ <isbn record="199060">9500421151</isbn>\r
+ <isbn record="250061">0790783495</isbn>\r
+ <isbn record="154477">0807286028</isbn>\r
+ <isbn record="227297">1594130027</isbn>\r
+ <isbn record="26682">0786222743</isbn>\r
+ <isbn record="17179">0807282316</isbn>\r
+ <isbn record="34885">0807282316</isbn>\r
+ <isbn record="118019">8478885196</isbn>\r
+ <isbn record="1231">0738301477</isbn>\r
+ </idlist>\r
+ </programlisting>\r
+ </simplesect>\r
+ <simplesect>\r
+ <title>Return records</title>\r
+ <para>SuperCat can return records and metarecords in many different formats (see <xref linkend='supportedsupercatformats' /></para>\r
+ <screen>http://<hostname>/opac/extras/supercat/retrieve/<format>/<record-type>/<bib-ID></screen>\r
+ <para>For example, http://dev.gapines.org/opac/extras/supercat/retrieve/mods/record/555 returns:</para>\r
+ <programlisting>\r
+ <mods:modsCollection version="3.0">\r
+ <mods:mods xsi:schemaLocation="http://www.loc.gov/mods/ http://www.loc.gov/standards/mods/mods.xsd">\r
+ <titleInfo>\r
+ <title>More Brer Rabbit stories /</title>\r
+ </titleInfo>\r
+ <typeOfResource>text</typeOfResource>\r
+ <originInfo>\r
+ <place>\r
+ <code authority="marc">xx</c0de>\r
+ </place>\r
+ <publisher>Award Publications</publisher>\r
+ <dateIssued>c1982, 1983</dateIssued>\r
+ <dateIssued encoding="marc" point="start">1983</dateIssued>\r
+ <dateIssued encoding="marc" point="end">1982</dateIssued>\r
+ <issuance>monographic</issuance>\r
+ </originInfo>\r
+ <language authority="iso639-2b">eng</language>\r
+ <physicalDescription>\r
+ <form authority="marcform">print</form>\r
+ <extent>unp. : col. ill.</extent>\r
+ </physicalDescription>\r
+ <note type="statement of responsibility">ill. by Rene Cloke.</note>\r
+ <subject authority="lcsh">\r
+ <topic>Animals</topic>\r
+ <topic>Fiction</topic>\r
+ </subject>\r
+ <subject authority="lcsh">\r
+ <topic>Fables</topic>\r
+ </subject>\r
+ <recordInfo>\r
+ <recordContentSource>(BRO)</recordContentSource>\r
+ <recordCreationDate encoding="marc">930903</recordCreationDate>\r
+ <recordChangeDate encoding="iso8601">19990703024637.0</recordChangeDate>\r
+ <recordIdentifier>PIN60000007 </recordIdentifier>\r
+ </recordInfo>\r
+ </mods:mods>\r
+ </mods:modsCollection>\r
+ </programlisting>\r
+ </simplesect>\r
+ <simplesect>\r
+ <title>Return a feed of recently edited or created records</title>\r
+ <para>SuperCat can return feeds of recently edited or created authority and bibliographic records:</para>\r
+ <screen>http://<hostname>/opac/extras/feed/freshmeat/<feed-type>/[authority|biblio]/[import|edit]/<limit>/<date></screen>\r
+ <para>The limit records imported or edited following the supplied date will be returned. If you do not supply a date, then the most recent limit records will be returned.</para>\r
+ <para>If you do not supply a limit, then up to 10 records will be returned.</para> \r
+ <para>Feed-type can be one of atom, html, htmlholdings, marcxml, mods, mods3, or rss2.</para> \r
+ <para>For example, http://dev.gapines.org/opac/extras/feed/freshmeat/atom/biblio/import/10/2008-01-01</para>\r
+ </simplesect>\r
+ <simplesect>\r
+ <title>Browse records</title>\r
+ <para>SuperCat can browse records in HTML and XML formats:</para>\r
+ <screen>http://<hostname>/opac/extras/supercat/browse/<format>/call_number/<org_unit>/<call_number></screen>\r
+ <para>For example, http://dev.gapines.org/opac/extras/browse/xml/call_number/-/GV returns:</para>\r
+ <programlisting>\r
+ <hold:volumes xmlns:hold='http://open-ils.org/spec/holdings/v1'>\r
+ <hold:volume id="tag:open-ils.org,2008:asset-call_number/130607" lib="FRRLS-FA" label="GUTCHEON BETH">\r
+ <act:owning_lib id="tag:open-ils.org,2008:actor-org_unit/111" name="Fayette County Public Library"/>\r
+ <record xsi:schemaLocation="http://www.loc.gov/MARC21/slim http://www.loc.gov/ \r
+ standards/marcxml/schema/MARC21slim.xsd"\r
+ id="tag:open-ils.org,2008:biblio-record_entry/21669/FRRLS-FA">\r
+ <leader>09319pam a2200961 a 4500</leader>\r
+ <controlfield tag="001"/>\r
+ <controlfield tag="005">20000302124754.0</controlfield>\r
+ <controlfield tag="008">990817s2000 nyu 000 1 eng </controlfield>\r
+ <datafield tag="010" ind1=" " ind2=" ">\r
+ <subfield code="a"> 99045936</subfield>\r
+ </datafield>\r
+ ..\r
+ </record>\r
+ <record>\r
+ ..\r
+ </record>\r
+ </hold:volume>\r
+ </hold:volumes> \r
+ </programlisting>\r
+ </simplesect>\r
+ <simplesect xml:id="supportedsupercatformats">\r
+ <title>Supported formats</title>\r
+ <para>SuperCat maintains a list of supported formats for records and metarecords:</para>\r
+ <screen>http://<hostname>/opac/extras/supercat/formats/<record-type></screen>\r
+ <para>For example, http://dev.gapines.org/opac/extras/supercat/formats/record returns:</para>\r
+ <programlisting>\r
+ <formats>\r
+\r
+ <format>\r
+ <name>opac</name>\r
+ <type>text/html</type>\r
+ </format>\r
+\r
+ <format>\r
+ <name>htmlholdings</name>\r
+ <type>text/html</type>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>html</name>\r
+ <type>text/html</type>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>htmlholdings-full</name>\r
+ <type>text/html</type>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>html-full</name>\r
+ <type>text/html</type>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>marcxml</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.loc.gov/MARC21/slim</namespace_uri>\r
+ <docs>http://www.loc.gov/marcxml/</docs>\r
+ \r
+ <schema_location>\r
+ http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd\r
+ </schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>marcxml-full</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.loc.gov/MARC21/slim</namespace_uri>\r
+ <docs>http://www.loc.gov/marcxml/</docs>\r
+ \r
+ <schema_location>\r
+ http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd\r
+ </schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>rss2</name>\r
+ <type>application/xml</type>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>rss2-full</name>\r
+ <type>application/xml</type>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>rdf_dc</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://purl.org/dc/elements/1.1/</namespace_uri>\r
+ <schema_location>http://purl.org/dc/elements/1.1/</schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>oai_dc</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.openarchives.org/OAI/2.0/oai_dc/</namespace_uri>\r
+ <schema_location>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>srw_dc</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>info:srw/schema/1/dc-schema</namespace_uri>\r
+ \r
+ <schema_location>\r
+ http://www.loc.gov/z3950/agency/zing/srw/dc-schema.xsd\r
+ </schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>mods32</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.loc.gov/mods/v3</namespace_uri>\r
+ <docs>http://www.loc.gov/mods/</docs>\r
+ <schema_location>http://www.loc.gov/standards/mods/v3/mods-3-2.xsd</schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>mods3</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.loc.gov/mods/v3</namespace_uri>\r
+ <docs>http://www.loc.gov/mods/</docs>\r
+ <schema_location>http://www.loc.gov/standards/mods/v3/mods-3-1.xsd</schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>mods3-full</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.loc.gov/mods/v3</namespace_uri>\r
+ <docs>http://www.loc.gov/mods/</docs>\r
+ <schema_location>http://www.loc.gov/standards/mods/v3/mods-3-1.xsd</schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>mods</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.loc.gov/mods/</namespace_uri>\r
+ <docs>http://www.loc.gov/mods/</docs>\r
+ <schema_location>http://www.loc.gov/standards/mods/mods.xsd</schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>mods-full</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.loc.gov/mods/</namespace_uri>\r
+ <docs>http://www.loc.gov/mods/</docs>\r
+ <schema_location>http://www.loc.gov/standards/mods/mods.xsd</schema_location>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>atom</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.w3.org/2005/Atom</namespace_uri>\r
+ <docs>http://www.ietf.org/rfc/rfc4287.txt</docs>\r
+ </format>\r
+ \r
+ <format>\r
+ <name>atom-full</name>\r
+ <type>application/xml</type>\r
+ <namespace_uri>http://www.w3.org/2005/Atom</namespace_uri>\r
+ <docs>http://www.ietf.org/rfc/rfc4287.txt</docs>\r
+ </format>\r
+ </formats>\r
+ </programlisting>\r
+ </simplesect>\r
+ <simplesect>\r
+ <title>Adding new SuperCat formats</title> \r
+ <para>SuperCat web services are based on the OpenSRF application, <emphasis>open-ils.supercat</emphasis>.</para> \r
+ <para>Developers are able to add new formats by adding the <emphasis>xsl</emphasis> \r
+ stylesheet for the format in the directory<filename class="directory">/openils/var/web/opac/extras/xsl/</filename>, and by adding the feed references to the perl modules \r
+ <filename>openils/lib/perl5/OpenILS/WWW/SuperCat/feed.pm</filename> and <filename>openils/lib/perl5/OpenILS/WWW/SuperCat.pm</filename>. An Evergreen restart is \r
+ required for the new format to be activated.</para>\r
+ <tip><para>Use an existing xsl stylesheet and perm module entry as a guide for your new format.</para></tip>\r
+ </simplesect>\r
+</chapter>\r
+\r