NYPL-discovery / discovery-models

Data models, documentation, and discussion for Discovery project data
0 stars 0 forks source link

Add property for item type and serialize #15

Closed saverkamp closed 7 years ago

saverkamp commented 8 years ago

We need a property for item type to represent sierra item type code. We will use a local predicate. Range will be an object with code and label. Codes will be at: https://drive.google.com/drive/u/1/folders/0B51-ZdfMu5sSbmRQbWNoejNxWUU. (@thisismattmiller will add)

thisismattmiller commented 8 years ago

Json added to the folder.

saverkamp commented 8 years ago

Postponing this to post-alpha. For alpha we are only using this to tell is an item is Research or Branch, and Paul is filtering out Branch pre-serialization.

saverkamp commented 7 years ago

We are adding this now.

property: nypl:catalogItemType range: nypl:CatalogItemType

Item type codes at: https://docs.google.com/spreadsheets/d/1YUZuG8yGS-7kW2uG2eU5K4YWThH-DN8_ucqJaDCAvw4/edit#gid=580006046 Map research item types only.

Serialization: Use code for identifier.

<self> a nypl:CatalogItemType ;
    skos:notation "1" ;
    skos:prefLabel "non-circ" ;
    skos:note "General Materials" .

We will need to determine defaults or mapping for partner data. @katesweeney suggests the following: "you could map circulating/marli-able partner items to item type 55 ("book limited circ, MaRLI" as we do with our marli-able items); map in-library use partner items to item type 2 (book non-circ); map supervised use to item type 2 and supervised-use opac message (again like our items)."

TODO:

saverkamp commented 7 years ago

Serialized item types as CatalogItemType objects (added "catalog" for future semantic clarity when we bring other data sources into Discovery). json at: pcdm-store-updater/data/sierra-codes-catalogItemTypes.json

nonword commented 7 years ago

I've done this: