]> git.evergreen-ils.org Git - Evergreen.git/blob - docs-antora/modules/development/pages/data_supercat.adoc
LP#1848524: Docs: section fixes
[Evergreen.git] / docs-antora / modules / development / pages / data_supercat.adoc
1 = Using Supercat =
2 :toc:
3
4 == Introduction ==
5
6 You can use SuperCat to get data about ISBNs, metarecords, bibliographic
7 records, and authority records.
8
9 Throughout this section, replace `<hostname>` with the domain or subdomain
10 of your Evergreen installation to try these examples on your own system.
11
12 == ISBNs ==
13
14 Given one ISBN, Evergreen can return a list of related records and ISBNs,
15 including alternate editions and translations.  To use the Supercat
16 oISBN tool, use http or https to access the following URL.
17
18 ----
19 http://<hostname>/opac/extras/oisbn/<ISBN_to_query>
20 ----
21
22 For example, the URL http://gapines.org/opac/extras/oisbn/0439136350 returns
23 the following list of catalog record IDs and ISBNs:
24
25 [source,xml]
26 ----------------------------------------------------------------------------
27 <?xml version='1.0' encoding='UTF-8' ?>
28 <idlist metarecord='436139'>
29   <isbn record='5652044'>9780606323475</isbn>
30   <isbn record='5767568'>9780780673809</isbn>
31   <isbn record='1350528'>9780807286029</isbn>
32   <isbn record='5708164'>9780780669642</isbn>
33   <isbn record='2372013'>043965548X</isbn>
34   <isbn record='5804511'>8498386969</isbn>
35   <isbn record='4132282'>9780786222742</isbn>
36   <isbn record='1530458'>9788478885190</isbn>
37   <isbn record='2003291'>0736650962</isbn>
38   <isbn record='1993002'>8478885196</isbn>
39   <isbn record='1187595'>9780439554923</isbn>
40   <isbn record='4591175'>8478885196</isbn>
41   <isbn record='5676282'>0807282324</isbn>
42   <isbn record='2363352'>8478885196</isbn>
43   <isbn record='2315122'>1480614998</isbn>
44   <isbn record='2304130'>8478886559</isbn>
45   <isbn record='2012565'>9780613371063</isbn>
46   <isbn record='5763645'>9782070528189</isbn>
47   <isbn record='2383286'>0786222743</isbn>
48   <isbn record='2489670'>9780329232696</isbn>
49   <isbn record='1681685'>9780807282311</isbn>
50   <isbn record='2160095'>0807286028</isbn>
51   <isbn record='2219885'>9789500421157</isbn>
52   <isbn record='1934218'>9780613359580</isbn>
53   <isbn record='5682871'>9781594130021</isbn>
54   <isbn record='1281164'>0807283150</isbn>
55   <isbn record='1666656'>0747542155</isbn>
56   <isbn record='4717734'>8478886559</isbn>
57 </idlist>
58 ----------------------------------------------------------------------------
59
60 == Records ==
61
62 === Record formats ===
63
64 First, determine which format you'd like to receive data in.  To see the
65 available formats for bibliographic records, visit 
66 ----
67 http://<hostname>/opac/extras/supercat/formats/record
68 ----
69
70 Similarly, authority record formats can be found at
71 http://libcat.linnbenton.edu/opac/extras/supercat/formats/authority
72 and metarecord formats can be found at
73 http://libcat.linnbenton.edu/opac/extras/supercat/formats/metarecord
74
75 For example, http://gapines.org/opac/extras/supercat/formats/authority
76 shows that the Georgia Pines catalog can return authority records in the
77 formats _opac_, _marc21_, _marc21-full_, and _marc21-uris_.  Supercat
78 also includes the MIME type of each format, and sometimes also refers
79 to the documentation for a particular format.
80
81 [source,xml]
82 ----------------------------------------------------------------------------
83 <?xml version='1.0' encoding='UTF-8' ?>
84 <formats>
85   <format>
86     <name>opac</name>
87     <type>text/html</type>
88   </format>
89   <format>
90     <name>marc21</name>
91     <type>application/xml</type>
92     <docs>http://www.loc.gov/marc/</docs>
93   </format>
94   <format>
95     <name>marc21-full</name>
96     <type>application/xml</type>
97     <docs>http://www.loc.gov/marc/</docs>
98   </format>
99   <format>
100     <name>marc21-uris</name>
101     <type>application/xml</type>
102     <docs>http://www.loc.gov/marc/</docs>
103   </format>
104 </formats>
105 ----------------------------------------------------------------------------
106
107 [NOTE]
108 ============================================================================
109 atom-full is currently the only format that includes holdings and availability
110 data for a given bibliographic record.
111 ============================================================================
112
113
114 === Retrieve records ===
115
116 You can retrieve records using URLs in the following format:
117 ----
118 http://<hostname>/opac/extras/supercat/retrieve/<format>/<record-type>/<record-ID>
119 ----
120
121 For example, http://gapines.org/opac/extras/supercat/retrieve/mods/record/33333
122 returns the following record.
123
124 [source,xml]
125 ----------------------------------------------------------------------------
126 <?xml version="1.0"?>
127 <modsCollection xmlns="http://www.loc.gov/mods/" xmlns:mods="http://www.loc.gov/mods/" version="3.0">
128   <mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mods="http://www.loc.gov/mods/" xsi:schemaLocation="http://www.loc.gov/mods/ http://www.loc.gov/standards/mods/mods.xsd">
129     <titleInfo>
130       <title>Words and pictures /</title>
131     </titleInfo>
132     <name type="personal">
133       <namePart xmlns:xlink="http://www.w3.org/TR/xlink">Dodd, Siobhan</namePart>
134       <role>
135         <text>creator</text>
136       </role>
137     </name>
138     <typeOfResource xmlns:xlink="http://www.w3.org/TR/xlink">text</typeOfResource>
139     <originInfo xmlns:xlink="http://www.w3.org/TR/xlink">
140       <place>
141         <code authority="marc">mau</code>
142       </place>
143       <place>
144         <text>Cambridge, Mass</text>
145       </place>
146       <publisher>Candlewick Press</publisher>
147       <dateIssued>1992</dateIssued>
148       <edition>1st U.S. ed.</edition>
149       <issuance>monographic</issuance>
150     </originInfo>
151     <language authority="iso639-2b">eng</language>
152     <physicalDescription>
153       <form authority="marcform">print</form>
154       <extent>1 v. (unpaged) : col. ill. ; 26 cm.</extent>
155     </physicalDescription>
156     <abstract>Simple text with picture cues accompany illustrations depicting scenes of everyday life familiar to children, such as getting dressed, attending a party, playing in the park, and taking a bath.</abstract>
157     <targetAudience>juvenile</targetAudience>
158     <note type="statement of responsibility">Siobhan Dodds.</note>
159     <subject xmlns:xlink="http://www.w3.org/TR/xlink" authority="lcshac">
160       <topic>Family life</topic>
161       <topic>Fiction</topic>
162     </subject>
163     <subject xmlns:xlink="http://www.w3.org/TR/xlink" authority="lcsh">
164       <topic>Vocabulary</topic>
165       <topic>Juvenile fiction</topic>
166     </subject>
167     <subject xmlns:xlink="http://www.w3.org/TR/xlink" authority="lcsh">
168       <topic>Rebuses</topic>
169     </subject>
170     <subject xmlns:xlink="http://www.w3.org/TR/xlink" authority="lcsh">
171       <topic>Picture puzzles</topic>
172       <topic>Juvenile literature</topic>
173     </subject>
174     <subject xmlns:xlink="http://www.w3.org/TR/xlink" authority="lcsh">
175       <topic>Picture books for children</topic>
176     </subject>
177     <subject xmlns:xlink="http://www.w3.org/TR/xlink" authority="lcsh">
178       <topic>Picture dictionaries, English</topic>
179       <topic>Juvenile literature</topic>
180     </subject>
181     <subject xmlns:xlink="http://www.w3.org/TR/xlink" authority="lcsh">
182       <topic>Vocabulary</topic>
183       <topic>Juvenile literature</topic>
184     </subject>
185     <classification authority="lcc">PZ7.D66275 Wo 1992</classification>
186     <classification authority="lcc">PN6371.5 .D63 1992x</classification>
187     <classification authority="ddc" edition="20">793.73</classification>
188     <identifier type="isbn">1564020428 :</identifier>
189     <identifier type="isbn">9781564020420</identifier>
190     <identifier type="lccn">91071817</identifier>
191     <recordInfo xmlns:xlink="http://www.w3.org/TR/xlink">
192       <recordContentSource>DLC</recordContentSource>
193       <recordCreationDate encoding="marc">920206</recordCreationDate>
194       <recordChangeDate encoding="iso8601">20110608231047.0</recordChangeDate>
195       <recordIdentifier source="GaAaGPL">33333</recordIdentifier>
196     </recordInfo>
197   </mods>
198 </modsCollection>
199 ----------------------------------------------------------------------------
200
201 === Recent records ===
202
203 SuperCat can return feeds of recently edited or created authority and bibliographic records:
204
205 ----
206 http://<hostname>/opac/extras/feed/freshmeat/<feed-type>/<record-type>/<import-or-edit>/<limit>/<date>
207 ----
208
209 Note the following features:
210
211 * 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.
212 * If you do not supply a limit, then up to 10 records will be returned.
213 * feed-type can be one of atom, html, htmlholdings, marcxml, mods, mods3, or rss2.
214
215 Example: http://gapines.org/opac/extras/feed/freshmeat/atom/biblio/import/10/2008-01-01
216
217 ==== Filtering by Org Unit ====
218
219 You can generate a similar list, with the added ability to limit by Org Unit, using the item-age browse axis.
220
221 To produce an RSS feed by item date rather than bib date, and to restrict it to a particular system within a consortium:
222
223 Example: http://gapines.org/opac/extras/browse/atom/item-age/ARL-BOG/1/10
224
225 Note the following:
226
227 * ARL-BOG should be the short name of the org unit you're interested in
228 * 1 is the page (since you are browsing through pages of results)
229 * 10 is the number of results to return per page
230
231 Modifying the 'atom' portion of the URL to 'atom-full' will include catalog links in the results:
232
233 Example: http://gapines.org/opac/extras/browse/atom-full/item-age/ARL-BOG/1/10
234
235 Modifying the 'atom' portion of the URL to 'html-full' will produce an HTML page that is minimally formatted:
236
237 Example: http://gapines.org/opac/extras/browse/html-full/item-age/ARL-BOG/1/10
238
239 ==== Additional Filters ====
240
241 If you'd like to limit to a particular status, you can append `?status=0`
242 where `0` is the ID number of the status you'd like to limit to.  If a 
243 number of statuses, you can append multiple status parameters (for example,
244 `?status=0&status=1` will limit to items with a status of either 0 or 1).
245
246 [TIP]
247 Limiting to status is a good way to weed out on-order items from your
248 feeds.
249
250 You can also limit by item location (`?copyLocation=227` where 227 is the
251 ID of your item location).
252