Method:
checkExists()
Class:
PUBLISHER
Method Call:
include_once("core/publisher/PUBLISHER.php");
$publisher = new PUBLISHER($this->db);
ARRAY $publisher->checkExists(STRING: $publisherName, STRING: $publisherLocation);
Description:
Prior to inserting or updating a publisher, this method should be called to check whether the new publisher already exists in the WKX_publisher table. If it does not, FALSE is returned; if it does, the publisher ID is returned ready for insertion into the WKX_resource_misc table. The match is case-insensitive.
Usage:
$publisher = new PUBLISHER($this->db); list($id, $publisherType) = $publisher->checkExists("Virago", "Paris");