source: trunk/gli/classes/xml/import.xml@ 7510

Last change on this file since 7510 was 6536, checked in by jmt12, 20 years ago

New arguments. Yay.

  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 KB
RevLine 
[4293]1<?xml version="1.0" encoding="UTF-8"?>
[6097]2<!DOCTYPE Info [
3 <!ELEMENT Info (Name, Desc, Arguments)>
4 <!ELEMENT Arguments (Option*)>
5 <!ELEMENT Option (Name, Desc, Type, Required, Range, Default?, List?)>
6 <!ELEMENT Name (#PCDATA)>
7 <!ELEMENT Desc (#PCDATA)>
8 <!ELEMENT Type (#PCDATA)>
9 <!ELEMENT Required (#PCDATA)>
10 <!ELEMENT Range (#PCDATA)>
11 <!ELEMENT Default (#PCDATA)>
12 <!ELEMENT List (Value*)>
13 <!ELEMENT Value (Name, Desc?)>
[6536]14 <!ELEMENT HiddenGLI (#PCDATA)>
[4293]15]>
[6097]16
[4293]17<Info>
18 <Name>import.pl</Name>
19 <Desc>PERL script used to import files into a GML format ready for building.</Desc>
20 <Arguments>
21 <Option>
22 <Name>archivedir</Name>
[6097]23 <Desc>{import.achivedir}</Desc>
[4293]24 <Type>string</Type>
25 <Required>no</Required>
[6536]26 <HiddenGLI>yes</HiddenGLI>
[4293]27 </Option>
[6097]28 <Option>
[4293]29 <Name>collectdir</Name>
[6097]30 <Desc>Collection directory.</Desc>
[4293]31 <Type>string</Type>
32 <Required>no</Required>
33 <Default>/research/jmt12/gsdl/collect</Default>
[6536]34 <HiddenGLI>yes</HiddenGLI>
[6097]35 </Option>
[4293]36 <Option>
37 <Name>debug</Name>
[6097]38 <Desc>Print imported text to STDOUT.</Desc>
[4293]39 <Type>flag</Type>
40 <Required>no</Required>
41 </Option>
42 <Option>
43 <Name>faillog</Name>
[6097]44 <Desc>Fail log filename. This log receives the filenames of any files which fail to be processed.</Desc>
[4293]45 <Type>string</Type>
46 <Required>no</Required>
[6097]47 <Default>&lt;collectdir&gt;/colname/etc/fail.log</Default>
[4293]48 </Option>
49 <Option>
50 <Name>groupsize</Name>
[6097]51 <Desc>Number of import documents to group into one XML file.</Desc>
[4293]52 <Type>int</Type>
53 <Required>no</Required>
[6097]54 <Default>1</Default>
[4293]55 </Option>
56 <Option>
57 <Name>gzip</Name>
[6097]58 <Desc>Use gzip to compress resulting xml documents (don't forget to include ZIPPlug in your plugin list when building from compressed documents).</Desc>
[4293]59 <Type>flag</Type>
60 <Required>no</Required>
61 </Option>
[6097]62 <Option>
[4293]63 <Name>importdir</Name>
[6097]64 <Desc>Where the original material lives.</Desc>
[4293]65 <Type>string</Type>
66 <Required>no</Required>
[6536]67 <HiddenGLI>yes</HiddenGLI>
[6097]68 </Option>
[4293]69 <Option>
70 <Name>keepold</Name>
[6097]71 <Desc>Will not destroy the current contents of the archives directory (the default).</Desc>
[4293]72 <Type>flag</Type>
73 <Required>no</Required>
74 </Option>
75 <Option>
[6536]76 <Name>language</Name>
77 <Desc>Language to display option descriptions in (eg. 'en_US' specifies American English). Requires translations of the option descriptions to exist in the perllib/strings_language-code.rb file.</Desc>
78 <Type>string</Type>
79 <Required>no</Required>
80 </Option>
81 <Option>
[4293]82 <Name>maxdocs</Name>
[6097]83 <Desc>Maximum number of documents to import.</Desc>
[4293]84 <Type>int</Type>
85 <Required>no</Required>
86 </Option>
87 <Option>
88 <Name>OIDtype</Name>
[6097]89 <Desc>The method to use when generating unique identifiers for each document.</Desc>
[4293]90 <Type>enum</Type>
91 <Required>no</Required>
92 <List>
93 <Value>
94 <Name>hash</Name>
[6097]95 <Desc>Hashes the contents of the file. Document identifier will be the same every time the collection is imported.</Desc>
[4293]96 </Value>
97 <Value>
98 <Name>incremental</Name>
[6097]99 <Desc>A simple document count that is significantly faster than "hash". It is not guaranteed to always assign the same identifier to a given document though and does not allow further documents to be added to existing xml archives.</Desc>
[4293]100 </Value>
101 </List>
[6097]102 <Default>hash</Default>
[4293]103 </Option>
104 <Option>
105 <Name>out</Name>
[6097]106 <Desc>Filename or handle to print output status to.</Desc>
[4293]107 <Type>string</Type>
108 <Required>no</Required>
[6097]109 <Default>STDERR</Default>
[4293]110 </Option>
111 <Option>
112 <Name>removeold</Name>
[6097]113 <Desc>Will remove the old contents of the archives directory -- use with care.</Desc>
[4293]114 <Type>flag</Type>
115 <Required>no</Required>
116 </Option>
117 <Option>
118 <Name>sortmeta</Name>
[6097]119 <Desc>Sort documents alphabetically by metadata for building. This will be disabled if groupsize &gt; 1.</Desc>
[6536]120 <Type>metadata</Type>
[4293]121 <Required>no</Required>
122 </Option>
123 <Option>
124 <Name>statsfile</Name>
[6097]125 <Desc>Filename or handle to print import statistics to.</Desc>
[4293]126 <Type>string</Type>
127 <Required>no</Required>
[6097]128 <Default>STDERR</Default>
[4293]129 </Option>
130 <Option>
131 <Name>verbosity</Name>
[6097]132 <Desc>Controls the quantity of output. 0=none, 3=lots.</Desc>
[4293]133 <Type>int</Type>
134 <Required>no</Required>
[6097]135 <Range>0,3</Range>
136 <Default>2</Default>
[4293]137 </Option>
138 </Arguments>
139</Info>
[6097]140
Note: See TracBrowser for help on using the repository browser.