Ready to Learn?Ex Libris products all provide open APIs

General Purpose

The tags/getTagsForRecord request returns the tags for a specific item.

 

Input Parameters

ElementDescriptionValue
docIdRecord id from the PNX table.string

Output Parameters

ElementDescriptionValue
TagsAndReviewsRoot element of the XML tree.no value
TagsElement to contain one or several sub-elements. 
Structure: Sub-element of TagsAndReviews.
no value
MyTagsElement to contain one or several sub-elements. 
Structure: Sub-element of Tags.
no value
TagElement to contain one or several sub-elements. 
Structure: Sub-element of MyTags.
no value
userIdUser id. 
Structure: Sub-element of Tag.
string
docIdRecord id from the PNX table. 
Structure: Sub-element of Tag.
string
statusStatus of tag (0=deleted, 2= Active). 
Structure: Sub-element of Tag.
"1" to "n"
valueThe tag name given by the user. 
Structure: Sub-element of Tag.
string
EverybodyTagsElement to contain one or several sub-elements. 
Structure: Sub-element of Tags.
no value
TagElement to contain one or several sub-elements. 
Structure: Sub-element of EverybodyTags.
no value
userIdUser id. 
Structure: Sub-element of Tag.
string
docIdRecord id from the PNX table. 
Structure: Sub-element of Tag.
string
statusStatus of tag (0=deleted, 2= Active). 
Structure: Sub-element of Tag.
"1" to "n"
valueThe tag name given by the user. 
Structure: Sub-element of Tag.
string

Input Example

http://primo:170X/PrimoWebServices/xservice/tags/getTagsForRecord?docId=demo_aleph000596377

 

Output Example

<TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config">
  <Tags>
    <MyTags/>
    <EverybodyTags>
      <Tag>
        <value>nasa</value>
        <docId>demo_aleph000596377</docId>
        <userId>demo</userId>
        <status>2</status>
      </Tag>
      <Tag>
        <value>ohad</value>
        <docId>demo_aleph000596377</docId>
        <userId>demo</userId>
        <status>2</status>
      </Tag>
    </EverybodyTags>
  </Tags>
</TagsAndReviews>