Home > Contents > Index >
ASSET.ADDSITE
Adds a site affiliation to a loaded asset.
Syntax
<ASSET.ADDSITE NAME="asset instance object
" PUBID="siteId
" </ASSET.ADDSITE>Parameters
NAME (required)
- Name of the asset instance object.
PUBID (required)
- Input. Specifies the ID of the publication to add.
Description
This tag adds a site affiliation to an asset instance. The site information will be written upon ASSET.SAVE. The asset instance must have been loaded using the editable parameter of ASSET.LOAD set to true.
Error Numbers
The possible values of
errno
include:
Value Description -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded intomemory). -12070 Asset was not fully loaded. Tag requires ASSET.LOAD with editable flag to fully load asset.Example
This code loads an article and adds to its existing sites a site specified in the variable pubid :
<ASSET.LOAD NAME="anArticle" TYPE="Article" OBJECTID="Variables.id" EDITABLE="true" > <ASSET.ADDSITE NAME="anArticle" PUBID="Variables.pubid"/> <ASSET.SAVE NAME="anArticle" />See Also
ASSET.LOAD
ASSET.GATHER
ASSET.REMOVESITE
ASSET.SAVE
ASSET.SHARE
ASSET.SITES
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.