[27709] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
| 2 | <!DOCTYPE DirectoryMetadata SYSTEM "http://greenstone.org/dtd/DirectoryMetadata/1.0/DirectoryMetadata.dtd">
|
---|
| 3 | <DirectoryMetadata><!--
|
---|
| 4 | Two examples of the syntax to use to attach metadata to files in a
|
---|
| 5 | given directory within the 'import' area.
|
---|
| 6 |
|
---|
| 7 | Copy this file to the folder where the files or interest are, and
|
---|
| 8 | then uncomment (or copy and paste) the <FileSet> block and
|
---|
| 9 | edit to suit the file name(s) and metadata values required
|
---|
| 10 | --><!--
|
---|
| 11 | Example 1:
|
---|
| 12 | Attached dc.Title and dc.Subject (x 2) to a single, named file
|
---|
| 13 | --><!--
|
---|
| 14 | <FileSet>
|
---|
| 15 | <FileName>sample-file1\.txt</FileName>
|
---|
| 16 | <Description>
|
---|
| 17 | <Metadata name="dc.Title">Sample Title</Metadata>
|
---|
| 18 | <Metadata name="dc.Subject">Subject A</Metadata>
|
---|
| 19 | <Metadata mode="accumulate" name="dc.Subject">Subject B</Metadata>
|
---|
| 20 | </Description>
|
---|
| 21 | </FileSet>
|
---|
| 22 | --><!--
|
---|
| 23 | Example 2:
|
---|
| 24 | Attached dc.Subject to all files in this folder that match the given
|
---|
| 25 | regular expression
|
---|
| 26 | --><!--
|
---|
| 27 | <FileSet>
|
---|
| 28 | <FileName>.*</FileName>
|
---|
| 29 | <Description>
|
---|
| 30 | <Metadata mode="accumulate" name="dc.Subject">Subject X</Metadata>
|
---|
| 31 | </Description>
|
---|
| 32 | </FileSet>
|
---|
| 33 | -->
|
---|
| 34 | <FileSet>
|
---|
| 35 | <FileName>Bear\.jpg</FileName>
|
---|
| 36 | <Description>
|
---|
| 37 | <Metadata mode="accumulate" name="dc.Title">Bear</Metadata>
|
---|
| 38 | <Metadata mode="accumulate" name="dc.Description">Bear in the Rocky Mountains</Metadata>
|
---|
| 39 | </Description>
|
---|
| 40 | </FileSet>
|
---|
| 41 | <FileSet>
|
---|
| 42 | <FileName>Cat\.jpg</FileName>
|
---|
| 43 | <Description>
|
---|
| 44 | <Metadata mode="accumulate" name="dc.Title">Cat</Metadata>
|
---|
| 45 | <Metadata mode="accumulate" name="dc.Description">Kathy's Kouskous</Metadata>
|
---|
| 46 | </Description>
|
---|
| 47 | </FileSet>
|
---|
| 48 | <FileSet>
|
---|
| 49 | <FileName>Cheetah\.jpg</FileName>
|
---|
| 50 | <Description>
|
---|
| 51 | <Metadata mode="accumulate" name="dc.Title">Cheetah</Metadata>
|
---|
| 52 | <Metadata mode="accumulate" name="dc.Description">Fastest land mammal</Metadata>
|
---|
| 53 | </Description>
|
---|
| 54 | </FileSet>
|
---|
| 55 | <FileSet>
|
---|
| 56 | <FileName>Fish\.jpg</FileName>
|
---|
| 57 | <Description>
|
---|
| 58 | <Metadata mode="accumulate" name="dc.Title">Fish</Metadata>
|
---|
| 59 | <Metadata mode="accumulate" name="dc.Description">Colourful fish</Metadata>
|
---|
| 60 | </Description>
|
---|
| 61 | </FileSet>
|
---|
| 62 | <FileSet>
|
---|
| 63 | <FileName>Gopher\.jpg</FileName>
|
---|
| 64 | <Description>
|
---|
| 65 | <Metadata mode="accumulate" name="dc.Title">Gopher</Metadata>
|
---|
| 66 | <Metadata mode="accumulate" name="dc.Description">Looking out over the field</Metadata>
|
---|
| 67 | </Description>
|
---|
| 68 | </FileSet>
|
---|
| 69 | <FileSet>
|
---|
| 70 | <FileName>Lemur\.jpg</FileName>
|
---|
| 71 | <Description>
|
---|
| 72 | <Metadata mode="accumulate" name="dc.Title">Lemur</Metadata>
|
---|
| 73 | <Metadata mode="accumulate" name="dc.Description">Striped tail</Metadata>
|
---|
| 74 | </Description>
|
---|
| 75 | </FileSet>
|
---|
| 76 | <FileSet>
|
---|
| 77 | <FileName>Rhino\.jpg</FileName>
|
---|
| 78 | <Description>
|
---|
| 79 | <Metadata mode="accumulate" name="dc.Title">Rhino</Metadata>
|
---|
| 80 | <Metadata mode="accumulate" name="dc.Description">Four rhinos</Metadata>
|
---|
| 81 | </Description>
|
---|
| 82 | </FileSet>
|
---|
| 83 | <FileSet>
|
---|
| 84 | <FileName>Shark\.jpg</FileName>
|
---|
| 85 | <Description>
|
---|
| 86 | <Metadata mode="accumulate" name="dc.Title">Shark</Metadata>
|
---|
| 87 | <Metadata mode="accumulate" name="dc.Description">Ancient sea creature</Metadata>
|
---|
| 88 | </Description>
|
---|
| 89 | </FileSet>
|
---|
| 90 | <FileSet>
|
---|
| 91 | <FileName>Tiger\.jpg</FileName>
|
---|
| 92 | <Description>
|
---|
| 93 | <Metadata mode="accumulate" name="dc.Title">Tiger</Metadata>
|
---|
| 94 | <Metadata mode="accumulate" name="dc.Description">A cat that likes a swim</Metadata>
|
---|
| 95 | </Description>
|
---|
| 96 | </FileSet>
|
---|
| 97 | </DirectoryMetadata>
|
---|