Skip to content

Instantly share code, notes, and snippets.

@thisismattmiller
Created April 28, 2015 15:26
Show Gist options
  • Save thisismattmiller/1fd05958f5adc3a5b766 to your computer and use it in GitHub Desktop.
Save thisismattmiller/1fd05958f5adc3a5b766 to your computer and use it in GitHub Desktop.
Sierra Catalog API Dump
{
"author": "New York Public Library. Emmet Collection.",
"bibLevel": {
"code": "m",
"value": "MONOGRAPH"
},
"catalogDate": "2000-11-03",
"country": "New York (State)",
"createdDate": "2008-12-16T03:52:01Z",
"deleted": false,
"fixedFields": {
"107": {
"label": "MARC Type",
"value": " "
},
"24": {
"display": "English",
"label": "Language",
"value": "eng"
},
"25": {
"label": "Skip",
"value": "0"
},
"26": {
"label": "Location",
"value": "multi"
},
"27": {
"label": "COPIES",
"value": "4"
},
"28": {
"label": "Cat. Date",
"value": "2000-11-03"
},
"29": {
"display": "MONOGRAPH",
"label": "Bib Level",
"value": "m"
},
"30": {
"display": "BOOK/TEXT",
"label": "Material Type",
"value": "a"
},
"31": {
"label": "Bib Code 3",
"value": "-"
},
"80": {
"label": "Record Type",
"value": "b"
},
"81": {
"label": "Record Number",
"value": "12625702"
},
"83": {
"label": "Created Date",
"value": "2008-12-16T03:52:01Z"
},
"84": {
"label": "Updated Date",
"value": "2012-01-26T02:06:52Z"
},
"85": {
"label": "No. of Revisions",
"value": "5"
},
"86": {
"label": "Agency",
"value": "1"
},
"89": {
"display": "New York (State)",
"label": "Country",
"value": "nyu"
},
"98": {
"label": "PDATE",
"value": "2009-07-21T02:07:29Z"
}
},
"id": 12625702,
"lang": "English",
"materialType": {
"code": "a",
"value": "BOOK/TEXT"
},
"publishYear": 1959,
"suppressed": false,
"title": "Calendar of the Emmet collection of manuscripts etc. relating to American history;",
"updatedDate": "2012-01-26T02:06:52Z",
"varFields": [
{
"fieldTag": "a",
"ind1": "2",
"ind2": " ",
"marcTag": "110",
"subfields": [
{
"content": "New York Public Library.",
"tag": "a"
},
{
"content": "Emmet Collection.",
"tag": "b"
}
]
},
{
"fieldTag": "b",
"ind1": "1",
"ind2": " ",
"marcTag": "700",
"subfields": [
{
"content": "Emmet, Thomas Addis,",
"tag": "a"
},
{
"content": "1828-1919.",
"tag": "d"
}
]
},
{
"fieldTag": "b",
"ind1": "1",
"ind2": " ",
"marcTag": "700",
"subfields": [
{
"content": "Kennedy, John S.",
"tag": "a"
},
{
"content": "(John Stewart),",
"tag": "q"
},
{
"content": "1830-1909.",
"tag": "d"
}
]
},
{
"fieldTag": "c",
"ind1": "8",
"ind2": " ",
"marcTag": "852",
"subfields": [
{
"content": "H (New York Public Library. Calendar of the Emmet collection of manuscripts. 1959)",
"tag": "h"
}
]
},
{
"fieldTag": "d",
"ind1": " ",
"ind2": "0",
"marcTag": "651",
"subfields": [
{
"content": "United States",
"tag": "a"
},
{
"content": "History",
"tag": "x"
},
{
"content": "Sources",
"tag": "v"
},
{
"content": "Bibliography.",
"tag": "v"
}
]
},
{
"fieldTag": "l",
"ind1": " ",
"ind2": " ",
"marcTag": "035",
"subfields": [
{
"content": "(WaOLN)nyp2607143",
"tag": "a"
}
]
},
{
"fieldTag": "n",
"ind1": " ",
"ind2": " ",
"marcTag": "500",
"subfields": [
{
"content": "\"Reprinted with the addition of a Table of Contents, from the 1st ed., New York, 1900.\"",
"tag": "a"
}
]
},
{
"content": "8947706",
"fieldTag": "o",
"ind1": " ",
"ind2": " ",
"marcTag": "001"
},
{
"fieldTag": "p",
"ind1": " ",
"ind2": " ",
"marcTag": "260",
"subfields": [
{
"content": "New York,",
"tag": "a"
},
{
"content": "1959.",
"tag": "c"
}
]
},
{
"fieldTag": "q",
"ind1": "8",
"ind2": " ",
"marcTag": "852",
"subfields": [
{
"content": "H (New York Public Library. Calendar of the Emmet collection of manuscripts. 1959)",
"tag": "h"
}
]
},
{
"fieldTag": "q",
"ind1": "8",
"ind2": " ",
"marcTag": "852",
"subfields": [
{
"content": "*R-USLHG I 00-1482",
"tag": "h"
}
]
},
{
"fieldTag": "q",
"ind1": "8",
"ind2": " ",
"marcTag": "852",
"subfields": [
{
"content": "MDE 00-11643",
"tag": "h"
}
]
},
{
"fieldTag": "r",
"ind1": " ",
"ind2": " ",
"marcTag": "300",
"subfields": [
{
"content": "536 p.",
"tag": "a"
},
{
"content": "26 cm.",
"tag": "c"
}
]
},
{
"fieldTag": "t",
"ind1": "0",
"ind2": "0",
"marcTag": "245",
"subfields": [
{
"content": "Calendar of the Emmet collection of manuscripts etc. relating to American history;",
"tag": "a"
},
{
"content": "presented to the New York Public Library by John S. Kennedy.",
"tag": "c"
}
]
},
{
"fieldTag": "v",
"ind1": " ",
"ind2": " ",
"marcTag": "959",
"subfields": [
{
"content": ".b41450826",
"tag": "a"
},
{
"content": "10-16-08",
"tag": "b"
},
{
"content": "11-12-96",
"tag": "c"
}
]
},
{
"content": "OCoLC",
"fieldTag": "y",
"ind1": " ",
"ind2": " ",
"marcTag": "003"
},
{
"content": "20000629184212.0",
"fieldTag": "y",
"ind1": " ",
"ind2": " ",
"marcTag": "005"
},
{
"content": "821111r19591900nyu 000 0 eng dcamI ",
"fieldTag": "y",
"ind1": " ",
"ind2": " ",
"marcTag": "008"
},
{
"fieldTag": "y",
"ind1": " ",
"ind2": " ",
"marcTag": "040",
"subfields": [
{
"content": "SMI",
"tag": "a"
},
{
"content": "SMI",
"tag": "c"
},
{
"content": "OCL",
"tag": "d"
},
{
"content": "NYP",
"tag": "d"
},
{
"content": "WaOLN",
"tag": "d"
}
]
},
{
"fieldTag": "y",
"ind1": " ",
"ind2": " ",
"marcTag": "049",
"subfields": [
{
"content": "NYPG",
"tag": "a"
}
]
},
{
"fieldTag": "y",
"ind1": " ",
"ind2": " ",
"marcTag": "946",
"subfields": [
{
"content": "r",
"tag": "a"
}
]
},
{
"fieldTag": "y",
"ind1": " ",
"ind2": " ",
"marcTag": "997",
"subfields": [
{
"content": "hg",
"tag": "a"
},
{
"content": "hh",
"tag": "a"
},
{
"content": "hsi",
"tag": "a"
},
{
"content": "11-03-00",
"tag": "b"
},
{
"content": "m",
"tag": "c"
},
{
"content": "a",
"tag": "d"
},
{
"content": "-",
"tag": "e"
},
{
"content": "eng",
"tag": "f"
},
{
"content": "nyu",
"tag": "g"
},
{
"content": "0",
"tag": "h"
}
]
},
{
"content": "00000cam 2200277I 4500",
"fieldTag": "_"
}
]
}
@thisismattmiller
Copy link
Author

Some data is exposed a keys on the record for example

record['author']

But the MARC data is in the fixedFields and varFields lists of dictionaries. Refer to http://www.loc.gov/marc/bibliographic/ for the field numbers to find what you are looking for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment