check_pub
Check that publication and language version exist.
Description
Check that named publication exists; check that language version, if provided, exists.
Parameters
- action
- check_pub
- lang
- A language version of a publication.
- pub
- A publication, which is a logical grouping of information (topics and multimedia) related to a specific subject, containing one or more language versions.
Example URL
http://<host>:<port>/<context>/web/pub.xql?action=check_pub&lang=<value>&pub=<value>
Successful Result
If the publication or language version exists, this function returns a standard API result element with a statusCode equal to 0 (<result status='SUCCESS' statusCode='0' message='Localized Message' messageKey='message.key'/>). A statusCode of 0 indicates a successful execution. Any other statusCode indicates a failure.
Failed Result
If the publication or language version exists, this function returns a standard API result element with a statusCode equal to 200.