1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
3 | <metadataList>
|
---|
4 | <metadata lang="en" name="creator"/>
|
---|
5 | <metadata lang="en" name="maintainer"/>
|
---|
6 | <metadata lang="en" name="public">true</metadata>
|
---|
7 | </metadataList>
|
---|
8 | <displayItemList>
|
---|
9 | <displayItem assigned="true" lang="en" name="name">Pei-Jones-Flat</displayItem>
|
---|
10 | </displayItemList>
|
---|
11 | <search type="mgpp">
|
---|
12 | <level name="document">
|
---|
13 | <displayItem lang="en" name="name">document</displayItem>
|
---|
14 | </level>
|
---|
15 | <level name="section">
|
---|
16 | <displayItem lang="en" name="name">section</displayItem>
|
---|
17 | </level>
|
---|
18 | <defaultLevel name="section"/>
|
---|
19 | <index name="text">
|
---|
20 | <displayItem lang="en" name="name">text</displayItem>
|
---|
21 | </index>
|
---|
22 | <index name="Title">
|
---|
23 | <displayItem lang="en" name="name">titles</displayItem>
|
---|
24 | </index>
|
---|
25 | <index name="Source">
|
---|
26 | <displayItem lang="en" name="name">filenames</displayItem>
|
---|
27 | </index>
|
---|
28 | <index name="Plugin"/>
|
---|
29 | <defaultIndex name="text"/>
|
---|
30 | <indexOption>
|
---|
31 | <option name="accentfold"/>
|
---|
32 | <option name="casefold"/>
|
---|
33 | <option name="stem"/>
|
---|
34 | </indexOption>
|
---|
35 | <searchType name="plain"/>
|
---|
36 | <searchType name="simpleform"/>
|
---|
37 | <searchType name="advancedform"/>
|
---|
38 | <format><gsf:template match="documentNode"><td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td><td><gsf:switch><gsf:metadata name="Title" select="ancestors" separator=": "/><gsf:when test="exists"><gsf:metadata name="Title" select="ancestors" separator=": "/>:</gsf:when></gsf:switch><gsf:link type="document"><gsf:metadata name="Title"/></gsf:link></td></gsf:template> </format>
|
---|
39 | </search>
|
---|
40 | <infodb type="gdbm"/>
|
---|
41 | <import>
|
---|
42 | <pluginList>
|
---|
43 | <plugin name="ZIPPlugin"/>
|
---|
44 | <plugin name="GreenstoneXMLPlugin"/>
|
---|
45 | <plugin name="TextPlugin"/>
|
---|
46 | <plugin name="HTMLPlugin"/>
|
---|
47 | <plugin name="EmailPlugin"/>
|
---|
48 | <plugin name="PDFPlugin"/>
|
---|
49 | <plugin name="RTFPlugin"/>
|
---|
50 | <plugin name="WordPlugin"/>
|
---|
51 | <plugin name="PostScriptPlugin"/>
|
---|
52 | <plugin name="PowerPointPlugin"/>
|
---|
53 | <plugin name="ExcelPlugin"/>
|
---|
54 | <plugin name="ImagePlugin"/>
|
---|
55 | <plugin name="ISISPlugin"/>
|
---|
56 | <plugin name="NulPlugin"/>
|
---|
57 | <plugin name="OAIPlugin"/>
|
---|
58 | <plugin name="HTMLImagePlugin"/>
|
---|
59 | <plugin name="MetadataXMLPlugin"/>
|
---|
60 | <plugin name="ArchivesInfPlugin"/>
|
---|
61 | <plugin name="DirectoryPlugin"/>
|
---|
62 | </pluginList>
|
---|
63 | </import>
|
---|
64 | <browse>
|
---|
65 | <classifier name="List">
|
---|
66 | <option name="-metadata" value="dc.Title;Title"/>
|
---|
67 | <option name="-partition_type_within_level" value="approximate_size"/>
|
---|
68 | <option name="-bookshelf_type" value="never"/>
|
---|
69 | </classifier>
|
---|
70 | <classifier name="AZCompactList">
|
---|
71 | <option name="-metadata" value="Source"/>
|
---|
72 | <option name="-removesuffix" value="(?i)\\..*"/>
|
---|
73 | <option name="-buttonname" value="Source"/>
|
---|
74 | </classifier>
|
---|
75 | <format><gsf:template match="documentNode"><td valign="top"><gsf:link type="document"><gsf:icon type="document"/></gsf:link></td><td valign="top"><gsf:link type="source"><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata></gsf:link></td><td valign="top"><gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/><gsf:default>Untitled</gsf:default></gsf:choose-metadata><gsf:switch><gsf:metadata name="Source"/><gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when></gsf:switch></td></gsf:template><gsf:template match="classifierNode"><td valign="top"><gsf:link type="classifier"><gsf:icon type="classifier"/></gsf:link></td><td valign="top"><gsf:metadata name="srclink"/><gsf:choose-metadata><gsf:metadata name="thumbicon"/><gsf:metadata name="srcicon"/></gsf:choose-metadata><gsf:metadata name="/srclink"/></td><td valign="top"><gsf:choose-metadata><gsf:metadata name="dc.Title"/><gsf:metadata name="exp.Title"/><gsf:metadata name="Title"/><gsf:default>Untitled</gsf:default></gsf:choose-metadata><gsf:switch><gsf:metadata name="Source"/><gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when></gsf:switch></td></gsf:template><gsf:template match="classifierNode" mode="horizontal"><gsf:link type="horizontal"><gsf:metadata name="Title"/></gsf:link></gsf:template></format>
|
---|
76 | </browse>
|
---|
77 | <display>
|
---|
78 | <format><gsf:option name="TOC" value="false"/> <xsl:template name="additionalHeaderContent"> <#comment/> <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/jquery.js"><xsl:text> </xsl:text></script> <#comment/> <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/json2.js"><xsl:text> </xsl:text></script> <#comment/> <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.min.js"><xsl:text> </xsl:text></script> <#comment/> <link href="sites/localsite/collect/peijones/js/annotator/pkg/annotator.min.css" rel="stylesheet" type="text/css"/> <#comment/> <#comment/> <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.store.min.js"><xsl:text> </xsl:text></script> <#comment/> <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.auth.min.js"><xsl:text> </xsl:text></script> <#comment/> <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.permissions.min.js"><xsl:text> </xsl:text></script> <#comment/> <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.tags.min.js"><xsl:text> </xsl:text></script> <#comment/> <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/showdown.js"><xsl:text> </xsl:text></script> <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.markdown.min.js"><xsl:text> </xsl:text></script> <#comment/> <script src="sites/localsite/collect/peijones/js/documentmaker/zoomer.jquery.js" type="text/javascript"><xsl:text> </xsl:text></script> <link href="sites/localsite/collect/peijones/style/style.css" rel="stylesheet" type="text/css"/> <script type="text/javascript"> <xsl:text disable-output-escaping="yes"> function readyImagesForZoom() { var noZoom = document.getElementById("noZoom"); var wrap = document.getElementById("wrap"); if(!noZoom || !wrap) { return; } noZoom.style.display = "none"; wrap.style.display = ""; var smallImageDiv = document.getElementById("small"); var smallImage = smallImageDiv.getElementsByTagName("img")[0]; smallImageDiv.style.width = smallImage.clientWidth + "px"; smallImageDiv.style.height = smallImage.clientHeight + "px"; var multiplier = largeImageHeight / smallImage.clientHeight; $("#wrap").anythingZoomer({ expansionSize:50, speedMultiplier:multiplier }); } function addZoom() { var wrapper = document.getElementById("wrap"); var noZoom = document.getElementById("noZoom"); if(!noZoom || !wrapper) { return; } noZoom.style.display = "none"; wrapper.style.display = "block"; var option = document.getElementById("zoomOption"); option.setAttribute("onclick", "removeZoom();"); } function removeZoom() { var wrapper = document.getElementById("wrap"); var noZoom = document.getElementById("noZoom"); if(!noZoom || !wrapper) { return; } wrapper.style.display = "none"; noZoom.style.display = "block"; var option = document.getElementById("zoomOption"); option.setAttribute("onclick", "addZoom();"); } </xsl:text> </script> <script text="text/javascript"> <xsl:text disable-output-escaping="yes"> function initAnnotator() { jQuery(function ($) { //alert(typeof $.fn.annotator); if (typeof $.fn.annotator !== 'function') { alert("Ooops! it looks like you haven't built the Annotator concatenation file. " + "Either download a tagged release from GitHub, or modify the Cakefile to point " + "at your copy of the YUI compressor and run `cake package`."); } else { // This is the important bit: how to create the annotator and add // plugins $('#gs-document-text').annotator() .annotator('addPlugin', 'Permissions') .annotator('addPlugin', 'Markdown') //.annotator('addPlugin', 'Auth') .annotator('addPlugin', 'Tags'); $('#gs-document-text').data('annotator').plugins['Permissions'].setUser(""); } }); } </xsl:text> </script> </xsl:template> <xsl:template match="documentNode" mode="document"> <#comment/> <gsf:variable-struct name="photoNotes"> <gsf:metadata multiple="true" name="gsimg.photoNote" separator=", "/> </gsf:variable-struct> <#comment/> <h3> <gsf:choose-metadata> <gsf:metadata name="dc.Title"/> <gsf:metadata name="ex.Title"/> </gsf:choose-metadata> </h3> <xsl:variable name="imageWidth"> <gsf:choose-metadata> <gsf:metadata name="ImageWidth"/> <gsf:default>-1</gsf:default> </gsf:choose-metadata> </xsl:variable> <xsl:variable name="imageHeight"> <gsf:choose-metadata> <gsf:metadata name="ImageHeight"/> <gsf:default>-1</gsf:default> </gsf:choose-metadata> </xsl:variable> <xsl:variable name="screenImageWidth"> <gsf:choose-metadata> <gsf:metadata name="ScreenWidth"/> <gsf:default>-1</gsf:default> </gsf:choose-metadata> </xsl:variable> <xsl:variable name="screenImageHeight"> <gsf:choose-metadata> <gsf:metadata name="ScreenHeight"/> <gsf:default>-1</gsf:default> </gsf:choose-metadata> </xsl:variable> <script type="text/javascript"> <xsl:text>largeImageHeight =</xsl:text><xsl:value-of select="$imageHeight"/><xsl:text>;</xsl:text> <xsl:text>largeImageWidth =</xsl:text><xsl:value-of select="$imageWidth"/><xsl:text>;</xsl:text> </script> <div id="noZoom" style="display:block;"> <gsf:metadata name="screenicon"/> </div> <xsl:if test="$imageHeight != -1"> <div id="wrap" style="display:none"> <div id="small" style="width: {$screenImageWidth}; height: {$screenImageHeight};"><gsf:metadata name="screenicon"/></div> <div id="mover"> <div id="overlay"><xsl:text/></div> <div id="large"> <img style="width: {$imageWidth}; height: {$imageHeight};"> <xsl:attribute name="src"> <xsl:value-of disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<gsf:metadata name="assocfilepath"/>/<gsf:metadata name="srclinkFile"/> </xsl:attribute> </img> </div> </div> </div> </xsl:if> </xsl:template> </format>
|
---|
79 | </display>
|
---|
80 | <replaceListRef id="gs2-standard"/>
|
---|
81 | <replaceListRef id="gs2-image"/>
|
---|
82 | <serviceRackList>
|
---|
83 | <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
84 | <serviceRack name="OAIPMH">
|
---|
85 | <ListMetadataFormats>
|
---|
86 | <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
87 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
88 | -->
|
---|
89 | <metadataFormat metadataPrefix="oai_dc">
|
---|
90 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
91 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
92 | <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
|
---|
93 | <!--<metadataElements>dc.Title,dc.Creator,dc.Subject,dc.Description,dc.Publisher,dc.Contributor,dc.Date,dc.Type,dc.Format,dc.Identifier,dc.Source,dc.Language,dc.Relation,dc.Coverage,dc.Rights</metadataElements>
|
---|
94 | -->
|
---|
95 | <mappingList>
|
---|
96 | <!--
|
---|
97 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
98 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
99 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
100 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
101 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
102 |
|
---|
103 | **Bear in mind: if this mapping list is not present, the standard dc. metadata names (15 in total) will be used to retrieve metadata in the database.
|
---|
104 |
|
---|
105 | **The only case when this mapping is not present is that: 1. this metadata format is oai_dc; 2. the metadata is also stored in the database by Dublin Core's names.
|
---|
106 | -->
|
---|
107 | <mapping>dc.Title,Title</mapping>
|
---|
108 | <!-- This mapping example means that the dc.Title is requested and the value of the metadata Title, which is used in this repository, is returned as response. -->
|
---|
109 | </mappingList>
|
---|
110 | </metadataFormat>
|
---|
111 | </ListMetadataFormats>
|
---|
112 | </serviceRack>
|
---|
113 | </serviceRackList>
|
---|
114 | </CollectionConfig>
|
---|