Ticket #809 (new defect)

Opened 7 years ago

Need 2 ways of specifying filepaths in metadata.xml

Reported by: ak19 Owned by: nobody
Priority: moderate Milestone:
Component: Collection Building Severity: major
Keywords: Cc:

Description

At present, we've decided to stipulate that the FileName? element in metadata.xml (which represents a regex filepath) will accept only URL style slashes.

See  http://wiki.greenstone.org/wiki/index.php/Building_Greenstone_collections#How_to_manually_specify_filenames_in_metadata.xml

for an example metadata.xml file.

In future, the idea is to come out with a new version of the DTD for the metadata.xml file, version 1.1 (the present one is at  http://www.greenstone.org/dtd/DirectoryMetadata/1.0/DirectoryMetadata.dtd).

This will have 2 FileName? related elements: FileName? and FileNameRegex? (FileNameRe?). In the former, the user can specify a plain filepath, and we'll have to define an attribute setting called OS wherein the user can stipulate what OS (windows, linux) the filepath represents.

FileNameRegex? will behave like the current FileName? element, accepting regular expression that represent filepaths and requiring these to be in URL format.

See also ticket 807, which lists the files changed for previous issues to do with this matter.

Note: See TracTickets for help on using tickets.