source: main/trunk/gli/metadata/greenstone.mds@ 23433

Last change on this file since 23433 was 23433, checked in by ak19, 13 years ago

GLI now has a gs.FilenameEncoding metadata field which appears like all the others in GLI's EnrichPane, but is unique in that this metadata (once set, changed or removed) must be applied to the affected filenames in the Collection Tree. More importantly, the changes made for this are to allow GLI's java code to interact with the recent changes to Perl where strings were made unicode-aware (for proper regex matching) but which required other changes elsewhere. To still support filenames with different encodings Perl used URL encoded versions of filenames representing characters' code point values in URL encoding. This required that GLI write out URL encoded filenames to the metadata.xml files that are associated with each folder level of a collection, so that Perl can read them. In this way, they can both speak of the same filenames. Only works on unicode 16 (such as latin-1), non-UTF8 systems. The latter is a requirement since Java uses the filesystem encoding from startup. If it is UTF8, non-recognised characters are replaced by the invalid char for UTF8. This process being destructive, we can't get the original filenames' bytecodes back. The changes made to GLI will work on Windows which is UTF-16 (windows codepage 1252), presumably also Macs (some kind of UTF-16) and also works on Native Latin 1 Linux systems. UTF-8 Linux systems need to be reconfigured to Native Latin-1, or if not installed, an administrator can install it easily.

  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
RevLine 
[12950]1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE MetadataSet SYSTEM "http://www.greenstone.org/dtd/MetadataSet/1.0/MetadataSet.dtd">
3<MetadataSet contact="" creator="" family="" lastchanged="Tue Sep 05 14:40:36 NZST 2006 - kjdon on kanuka" namespace="gs">
[21879]4 <SetLanguage code="en">
5 <Name>Greenstone metadata set</Name>
6 <Description>Some special elements particular to Greenstone.</Description>
7 </SetLanguage>
8 <SetLanguage code="vi">
9 <Name>Bộ siêu dữ liệu riêng của Greenstone</Name>
10 <Description>Một số yếu tố riêng biệt cho Greenstone.</Description>
11 </SetLanguage>
12 <Element name="DocumentHeader">
13 <Language code="en">
14 <Attribute name="label">Document Header</Attribute>
15 <Attribute name="definition">Headers that will be added to document display. For example, use this to include stylesheets in the document display. The content should be escaped HTML.</Attribute>
16 <Attribute name="comment">The _document:documentheader_ macro will be set to the value of this metadata.</Attribute>
17 </Language>
18 <Language code="vi">
19 <Attribute name="label">Tiêu đề tài liệu</Attribute>
20 <Attribute name="definition">Tiêu đề được bổ sung vào phần hiển thị của tài liệu. Thí dụ, sử dụng điều này để đưa stylesheets vào trong việc hiển thị tài liệu. Nội dung cần là escaped HTML.</Attribute>
21 <Attribute name="comment">Macro _document:documentheader_ sẜ được thiết lập cho giá trị của siêu dữ liệu này</Attribute>
22 </Language>
23 </Element>
[21881]24 <Element name="OAIDateStamp">
25 <Language code="en">
26 <Attribute name="label">OAI DateStamp</Attribute>
[21979]27 <Attribute name="definition">The datestamp of the document to be used by the OAI server. Format must be YYYY-MM-DD. If not defined, lastmodified will be used instead.</Attribute>
[21881]28 </Language>
29 </Element>
[22207]30 <Element name="OAIResourceURL">
31 <Language code="en">
32 <Attribute name="label">OAI Resource URL</Attribute>
33 <Attribute name="definition">The URL for the document to be used for dc:identifier. If not defined, a URL to the file defined by srclink_file metadata will be used instead. If no srclink_file either, then a URL to the Greenstone version of the document will be used.</Attribute>
34 </Language>
35 </Element>
[22648]36 <Element name="allowPrinting">
37 <Language code="en">
38 <Attribute name="label">Allow Printing</Attribute>
39 <Attribute name="definition">Controls whether or not a particular document can be printed from within the Realistic Books software. Defaults to 'true' (i.e allow printing); set to 'false' to prevent this.</Attribute>
40 </Language>
41 </Element>
[23393]42 <Element name="filenameEncoding" accumulating="false">
43 <Language code="en">
44 <Attribute name="label">Filename Encoding</Attribute>
[23433]45 <Attribute name="definition">The encoding of the filename. If this is known, it can be manually set here.</Attribute>
46 <Attribute name="comment">If not manually specified, Greenstone will try to guess the encoding of the filename upon building, which may or may not be correct.</Attribute>
[23393]47 </Language>
48 </Element>
49
[12950]50</MetadataSet>
Note: See TracBrowser for help on using the repository browser.