Get Tags for Record
General Purpose
The tags/getTagsForRecord request returns the tags for a specific item.
Input Parameters
Element | Description | Value |
---|---|---|
docId | Record id from the PNX table. | string |
Output Parameters
Element | Description | Value |
---|---|---|
TagsAndReviews | Root element of the XML tree. | no value |
Tags | Element to contain one or several sub-elements. Structure: Sub-element of TagsAndReviews. | no value |
MyTags | Element to contain one or several sub-elements. Structure: Sub-element of Tags. | no value |
Tag | Element to contain one or several sub-elements. Structure: Sub-element of MyTags. | no value |
userId | User id. Structure: Sub-element of Tag. | string |
docId | Record id from the PNX table. Structure: Sub-element of Tag. | string |
status | Status of tag (0=deleted, 2= Active). Structure: Sub-element of Tag. | “1” to “n” |
value | The tag name given by the user. Structure: Sub-element of Tag. | string |
EverybodyTags | Element to contain one or several sub-elements. Structure: Sub-element of Tags. | no value |
Tag | Element to contain one or several sub-elements. Structure: Sub-element of EverybodyTags. | no value |
userId | User id. Structure: Sub-element of Tag. | string |
docId | Record id from the PNX table. Structure: Sub-element of Tag. | string |
status | Status of tag (0=deleted, 2= Active). Structure: Sub-element of Tag. | “1” to “n” |
value | The 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>