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
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 <!ELEMENT HiddenGLI (#PCDATA)>
15]>
16
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>
23 <Desc>{import.achivedir}</Desc>
24 <Type>string</Type>
25 <Required>no</Required>
26 <HiddenGLI>yes</HiddenGLI>
27 </Option>
28 <Option>
29 <Name>collectdir</Name>
30 <Desc>Collection directory.</Desc>
31 <Type>string</Type>
32 <Required>no</Required>
33 <Default>/research/jmt12/gsdl/collect</Default>
34 <HiddenGLI>yes</HiddenGLI>
35 </Option>
36 <Option>
37 <Name>debug</Name>
38 <Desc>Print imported text to STDOUT.</Desc>
39 <Type>flag</Type>
40 <Required>no</Required>
41 </Option>
42 <Option>
43 <Name>faillog</Name>
44 <Desc>Fail log filename. This log receives the filenames of any files which fail to be processed.</Desc>
45 <Type>string</Type>
46 <Required>no</Required>
47 <Default>&lt;collectdir&gt;/colname/etc/fail.log</Default>
48 </Option>
49 <Option>
50 <Name>groupsize</Name>
51 <Desc>Number of import documents to group into one XML file.</Desc>
52 <Type>int</Type>
53 <Required>no</Required>
54 <Default>1</Default>
55 </Option>
56 <Option>
57 <Name>gzip</Name>
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>
59 <Type>flag</Type>
60 <Required>no</Required>
61 </Option>
62 <Option>
63 <Name>importdir</Name>
64 <Desc>Where the original material lives.</Desc>
65 <Type>string</Type>
66 <Required>no</Required>
67 <HiddenGLI>yes</HiddenGLI>
68 </Option>
69 <Option>
70 <Name>keepold</Name>
71 <Desc>Will not destroy the current contents of the archives directory (the default).</Desc>
72 <Type>flag</Type>
73 <Required>no</Required>
74 </Option>
75 <Option>
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>
82 <Name>maxdocs</Name>
83 <Desc>Maximum number of documents to import.</Desc>
84 <Type>int</Type>
85 <Required>no</Required>
86 </Option>
87 <Option>
88 <Name>OIDtype</Name>
89 <Desc>The method to use when generating unique identifiers for each document.</Desc>
90 <Type>enum</Type>
91 <Required>no</Required>
92 <List>
93 <Value>
94 <Name>hash</Name>
95 <Desc>Hashes the contents of the file. Document identifier will be the same every time the collection is imported.</Desc>
96 </Value>
97 <Value>
98 <Name>incremental</Name>
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>
100 </Value>
101 </List>
102 <Default>hash</Default>
103 </Option>
104 <Option>
105 <Name>out</Name>
106 <Desc>Filename or handle to print output status to.</Desc>
107 <Type>string</Type>
108 <Required>no</Required>
109 <Default>STDERR</Default>
110 </Option>
111 <Option>
112 <Name>removeold</Name>
113 <Desc>Will remove the old contents of the archives directory -- use with care.</Desc>
114 <Type>flag</Type>
115 <Required>no</Required>
116 </Option>
117 <Option>
118 <Name>sortmeta</Name>
119 <Desc>Sort documents alphabetically by metadata for building. This will be disabled if groupsize &gt; 1.</Desc>
120 <Type>metadata</Type>
121 <Required>no</Required>
122 </Option>
123 <Option>
124 <Name>statsfile</Name>
125 <Desc>Filename or handle to print import statistics to.</Desc>
126 <Type>string</Type>
127 <Required>no</Required>
128 <Default>STDERR</Default>
129 </Option>
130 <Option>
131 <Name>verbosity</Name>
132 <Desc>Controls the quantity of output. 0=none, 3=lots.</Desc>
133 <Type>int</Type>
134 <Required>no</Required>
135 <Range>0,3</Range>
136 <Default>2</Default>
137 </Option>
138 </Arguments>
139</Info>
140
Note: See TracBrowser for help on using the repository browser.