[24798] | 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>
|
---|
| 79 | <gsf:option name="TOC" value="false"/>
|
---|
| 80 | <xsl:template name="additionalHeaderContent">
|
---|
| 81 | <!-- jQuery must be included before Annotator -->
|
---|
| 82 | <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/jquery.js"><xsl:text> </xsl:text></script>
|
---|
| 83 |
|
---|
| 84 | <!-- If you're sure your users will only be using browsers modern
|
---|
| 85 | enough to have their own JSON.parse and JSON.stringify
|
---|
| 86 | implementations you can skip this -->
|
---|
| 87 | <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/json2.js"><xsl:text> </xsl:text></script>
|
---|
| 88 |
|
---|
| 89 | <!-- The main Annotator script -->
|
---|
| 90 | <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.min.js"><xsl:text> </xsl:text></script>
|
---|
| 91 |
|
---|
| 92 | <!-- Annotator's styling and images -->
|
---|
| 93 | <link rel="stylesheet" type="text/css" href="sites/localsite/collect/peijones/js/annotator/pkg/annotator.min.css"/>
|
---|
| 94 |
|
---|
| 95 | <!-- The following plugins are entirely optional -->
|
---|
| 96 |
|
---|
| 97 | <!-- The Store plugin. Saves annotations to a remote backend -->
|
---|
| 98 | <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.store.min.js"><xsl:text> </xsl:text></script>
|
---|
| 99 |
|
---|
| 100 | <!-- The Auth plugin. Allows users of Annotator to authenticate themselves
|
---|
| 101 | to the remote backend -->
|
---|
| 102 | <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.auth.min.js"><xsl:text> </xsl:text></script>
|
---|
| 103 |
|
---|
| 104 | <!-- The Permissions plugin. See who created which annotation and create
|
---|
| 105 | annotations as a specified user -->
|
---|
| 106 | <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.permissions.min.js"><xsl:text> </xsl:text></script>
|
---|
| 107 |
|
---|
| 108 | <!-- The Tags plugin. Edit and display tag keywords on annotations -->
|
---|
| 109 | <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.tags.min.js"><xsl:text> </xsl:text></script>
|
---|
| 110 |
|
---|
| 111 | <!-- The Markdown plugin. Treat annotation text as Markdown -->
|
---|
| 112 | <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/showdown.js"><xsl:text> </xsl:text></script>
|
---|
| 113 | <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.markdown.min.js"><xsl:text> </xsl:text></script>
|
---|
| 114 |
|
---|
| 115 | <!--<script src="interfaces/{$interface_name}/js/jquery-1.4.2.js" type="text/javascript"><xsl:text> </xsl:text></script>-->
|
---|
| 116 | <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"/>
|
---|
| 117 | <script type="text/javascript">
|
---|
| 118 | <xsl:text disable-output-escaping="yes">
|
---|
| 119 | function readyImagesForZoom()
|
---|
| 120 | {
|
---|
| 121 | var noZoom = document.getElementById("noZoom");
|
---|
| 122 | var wrap = document.getElementById("wrap");
|
---|
| 123 |
|
---|
| 124 | if(!noZoom || !wrap)
|
---|
| 125 | {
|
---|
| 126 | return;
|
---|
| 127 | }
|
---|
| 128 |
|
---|
| 129 | noZoom.style.display = "none";
|
---|
| 130 | wrap.style.display = "";
|
---|
| 131 | var smallImageDiv = document.getElementById("small");
|
---|
| 132 | var smallImage = smallImageDiv.getElementsByTagName("img")[0];
|
---|
| 133 | smallImageDiv.style.width = smallImage.clientWidth + "px";
|
---|
| 134 | smallImageDiv.style.height = smallImage.clientHeight + "px";
|
---|
| 135 | var multiplier = largeImageHeight / smallImage.clientHeight;
|
---|
| 136 | $("#wrap").anythingZoomer({
|
---|
| 137 | expansionSize:50,
|
---|
| 138 | speedMultiplier:multiplier
|
---|
| 139 | });
|
---|
| 140 | }
|
---|
| 141 | function addZoom()
|
---|
| 142 | {
|
---|
| 143 | var wrapper = document.getElementById("wrap");
|
---|
| 144 | var noZoom = document.getElementById("noZoom");
|
---|
| 145 |
|
---|
| 146 | if(!noZoom || !wrapper)
|
---|
| 147 | {
|
---|
| 148 | return;
|
---|
| 149 | }
|
---|
| 150 |
|
---|
| 151 | noZoom.style.display = "none";
|
---|
| 152 | wrapper.style.display = "block";
|
---|
| 153 | var option = document.getElementById("zoomOption");
|
---|
| 154 | option.setAttribute("onclick", "removeZoom();");
|
---|
| 155 | }
|
---|
| 156 | function removeZoom()
|
---|
| 157 | {
|
---|
| 158 | var wrapper = document.getElementById("wrap");
|
---|
| 159 | var noZoom = document.getElementById("noZoom");
|
---|
| 160 |
|
---|
| 161 | if(!noZoom || !wrapper)
|
---|
| 162 | {
|
---|
| 163 | return;
|
---|
| 164 | }
|
---|
| 165 |
|
---|
| 166 | wrapper.style.display = "none";
|
---|
| 167 | noZoom.style.display = "block";
|
---|
| 168 | var option = document.getElementById("zoomOption");
|
---|
| 169 | option.setAttribute("onclick", "addZoom();");
|
---|
| 170 | }
|
---|
| 171 | </xsl:text>
|
---|
| 172 | </script>
|
---|
| 173 | <script text="text/javascript">
|
---|
| 174 | <xsl:text disable-output-escaping="yes">
|
---|
| 175 | function initAnnotator()
|
---|
| 176 | {
|
---|
| 177 | jQuery(function ($) {
|
---|
| 178 | //alert(typeof $.fn.annotator);
|
---|
| 179 | if (typeof $.fn.annotator !== 'function') {
|
---|
| 180 | alert("Ooops! it looks like you haven't built the Annotator concatenation file. " +
|
---|
| 181 | "Either download a tagged release from GitHub, or modify the Cakefile to point " +
|
---|
| 182 | "at your copy of the YUI compressor and run `cake package`.");
|
---|
| 183 | } else {
|
---|
| 184 | // This is the important bit: how to create the annotator and add
|
---|
| 185 | // plugins
|
---|
| 186 | $('#gs-document-text').annotator()
|
---|
| 187 | .annotator('addPlugin', 'Permissions')
|
---|
| 188 | .annotator('addPlugin', 'Markdown')
|
---|
| 189 | //.annotator('addPlugin', 'Auth')
|
---|
| 190 | .annotator('addPlugin', 'Tags');
|
---|
| 191 |
|
---|
| 192 | $('#gs-document-text').data('annotator').plugins['Permissions'].setUser("");
|
---|
| 193 | }
|
---|
| 194 | });
|
---|
| 195 | }
|
---|
| 196 | </xsl:text>
|
---|
| 197 | </script>
|
---|
| 198 | </xsl:template>
|
---|
| 199 | <xsl:template match="documentNode" mode="document">
|
---|
| 200 | <!-- Get the photo notes for this document node -->
|
---|
| 201 | <gsf:variable-struct name="photoNotes">
|
---|
| 202 | <gsf:metadata multiple="true" name="gsimg.photoNote" separator=", "/>
|
---|
| 203 | </gsf:variable-struct>
|
---|
| 204 |
|
---|
| 205 | <!-- Get details about the image for zooming -->
|
---|
| 206 | <h3>
|
---|
| 207 | <gsf:choose-metadata>
|
---|
| 208 | <gsf:metadata name="dc.Title"/>
|
---|
| 209 | <gsf:metadata name="ex.Title"/>
|
---|
| 210 | </gsf:choose-metadata>
|
---|
| 211 | </h3>
|
---|
| 212 | <xsl:variable name="imageWidth">
|
---|
| 213 | <gsf:choose-metadata>
|
---|
| 214 | <gsf:metadata name="ImageWidth"/>
|
---|
| 215 | <gsf:default>-1</gsf:default>
|
---|
| 216 | </gsf:choose-metadata>
|
---|
| 217 | </xsl:variable>
|
---|
| 218 | <xsl:variable name="imageHeight">
|
---|
| 219 | <gsf:choose-metadata>
|
---|
| 220 | <gsf:metadata name="ImageHeight"/>
|
---|
| 221 | <gsf:default>-1</gsf:default>
|
---|
| 222 | </gsf:choose-metadata>
|
---|
| 223 | </xsl:variable>
|
---|
| 224 | <xsl:variable name="screenImageWidth">
|
---|
| 225 | <gsf:choose-metadata>
|
---|
| 226 | <gsf:metadata name="ScreenWidth"/>
|
---|
| 227 | <gsf:default>-1</gsf:default>
|
---|
| 228 | </gsf:choose-metadata>
|
---|
| 229 | </xsl:variable>
|
---|
| 230 | <xsl:variable name="screenImageHeight">
|
---|
| 231 | <gsf:choose-metadata>
|
---|
| 232 | <gsf:metadata name="ScreenHeight"/>
|
---|
| 233 | <gsf:default>-1</gsf:default>
|
---|
| 234 | </gsf:choose-metadata>
|
---|
| 235 | </xsl:variable>
|
---|
| 236 | <script type="text/javascript">
|
---|
| 237 | <xsl:text>largeImageHeight =</xsl:text><xsl:value-of select="$imageHeight"/><xsl:text>;</xsl:text>
|
---|
| 238 | <xsl:text>largeImageWidth =</xsl:text><xsl:value-of select="$imageWidth"/><xsl:text>;</xsl:text>
|
---|
| 239 | </script>
|
---|
| 240 | <div id="noZoom" style="display:block;">
|
---|
| 241 | <gsf:metadata name="screenicon"/>
|
---|
| 242 | </div>
|
---|
| 243 | <xsl:if test="$imageHeight != -1">
|
---|
| 244 | <div id="wrap" style="display:none">
|
---|
| 245 | <div id="small" style="width: {$screenImageWidth}; height: {$screenImageHeight};"><gsf:metadata name="screenicon"/></div>
|
---|
| 246 | <div id="mover">
|
---|
| 247 | <div id="overlay"><xsl:text/></div>
|
---|
| 248 | <div id="large">
|
---|
| 249 | <img style="width: {$imageWidth}; height: {$imageHeight};">
|
---|
| 250 | <xsl:attribute name="src">
|
---|
| 251 | <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"/>
|
---|
| 252 | </xsl:attribute>
|
---|
| 253 | </img>
|
---|
| 254 | </div>
|
---|
| 255 | </div>
|
---|
| 256 | </div>
|
---|
| 257 | </xsl:if>
|
---|
| 258 | </xsl:template>
|
---|
| 259 | </format>
|
---|
| 260 | </display>
|
---|
| 261 | <replaceListRef id="gs2-standard"/>
|
---|
| 262 | <replaceListRef id="gs2-image"/>
|
---|
| 263 | <serviceRackList>
|
---|
| 264 | <!-- comment out the following serviceRack if you want to disable OAI for this collection -->
|
---|
| 265 | <serviceRack name="OAIPMH">
|
---|
| 266 | <ListMetadataFormats>
|
---|
| 267 | <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here.
|
---|
| 268 | The support of unqualified Dublin Core metadata set is mandatory in the oai specification.
|
---|
| 269 | -->
|
---|
| 270 | <metadataFormat metadataPrefix="oai_dc">
|
---|
| 271 | <metadataPrefix>oai_dc</metadataPrefix>
|
---|
| 272 | <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema>
|
---|
| 273 | <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace>
|
---|
| 274 | <!--<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>
|
---|
| 275 | -->
|
---|
| 276 | <mappingList>
|
---|
| 277 | <!--
|
---|
| 278 | The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B>
|
---|
| 279 | The first metadata name is medatory; if there is no mapped name followed, then the first name must be used by the records and
|
---|
| 280 | searchable in the database, otherwise it is the mapped name stored in the database. The number of mapping elements matches the
|
---|
| 281 | number of external metadata of the records. If only one name is present, the returned metadata will use this name plus the retrieved value;
|
---|
| 282 | if both <A>,<B> are present, the returned metadata will use <A>'s name plus <B>'s value retrieved from database.
|
---|
| 283 |
|
---|
| 284 | **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.
|
---|
| 285 |
|
---|
| 286 | **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.
|
---|
| 287 | -->
|
---|
| 288 | <mapping>dc.Title,Title</mapping>
|
---|
| 289 | <!-- 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. -->
|
---|
| 290 | </mappingList>
|
---|
| 291 | </metadataFormat>
|
---|
| 292 | </ListMetadataFormats>
|
---|
| 293 | </serviceRack>
|
---|
| 294 | </serviceRackList>
|
---|
| 295 | </CollectionConfig>
|
---|