$resourceId
$resourceId :
int
Common functions for importing resources into wikindx
checkDuplicates( noSort, title, subtitle, type) :
Check for duplicate title/resourceType
If the session variable 'import_ImportDuplicates' is TRUE, the function quits immediately. NoSort, Title, Subtitle and resource type must match.
noSort | (A word like 'the', 'a' or translated equivalents that is at the start of the raw title) |
|
title | ||
subtitle | ||
type |
TRUE if resource already exists, FALSE if not.
writeImportrawTable(mixed||string|int rejectedArray, bibtexStringId = FALSE, importType = FALSE) :
writeImportRawTable - write import_raw table
mixed||string|int | rejectedArray | Rejected input values for this resource |
bibtexStringId | ID of the BibTeX string in the bibtex_string table. Default is FALSE |
|
importType | Default is FALSE |
promptFieldNames(mixed||string|int entries, mixed||string|int inputTypes, mixed||string|int map, mixed||string|int invalidFieldNames, strings = FALSE, importType = FALSE) : mixed||string|int
promptFieldNames - print field name mapping to browser as an intermediate stage when invalid field names are found in the input.
This allows users to map them to any existing custom fields.
mixed||string|int | entries | |
mixed||string|int | inputTypes | |
mixed||string|int | map | |
mixed||string|int | invalidFieldNames | |
strings | array|FALSE. Default is FALSE |
|
importType |
1st element is error message or FALSE, 2nd element is string for display