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

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

Revised default import arguments to include one range example

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