Method:
writeResourceKeywordTable()
Class:
IMPORTCOMMON
Method Call:
include_once("core/file/import/IMPORTCOMMON.php");
$common = new IMPORTCOMMON($this->db);
$common->writeResourceKeywordTable(STRING: $keywords, INT: $resourceId, STRING: $importType);
Description:
This takes a string of keywords to be imported, splits it according to $importType (e.g. 'bibtex', 'endnote' etc.), writes the keywords to the WKX_keyword table and inserts a new row into WKX_resource_keyword. Imports from BibTeX and Endnote are expected to be delimited by ';'. As this method requires the resourceId, it should be called after you have obtained the resourceId from an insert to WKX_resource.
include_once("core/file/import/IMPORTCOMMON.php"); $common = new IMPORTCOMMON($this->db); $common->writeResourceKeywordTable("keyword1; keyword2; keyword three", 666, "bibtex");