en:user_advanced:document_identifiers
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | en:user_advanced:document_identifiers [2023/03/13 01:46] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | |||
+ | ======Document Identifiers====== | ||
+ | |||
+ | |||
+ | Every document in a Greenstone collection gets given a unique object identifier (OID). This is used in URLs to refer to that document. There are several methods used for assigning identifiers. The method can be changed using the OIDtype option. This option is available as an import option and as a plugin option. Setting it for import will mean that all plugins will use that setting. Setting it for a plugin will mean that only that plugin will use the setting, overriding the import setting. You can set a default setting for import, and have one or more plugins override that setting with a different one if need be. | ||
+ | |||
+ | The options for OIDtype are: | ||
+ | * **auto** (default for plugins): Use the OIDtype set in import.pl. (Only for use with a plugin, not with import.pl) | ||
+ | * **hash**: (default for import.pl) This usually hashes the contents of the file, and will be consistent every time the collection is imported. (Hashing takes an input and generates a unique id for that input.) Duplicate documents will not be included in the collection as they will hash to the same value. For some filetypes, hashing the contents is not useful: PDF, MP3, OggVorbis, RealMedia. For these files, ' | ||
+ | * **hash_on_ga_xml**: | ||
+ | * **hash_on_full_filename**: | ||
+ | * **assigned**: | ||
+ | * **filename**: | ||
+ | * **dirname**: | ||
+ | * **full_filename**: | ||
+ | * **incremental**: | ||
+ | <tabbox Greenstone3>'' | ||
+ | <tabbox Greenstone2> | ||
+ | '' | ||
+ | </ | ||
+ | by replacing the " | ||
+ | <code perl> | ||
+ | } elsif ($self-> | ||
+ | $OID = " | ||
+ | $OIDcount ++; | ||
+ | </ | ||
+ | (// | ||
en/user_advanced/document_identifiers.txt · Last modified: 2023/03/13 01:46 by 127.0.0.1