dmGetItemInfo

Signature

http://CdmServer.com:port/dmwebservices/index.php?
q=dmGetItemInfo/alias/pointer/format

  • alias is a collection alias
  • pointer is the pointer to the item for which you want metadata
  • format is either xml or json

Returns

This function returns the descriptive metadata and administrative metadata for an item. Elements in the descriptive metadata are determined by the collection's field configuration, and administrative metadata is added automatically by CONTENTdm. Empty fields are present in XML as empty elements and in JSON as empty arrays. If the item is not found, the function returns the following error message:

-2Requested item not found

This function also makes direct calls to dmItemHasOCRText and dmItemFileSize to eliminate the need for extra API calls.

Example

http://CdmServer.com:port/dmwebservices/index.php?
q=dmGetItemInfo/uw/31/json

returns:

{
"title": "Prince George Citizen, Wednesday, May 17th 1916",
"date": "1916-05-17;",
"rights": "Public domain",
"format": "Text",
"type": "Image\/jpeg",
"langua": "eng",
"full": {

},
"fullrs": {

},
"find": "526.cpd",
"dmaccess": {

},
"dmimage": {

},
"dmcreated": "2009-09-22",
"dmmodified": "2009-09-22",
"dmoclcno": {

},
"dmrecord": "525",
"cdmfilesize":"216777",
"cdmfilesizeformatted":"0.21 MB",
"cdmhasocr":"1"
}

The XML version of this record is:


Prince George Citizen, Wednesday, May 17th 1916
1916-05-17;
Public domain
Text
Image/jpeg
eng


526.cpd


2009-09-22
2009-09-22

525
216777
0.21 MB
1