Changeset 37838 for gs3-installations/thewillow
- Timestamp:
- 2023-07-29T17:57:34+12:00 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/thewillow/trunk/sites/thewillow/collect/community-contributions/etc/collectionConfig.xml
r37725 r37838 1 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" xmlns:gslib="http://www.greenstone.org/skinning"> 2 <CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:gslib="http://www.greenstone.org/skinning" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 <!-- 4 <security default_access="private" scope="collection"> 5 <exception> 6 <group name="thewillow"/> 7 </exception> 8 </security> 9 --> 3 10 <metadataList> 4 <metadata name="creator"></metadata>5 <metadata name="maintainer"></metadata>6 <metadata name="public">true</metadata>11 <metadata lang="en" name="creator"/> 12 <metadata lang="en" name="maintainer"/> 13 <metadata lang="en" name="public">true</metadata> 7 14 </metadataList> 8 15 <displayItemList> 9 <displayItem assigned="true" lang="en" name="name">community-contributions</displayItem> 10 <displayItem assigned="true" lang="en" name="description"></displayItem> 11 <!-- shortDescription is used as a tooltip for collection icon on home page--> 12 <displayItem assigned="true" lang="en" name="shortDescription">community-contributions</displayItem> 16 <displayItem lang="en" name="name">community-contributions</displayItem> 17 <displayItem lang="en" name="shortDescription">community-contributions</displayItem> 13 18 </displayItemList> 14 <!-- Global format statement -->15 19 <format> 16 <gsf:template name="choose-title"> 17 <gsf:choose-metadata> 18 <gsf:metadata name="tw.Title"/> 19 <gsf:metadata name="dc.Title"/> 20 <gsf:metadata name="exp.Title"/> 21 <gsf:metadata name="ex.dc.Title"/> 22 <gsf:metadata name="Title"/> 23 <gsf:default>Untitled</gsf:default> 24 </gsf:choose-metadata> 25 </gsf:template> 26 <!-- modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message --> 27 <xsl:template name="coll-description"> 28 <p><gslib:collectionDescriptionTextAndServicesLinks/></p> 29 <xsl:variable name="raw_date"><gslib:collectionMeta name="buildDate"/></xsl:variable> 30 <xsl:variable name="formatted_date"><xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/></xsl:variable> 31 <xsl:variable name="numdocs"><gslib:collectionMeta name="numDocs"/></xsl:variable> 32 <p><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/></p> 33 </xsl:template> 34 </format> 20 <gsf:template name="choose-title"> 21 <gsf:choose-metadata> 22 <gsf:metadata name="tw.Title"/> 23 <gsf:metadata name="dc.Title"/> 24 <gsf:metadata name="exp.Title"/> 25 <gsf:metadata name="ex.dc.Title"/> 26 <gsf:metadata name="Title"/> 27 <gsf:default>Untitled</gsf:default> 28 </gsf:choose-metadata> 29 </gsf:template> 30 <!-- 31 modify the collection description template to output the "this collection contains X documents and was last built Y days ago" message 32 --> 33 <xsl:template name="coll-description"> 34 <p> 35 <gslib:collectionDescriptionTextAndServicesLinks/> 36 </p> 37 <xsl:variable name="raw_date"> 38 <gslib:collectionMeta name="buildDate"/> 39 </xsl:variable> 40 <xsl:variable name="formatted_date"> 41 <xsl:value-of select="util:formatTimeStamp($raw_date, 0, 3, /page/@lang)"/> 42 </xsl:variable> 43 <xsl:variable name="numdocs"> 44 <gslib:collectionMeta name="numDocs"/> 45 </xsl:variable> 46 <!-- 47 <p><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.standarddescriptiondays', concat($numdocs, ';', $formatted_date))"/></p> 48 --> 49 <p> 50 <a href="https://www.streetlifeyork.uk/sites/streetlifeyork.uk/files/styles/content_aligned/public/2022-09/g1809.png?itok=RwDJM7Gu"> 51 <img src="interfaces/{$interface_name}/images/thewillow-signage-100.png" style="float: right; margin-left: 12px;" width="180"/> 52 </a> 53 <span>â<i>Yorkâs Coney Street has a rich musical heritage; 54 from the cries of eighteenth-century street vendors to 55 the powerful tones of fine church organs, music has been 56 a central part of the streetâs soundscape for 57 centuries. If, like me, you were a York student pre-2015 58 then there is one particularly strong musical 59 association with Coney Street: the chaotic and heady mix 60 of pop, classic rock and electronica which could only be 61 found in one legendary venue:</i> The Willow 62 DiscoââLizzie Hodgson, Research Assistant, Street Life 63 project.</span> 64 </p> 65 <p>In this corner of the Streetlife York project, we have gathered 66 people's reminiscences and, where possible, artifacts associated 67 with <i>The Willow</i>. We have digitised these, and invite you to contribute further comments 68 and materials. If you have a Google 69 Account, then you're set to go for leaving comments, 70 otherwise you'll need to <a href="{$library_name}/admin/Register">Register</a> for an account 71 with the digital archive, which is via a straightforward 72 single-page form.</p> 73 <p style="width: 100%"> 74 <div style="margin: 0 auto 20px auto; width: 680px;"> 75 <video id="feature-video" controls="controls" width="680"><source src="{$library_name}/sites/{$site_name}/collect/{$collName}/video/Willow-Trailer-test-example-1080.m4v" type="video/mp4"/><source src="{$library_name}/sites/{$site_name}/collect/{$collName}/video/Willow-Trailer-test-example-1080.mov" type="video/quicktime"/>Download the<a href="{$library_name}/sites/{$site_name}/collect/{$collName}/video/Willow-Trailer-test-example-1080.mp4">MP4</a>video.</video> 76 </div> 77 </p> 78 79 80 <xsl:if test="/page/pageRequest/@subaction = 'about2'"> 81 <p style="width: 100%"> 82 <div style="margin: 0 auto 20px auto; width: 800px;"> 83 84 <gsf:script> 85 86 function seekThenPlayVideo(secs) { 87 var video = document.getElementById('feature-video'); 88 video.currentTime = secs; // seconds 89 video.play(); 90 } 91 92 </gsf:script> 93 <div style="width: 800px; margin-left: auto; margin-right: auto;"> 94 <div style="position: relative;"> 95 <div class="timeline"> 96 <gsf:div class="timeline-nav"/> 97 <gsf:div class="timeline-container"/> 98 </div> 99 </div> 100 </div> 101 102 <gsf:style src="interfaces/thewillow/timeline-example/style.css"/> 103 <gsf:script src="interfaces/thewillow/js/anime-2.2.0.min.js"/> 104 <gsf:script src="interfaces/thewillow/timeline-example/script.js"/> 105 106 </div> 107 </p> 108 </xsl:if> 109 110 </xsl:template> 111 </format> 35 112 <search type="solr"> 113 <index name="text,tw.Title,tw.Creator,tw.Description,tw.Notes"> 114 <displayItem lang="en" name="name">all text</displayItem> 115 </index> 116 <index name="tw.Title,dc.Title,ex.dc.Title,Title"> 117 <displayItem lang="en" name="name">titles</displayItem> 118 </index> 119 <index name="tw.Creator"> 120 <displayItem lang="en" name="name">contributors</displayItem> 121 </index> 122 <index name="tw.Description"> 123 <displayItem lang="en" name="name">descriptions</displayItem> 124 </index> 125 <index name="tw.Notes"> 126 <displayItem lang="en" name="name">notes</displayItem> 127 </index> 128 <!-- 129 <index name="gs.usercomment"> 130 <displayItem lang="en" name="name">comments</displayItem> 131 </index> 132 --> 133 <defaultIndex name="text,tw.Title,tw.Creator,tw.Description,tw.Notes"/> 36 134 <level name="document"> 37 135 <displayItem lang="en" name="name">document</displayItem> 38 136 </level> 39 <!--40 <level name="section">41 <displayItem lang="en" name="name">section</displayItem>42 </level>43 -->44 137 <defaultLevel name="document"/> 45 <index name="text,tw.Title,tw.Creator,tw.Description,tw.Notes">46 <displayItem lang="en" name="name">all text</displayItem>47 </index>48 <index name="tw.Title,dc.Title,ex.dc.Title,Title">49 <displayItem lang="en" name="name">titles</displayItem>50 </index>51 <index name="tw.Creator">52 <displayItem lang="en" name="name">contributors</displayItem>53 </index>54 <index name="tw.Description">55 <displayItem lang="en" name="name">descriptions</displayItem>56 </index>57 <index name="tw.Notes">58 <displayItem lang="en" name="name">notes</displayItem>59 </index>60 <defaultIndex name="text,tw.Title,tw.Creator,tw.Description,tw.Notes"/>61 62 138 <sort name="rank"> 63 <displayItem lang="en" name="name">rank</displayItem> 64 </sort> 65 <!-- 66 <sort name="none"> 67 <displayItem lang="en" name="name">natural (build) order</displayItem> 139 <displayItem lang="en" name="name">rank</displayItem> 68 140 </sort> 69 -->70 71 141 <facet name="tw.InCopyright"> 72 <displayItem lang="en" name="name">In Copyright</displayItem>142 <displayItem lang="en" name="name">In Copyright</displayItem> 73 143 </facet> 74 144 <facet name="tw.Theme"> 75 <displayItem lang="en" name="name">Theme</displayItem>145 <displayItem lang="en" name="name">Theme</displayItem> 76 146 </facet> 77 147 <facet name="tw.ObjectType"> 78 <displayItem lang="en" name="name">Content Type</displayItem>148 <displayItem lang="en" name="name">Content Type</displayItem> 79 149 </facet> 80 81 150 <searchType name="plain"/> 82 151 <searchType name="simpleform"/> 83 152 <searchType name="advancedform"/> 84 153 <format> 154 155 <gsf:template match="documentNode-OrigTableTD"> 156 <td valign="top"> 157 <gsf:link type="document"> 158 <gsf:icon type="document"/> 159 </gsf:link> 160 </td> 161 <td> 162 <gsf:link type="document"> 163 <xsl:call-template name="choose-title"/> 164 </gsf:link> 165 </td> 166 </gsf:template> 167 85 168 <gsf:template match="documentNode"> 86 <td valign="top"> 87 <gsf:link type="document"> 88 <gsf:icon type="document"/> 89 </gsf:link> 90 </td> 91 <td> 92 <gsf:link type="document"> 93 <xsl:call-template name="choose-title"/> 94 </gsf:link> 95 </td> 169 <div class="rt-column" style="position: relative;"> 170 171 <!-- the favourites star--> 172 <xsl:if test="$favouriteBasketOn"> 173 <div style="position: absolute; right: 6px; top: 6px;"> 174 <xsl:call-template name="documentFavouriteForClassifierOrSearchPage"/> 175 </div> 176 </xsl:if> 177 178 <span> 179 <gsf:link type="document"> 180 <gsf:icon type="document"/> 181 </gsf:link> 182 </span> 183 <br/> 184 <span> 185 <gsf:link type="document"> 186 <xsl:call-template name="choose-title"/> 187 </gsf:link> 188 </span> 189 190 <br/> 191 <span> 192 <xsl:call-template name="highlightSnippet"> 193 <xsl:with-param name="nodeHASH"> 194 <xsl:value-of select="@nodeID"/> 195 </xsl:with-param> 196 <xsl:with-param name="collection" select="@collection"/> 197 <!--<xsl:choose> <xsl:when test="@collection"><xsl:value-of select="@collection"/></xsl:with-param>--> 198 </xsl:call-template> 199 </span> 200 201 </div> 96 202 </gsf:template> 97 203 </format> 98 204 </search> 99 100 205 <infodb type="jdbm"/> 101 102 206 <import> 103 207 <pluginList> 104 208 <plugin name="ZIPPlugin"/> 105 209 <plugin name="GreenstoneXMLPlugin"/> 106 107 210 <plugin name="CSVPlugin"> 108 109 <option name="-filename_field" value="tw.Filename"/>110 111 112 211 <option name="-use_namespace_for_field_names" value="tw"/> 212 <option name="-filename_field" value="tw.Filename"/> 213 <option name="-OIDtype" value="assigned"/> 214 <option name="-OIDmetadata" value="tw.DLIdentifier"/> 215 <option name="-store_field_values_as_document_text"/> 113 216 </plugin> 114 <plugin name="ImagePlugin"> 115 <option name="enable_cache"/> 116 <option name="-thumbnailtype" value="png"/> 117 <option name="-thumbnailsize" value="100"/> 118 <option name="-screenviewsize" value="750"/> 119 <!-- 120 <option name="-apply_aspectpad" value="true"/> 121 <option name="-aspectpad_mode" value="ap"/> 122 --> 123 217 <plugin name="ImagePlugin"> 218 <option name="-enable_cache"/> 219 <option name="-thumbnailtype" value="png"/> 220 <option name="-thumbnailsize" value="100"/> 221 <option name="-screenviewsize" value="750"/> 124 222 </plugin> 125 223 <plugin name="TextPlugin"/> 126 <plugin name="HTMLPlugin" />127 <!-- <plugin name="EmailPlugin"/> -->128 224 <plugin name="HTMLPlugin"> 225 <option name="-associate_tail_re" value="(?:-assocwith)\.pdf$"/> 226 </plugin> 129 227 <plugin name="PDFv2Plugin"/> 130 <!-- Configuring an UnknownConverterPlugin for docx processing with Tika -->131 228 <plugin name="UnknownConverterPlugin"> 132 <option name="-exec_cmd" value="java -jar %%GSDLHOME/ext/tika/tika-app.jar --html --pretty-print --encoding=UTF-8 %%INPUT_FILE >%%OUTPUT"/>133 134 135 136 229 <option name="-exec_cmd" value="java -jar %%GSDLHOME/ext/tika/tika-app.jar --html --pretty-print --encoding=UTF-8 %%INPUT_FILE > %%OUTPUT"/> 230 <option name="-convert_to" value="html"/> 231 <option name="-mime_type" value="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/> 232 <option name="-srcicon" value="icondocx"/> 233 <option name="-process_extension" value="docx"/> 137 234 </plugin> 138 <!-- If you have Tesseract installed (for linux 64 bit machines, there's a tesseract tarball available139 for download from http://trac.greenstone.org/browser/gs2-extensions/tesseract/trunk/tesseract-linux-x64.tar.gz140 Untested: for windows, you can try installing Tesseract from Win binaries at https://github.com/UB-Mannheim/tesseract/wiki141 For Windows and Mac, be sure to add tesseract's bin folder to your PATH and also set the TESSDATA_PREFIX environment variable to142 the folder "tessdata" wherein you also need to have the "<3-letter-langcode>.traineddata" files for the languages you want143 to OCR.) The Linux 64 bit tesseract extension tarball already does all this for you.144 Once you have Tesseract installed, you can activate the following UnknownConverterPlugin to use Tika with Tesseract to OCR PDFs145 that contain images by removing the XML comment symbols.146 -->147 <!--148 <plugin name="UnknownConverterPlugin">149 <option name="-exec_cmd" value="java -jar $GSDLHOME/ext/tika/tika-app-*.jar --config=$GSDLHOME/ext/tika/ocr-pdfs-config.xml --html %%INPUT_FILE > %%OUTPUT"/>150 <option name="-convert_to" value="html"/>151 <option name="-mime_type" value="application/pdf"/>152 <option name="-srcicon" value="iconpdf"/>153 <option name="-process_extension" value="pdf"/>154 </plugin>155 -->156 235 <plugin name="RTFPlugin"/> 157 236 <plugin name="WordPlugin"/> … … 167 246 </pluginList> 168 247 </import> 169 <importOption name="OIDtype" value="assigned"/>170 <importOption name="OIDmetadata" value="tw.DLIdentifier"/>171 172 248 <browse> 173 249 <classifier name="List"> … … 175 251 <option name="-partition_type_within_level" value="approximate_size"/> 176 252 <option name="-numeric_partition_type_within_level" value="approximate_size"/> 177 <!-- only use one dc.Title/Title value. change to allvalues to use all of them.-->178 253 <option name="-metadata_selection_mode_within_level" value="firstvalue"/> 179 <!-- 180 If you are classifying by multiple title values for each document, then 181 (1) edit above line to: <option name="-metadata_selection_mode_within_level" value="allvalues"/> 182 (2) create a custom <format> statement immediately below this <option> element, 183 and copy the existing browse <format>'s <gsf:template match="documentNode"> into it 184 (3) then change its choose-title line (<xsl:call-template name="choose-title"/>) 185 to the following (note pos=classifiedBy) preceded by the XML comment: 186 Instead of using choose-title here, we want to display the title that the document was classified on 187 <gsf:metadata name="dc.Title,Title" pos="classifiedBy"/> 188 --> 189 <!--<format> 190 <gsf:template match="documentNode"> 191 <td valign="top"> 192 <gsf:link type="document"> 193 <gsf:icon type="document"/> 194 </gsf:link> 195 </td> 196 <td valign="top"> 197 <gsf:link type="source"> 198 <gsf:choose-metadata> 199 <gsf:metadata name="thumbicon"/> 200 <gsf:metadata name="srcicon"/> 201 </gsf:choose-metadata> 202 </gsf:link> 203 </td> 204 <td valign="top"> 205 <gsf:link type="document"> 206 Instead of using choose-title here, we want to display the title that the document was classified on 207 <gsf:metadata name="dc.Title,Title" pos="classifiedBy"/> 208 <gsf:switch> 209 <gsf:metadata name="Source"/> 210 <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when> 211 </gsf:switch> 212 </gsf:link> 213 </td> 214 </gsf:template> 215 </format> 216 --> 254 <option name="-buttonname" value="Titles"/> 217 255 </classifier> 218 <!-- 219 <classifier name="List"> 220 <option name="-metadata" value="Source"/> 221 <option name="-partition_type_within_level" value="approximate_size"/> 222 <option name="-numeric_partition_type_within_level" value="approximate_size"/> 256 <classifier name="AZCompactList"> 257 <option name="-metadata" value="tw.Creator"/> 258 <option name="-buttonname" value="Contributors"/> 259 <option name="-mingroup" value="1"/> 223 260 </classifier> 224 -->225 261 <classifier name="AZCompactList"> 226 <option name="-metadata" value="tw.Creator"/> 227 <option name="-buttonname" value="Contributors"/> 228 <option name="-mingroup" value="1"/> 229 </classifier> 230 231 <classifier name="AZCompactList"> 232 <option name="-metadata" value="tw.Theme"/> 233 <option name="-buttonname" value="Themes"/> 234 <option name="-mingroup" value="1"/> 235 </classifier> 236 237 262 <option name="-metadata" value="tw.Theme"/> 263 <option name="-buttonname" value="Themes"/> 264 <option name="-mingroup" value="1"/> 265 </classifier> 238 266 <format> 239 267 <gsf:template match="documentNode"> … … 244 272 </td> 245 273 <td class="src-td" style="width: 100px; text-align: center; background-color: #f2f2f2;" valign="top"> 246 247 <gsf:link type="document">248 <gsf:choose-metadata>249 <gsf:metadata name="thumbicon"/>250 <gsf:metadata name="srcicon"/>251 </gsf:choose-metadata>252 </gsf:link>253 274 <div> 275 <gsf:link type="document"> 276 <gsf:choose-metadata> 277 <gsf:metadata name="thumbicon"/> 278 <gsf:metadata name="srcicon"/> 279 </gsf:choose-metadata> 280 </gsf:link> 281 </div> 254 282 </td> 255 283 <td valign="top"> 256 284 <gsf:link type="document"> 257 <!-- Defined in the global format statement --> 285 <!-- 286 Defined in the global format statement 287 --> 258 288 <xsl:call-template name="choose-title"/> 259 260 289 <!-- 290 <gsf:switch> 261 291 <gsf:metadata name="Source"/> 262 292 <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when> 263 293 </gsf:switch> 264 294 --> 265 295 </gsf:link> 266 296 </td> … … 268 298 <gsf:template match="classifierNode[@classifierStyle = 'VList']"> 269 299 <td valign="top"> 270 <gsf:link type="classifier" style="static">300 <gsf:link style="static" type="classifier"> 271 301 <gsf:icon type="classifier"/> 272 302 </gsf:link> 273 303 </td> 274 304 <td valign="top"> 275 276 277 305 <gsf:link type="classifier"> 306 <gsf:metadata name="Title"/> 307 </gsf:link> 278 308 </td> 279 309 </gsf:template> 280 310 <gsf:template match="classifierNode[@classifierStyle = 'HList']"> 281 <gsf:link type="classifier" style="static">311 <gsf:link style="static" type="classifier"> 282 312 <gsf:metadata name="Title"/> 283 313 </gsf:link> 284 314 </gsf:template> 285 286 287 315 <gsf:template name="classifierPost"> 288 <style> 289 XXXtd.src-td img { min-width: 100px; } 290 </style> 291 <gsf:script> 292 $(document).ready(function() { 316 <style>XXXtd.src-td img { min-width: 100px; }</style> 317 <gsf:script>$(document).ready(function() { 293 318 var cnl_html = $('#classifiernodelist').html(); 294 319 cnl_html = cnl_html.replace(/\\n/g,"â ") 295 320 $('#classifiernodelist').html(cnl_html); 296 }); 297 </gsf:script> 298 </gsf:template> 299 321 });</gsf:script> 322 </gsf:template> 300 323 </format> 301 324 </browse> 302 325 <display> 303 <format> 304 <gsf:headMetaTags> 305 <gsf:metadata name="Title"/> 306 <gsf:metadata name="Image"/> 307 <gsf:metadata name="HasGoogleVisionDocumentOCRJSON"/> 308 <gsf:metadata name="GVDocumentOCRJSON"/> 309 310 <gsf:metadata name="tw.DLIdentifier"/> 311 <gsf:metadata name="tw.Title" /> 312 <gsf:metadata name="tw.Creator"/> 313 <gsf:metadata name="tw.Description"/> 314 <gsf:metadata name="tw.OirginalOrCopy"/> 315 <gsf:metadata name="tw.InCopyright"/> 316 <gsf:metadata name="tw.Theme"/> 317 <gsf:metadata name="tw.Notes"/> 318 <gsf:metadata name="tw.OptHyperlink"/> 319 320 </gsf:headMetaTags> 321 322 <!-- <gsf:option name="TOC" value="true"/> --> 326 <format> 327 <gsf:headMetaTags> 328 <gsf:metadata name="Title"/> 329 <gsf:metadata name="Image"/> 330 <gsf:metadata name="HasGoogleVisionDocumentOCRJSON"/> 331 <gsf:metadata name="GVDocumentOCRJSON"/> 332 <gsf:metadata name="tw.DLIdentifier"/> 333 <gsf:metadata name="tw.Title"/> 334 <gsf:metadata name="tw.Creator"/> 335 <gsf:metadata name="tw.Description"/> 336 <gsf:metadata name="tw.OirginalOrCopy"/> 337 <gsf:metadata name="tw.InCopyright"/> 338 <gsf:metadata name="tw.Theme"/> 339 <gsf:metadata name="tw.Notes"/> 340 <gsf:metadata name="tw.OptHyperlink"/> 341 </gsf:headMetaTags> 342 <!-- 343 <gsf:option name="TOC" value="true"/> 344 --> 323 345 <gsf:option name="TOC" value="false"/> 324 325 <gsf:option name="allowUserComments" value="false"/> 326 <gsf:option name="allowDocumentEditing" value="true"/> 327 <gsf:option name="allowMapGPSEditing" value="true"/> 328 <!-- 329 Overwriting this template allows you to change the heading of the document. 330 --> 331 346 <gsf:option name="allowUserComments" value="true"/> 347 <gsf:option name="allowDocumentEditing" value="false"/> 348 <gsf:option name="allowMapGPSEditing" value="false"/> 349 <!-- 350 Overwriting this template allows you to change the heading of the document. 351 --> 332 352 <gsf:template name="documentHeadingShared"> 333 <xsl:param name="twTitle"/> 334 335 <span id="doc-chosen-title" style="font-weight:bold; font-size: 120%;"> 336 <xsl:value-of select="$twTitle"/> 337 </span> 338 <gsf:script> 339 $(document).ready(function() { 353 <xsl:param name="twTitle"/> 354 <span id="doc-chosen-title" style="font-weight:bold; font-size: 120%;"> 355 <xsl:value-of select="$twTitle"/> 356 </span> 357 <gsf:script>$(document).ready(function() { 340 358 var dct_html = $('#doc-chosen-title').html(); 341 359 dct_html = dct_html.replace(/\\n/g,"â ") 342 360 $('#doc-chosen-title').html(dct_html); 343 }); 344 </gsf:script> 345 </gsf:template> 346 361 });</gsf:script> 362 </gsf:template> 347 363 <gsf:template name="documentHeading"> 348 <xsl:call-template name="documentHeadingShared"> 349 <xsl:with-param name="twTitle"><xsl:call-template name="choose-title"/></xsl:with-param> 350 </xsl:call-template> 351 </gsf:template> 352 364 <xsl:call-template name="documentHeadingShared"> 365 <xsl:with-param name="twTitle"> 366 <xsl:call-template name="choose-title"/> 367 </xsl:with-param> 368 </xsl:call-template> 369 </gsf:template> 353 370 <gsf:template name="documentHeadingComplex"> 354 <xsl:call-template name="documentHeadingShared"> 355 <xsl:with-param name="twTitle"> 356 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Title']"/> 357 </xsl:with-param> 358 </xsl:call-template> 359 </gsf:template> 360 361 362 <!-- 363 Overwriting this template can be used to redefine the content of the whole document. 371 <xsl:call-template name="documentHeadingShared"> 372 <xsl:with-param name="twTitle"> 373 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Title']"/> 374 </xsl:with-param> 375 </xsl:call-template> 376 </gsf:template> 377 <!-- 378 Overwriting this template can be used to redefine the content of the whole document. 364 379 This is useful for simple documents, but not recommended for more complex documents 365 380 (e.g. hierachical and paged documents) as it can prevent any sub-sections from showing. 366 --> 367 381 --> 368 382 <gsf:template name="documentPre"> 369 370 383 <!-- 384 Title 371 385 Creator 372 386 Description … … 380 394 Notes 381 395 OptHyperlink 382 --> 383 <br/> 384 <div id="doc-metadata-table"> 385 <gsf:metadata-table> 386 <!-- <gsf:metadata name="tw.Title">Title:</gsf:metadata> --> 387 <gsf:metadata name="tw.Creator">Creator:</gsf:metadata> 388 <gsf:metadata name="tw.Description">Description:</gsf:metadata> 389 <gsf:metadata name="tw.OriginalOrCopy">Original or Copy:</gsf:metadata> 390 <gsf:metadata name="tw.InCopyright">In Copyright:</gsf:metadata> 391 <gsf:metadata name="tw.Theme">Theme(s):</gsf:metadata> 392 <gsf:metadata name="tw.DLIdentifier">Document Id:</gsf:metadata> 393 <gsf:metadata name="tw.Notes">Notes:</gsf:metadata> 394 </gsf:metadata-table> 395 <br/> 396 </div> 397 <gsf:script> 398 $(document).ready(function() { 396 --> 397 <br/> 398 <div id="doc-metadata-table"> 399 <gsf:metadata-table> 400 <!-- 401 <gsf:metadata name="tw.Title">Title:</gsf:metadata> 402 --> 403 <gsf:metadata name="tw.Creator">Creator:</gsf:metadata> 404 <gsf:metadata name="tw.Description">Description:</gsf:metadata> 405 <gsf:metadata name="tw.OriginalOrCopy">Original or Copy:</gsf:metadata> 406 <gsf:metadata name="tw.InCopyright">In Copyright:</gsf:metadata> 407 <gsf:metadata name="tw.Theme">Theme(s):</gsf:metadata> 408 <gsf:metadata name="tw.DLIdentifier">Document Id:</gsf:metadata> 409 <gsf:metadata name="tw.Notes">Notes:</gsf:metadata> 410 </gsf:metadata-table> 411 <br/> 412 </div> 413 <gsf:script>$(document).ready(function() { 399 414 var dmt_html = $('#doc-metadata-table').html(); 400 415 dmt_html = dmt_html.replace(/\\n/g,"â ") 401 416 $('#doc-metadata-table').html(dmt_html); 402 }); 403 </gsf:script> 404 405 406 <gsf:switch> 407 <gsf:metadata name="tw.OptHyperlink"/> 408 <gsf:when test="exists"> 409 410 <gsf:switch> 411 <gsf:metadata name="Plugin"/> 412 <gsf:when test="equals" test-value="ImagePlugin"> 413 <!-- supress external link, as screenview with link to original displayed --> 414 </gsf:when> 415 <!-- 416 <gsf:when test="equals" test-value="PDFv2Plugin"> 417 });</gsf:script> 418 <gsf:switch> 419 <gsf:metadata name="tw.OptHyperlink"/> 420 <gsf:when test="exists"> 421 <gsf:switch> 422 <gsf:metadata name="Plugin"/> 423 <gsf:when test="equals" test-value="ImagePlugin"><!-- 424 supress external link, as screenview with link to original displayed 425 --> 426 </gsf:when><!-- 427 <gsf:when test="equals" test-value="PDFv2Plugin"> 417 428 <div> 418 429 <gsf:link type="source"> … … 422 433 </div> 423 434 </gsf:when> 424 --> 425 <gsf:otherwise> 426 <div> 427 <a target="_blank"> 428 <xsl:attribute name="href"><gsf:metadata name="tw.OptHyperlink"/></xsl:attribute> 429 View original content 430 </a> 431 </div> 432 </gsf:otherwise> 433 </gsf:switch> 434 435 </gsf:when> 436 </gsf:switch> 437 438 </gsf:template> 439 440 435 --> 436 <gsf:otherwise> 437 <div> 438 <a target="_blank"><xsl:attribute name="href"><gsf:metadata name="tw.OptHyperlink"/></xsl:attribute><img border="0" src="interfaces/default/images/itext.gif"/>View original content</a> 439 </div> 440 </gsf:otherwise> 441 </gsf:switch> 442 </gsf:when> 443 </gsf:switch> 444 </gsf:template> 441 445 <gsf:template name="documentPreComplex"> 442 <xsl:variable name="twCreator"> 443 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Creator']"/> 444 </xsl:variable> 445 <xsl:variable name="twDescription"> 446 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Description']"/> 447 </xsl:variable> 448 <xsl:variable name="twOriginalOrCopy"> 449 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.OriginalOrCopy']"/> 450 </xsl:variable> 451 <xsl:variable name="twInCopyright"> 452 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.InCopyright']"/> 453 </xsl:variable> 454 <xsl:variable name="twTheme"> 455 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Theme']"/> 456 </xsl:variable> 457 <xsl:variable name="twDLIdentifier"> 458 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.DLIdentifier']"/> 459 </xsl:variable> 460 <xsl:variable name="twNotes"> 461 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Notes']"/> 462 </xsl:variable> 463 464 <br/> 465 <div id="doc-metadata-table"> 466 <table class="metadataTable"> 467 <xsl:if test="$twCreator != ''"> 468 <tr> 469 <td>Creator:</td> 470 <td><i><xsl:value-of select="$twCreator"/></i></td> 471 </tr> 472 </xsl:if> 473 <xsl:if test="$twDescription != ''"> 474 <tr> 475 <td>Description:</td> 476 <td><i><xsl:value-of select="$twDescription"/></i></td> 477 </tr> 478 </xsl:if> 479 <xsl:if test="$twOriginalOrCopy != ''"> 480 <tr> 481 <td>Original or Copy:</td> 482 <td><i><xsl:value-of select="$twOriginalOrCopy"/></i></td> 483 </tr> 484 </xsl:if> 485 <xsl:if test="$twInCopyright != ''"> 486 <tr> 487 <td>In Copyright:</td> 488 <td><i><xsl:value-of select="$twInCopyright"/></i></td> 489 </tr> 490 </xsl:if> 491 <xsl:if test="$twTheme != ''"> 492 <tr> 493 <td>Theme(s):</td> 494 <td><i><xsl:value-of select="$twTheme"/></i></td> 495 </tr> 496 </xsl:if> 497 <xsl:if test="$twDLIdentifier != ''"> 498 <tr> 499 <td>Document Id:</td> 500 <td><i><xsl:value-of select="$twDLIdentifier"/></i></td> 501 </tr> 502 </xsl:if> 503 <xsl:if test="$twNotes != ''"> 504 <tr> 505 <td>Notes:</td> 506 <td><i><xsl:value-of select="$twNotes"/></i></td> 507 </tr> 508 </xsl:if> 509 </table> 510 <br/> 511 </div> 512 <gsf:script> 513 $(document).ready(function() { 446 <xsl:variable name="twCreator"> 447 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Creator']"/> 448 </xsl:variable> 449 <xsl:variable name="twDescription"> 450 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Description']"/> 451 </xsl:variable> 452 <xsl:variable name="twOriginalOrCopy"> 453 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.OriginalOrCopy']"/> 454 </xsl:variable> 455 <xsl:variable name="twInCopyright"> 456 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.InCopyright']"/> 457 </xsl:variable> 458 <xsl:variable name="twTheme"> 459 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Theme']"/> 460 </xsl:variable> 461 <xsl:variable name="twDLIdentifier"> 462 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.DLIdentifier']"/> 463 </xsl:variable> 464 <xsl:variable name="twNotes"> 465 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.Notes']"/> 466 </xsl:variable> 467 <br/> 468 <div id="doc-metadata-table"> 469 <table class="metadataTable"> 470 <xsl:if test="$twCreator != ''"> 471 <tr> 472 <td>Creator:</td> 473 <td> 474 <i> 475 <xsl:value-of select="$twCreator"/> 476 </i> 477 </td> 478 </tr> 479 </xsl:if> 480 <xsl:if test="$twDescription != ''"> 481 <tr> 482 <td>Description:</td> 483 <td> 484 <i> 485 <xsl:value-of select="$twDescription"/> 486 </i> 487 </td> 488 </tr> 489 </xsl:if> 490 <xsl:if test="$twOriginalOrCopy != ''"> 491 <tr> 492 <td>Original or Copy:</td> 493 <td> 494 <i> 495 <xsl:value-of select="$twOriginalOrCopy"/> 496 </i> 497 </td> 498 </tr> 499 </xsl:if> 500 <xsl:if test="$twInCopyright != ''"> 501 <tr> 502 <td>In Copyright:</td> 503 <td> 504 <i> 505 <xsl:value-of select="$twInCopyright"/> 506 </i> 507 </td> 508 </tr> 509 </xsl:if> 510 <xsl:if test="$twTheme != ''"> 511 <tr> 512 <td>Theme(s):</td> 513 <td> 514 <i> 515 <xsl:value-of select="$twTheme"/> 516 </i> 517 </td> 518 </tr> 519 </xsl:if> 520 <xsl:if test="$twDLIdentifier != ''"> 521 <tr> 522 <td>Document Id:</td> 523 <td> 524 <i> 525 <xsl:value-of select="$twDLIdentifier"/> 526 </i> 527 </td> 528 </tr> 529 </xsl:if> 530 <xsl:if test="$twNotes != ''"> 531 <tr> 532 <td>Notes:</td> 533 <td> 534 <i> 535 <xsl:value-of select="$twNotes"/> 536 </i> 537 </td> 538 </tr> 539 </xsl:if> 540 </table> 541 <br/> 542 </div> 543 <gsf:script>$(document).ready(function() { 514 544 var dmt_html = $('#doc-metadata-table').html(); 515 545 dmt_html = dmt_html.replace(/\\n/g,"â ") 516 546 $('#doc-metadata-table').html(dmt_html); 517 }); 518 </gsf:script> 519 520 <xsl:variable name="twOptHyperlink"> 521 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.OptHyperlink']"/> 522 </xsl:variable> 523 524 525 <xsl:variable name="assocfilepath"> 526 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='assocfilepath']"/> 527 </xsl:variable> 528 <xsl:variable name="srclinkFile"> 529 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='srclinkFile']"/> 530 </xsl:variable> 531 532 <div> 533 <a target="_blank" href="{$library_name}/sites/{$site_name}/collect/{$collName}/index/assoc/{$assocfilepath}/{$srclinkFile}"> 534 <xsl:attribute name="hrefXXXX"><xsl:value-of select="$assocfilepath"/></xsl:attribute> 535 <img src='interfaces/default/images/ipdf.gif' border='0'/> 536 View original content 537 </a> 538 </div> 539 540 </gsf:template> 541 542 543 <gsf:template name="documentContentTopLevel"> 544 <div id="gs-document"> 545 <xsl:call-template name="documentPre"/> 546 <xsl:call-template name="wrappedSectionImage"/> 547 548 <gsf:switch> 549 <gsf:metadata name="FileFormat"/> 550 <gsf:when test="equals" test-value="HTML"> 551 </gsf:when> 552 <gsf:otherwise> 553 <div id="gs-document-text"> 554 <xsl:call-template name="documentNodeText"/> 547 });</gsf:script> 548 <xsl:variable name="twOptHyperlink"> 549 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='tw.OptHyperlink']"/> 550 </xsl:variable> 551 <xsl:variable name="assocfilepath"> 552 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='assocfilepath']"/> 553 </xsl:variable> 554 <xsl:variable name="srclinkFile"> 555 <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='srclinkFile']"/> 556 </xsl:variable> 557 <div> 558 <a href="{$library_name}/sites/{$site_name}/collect/{$collName}/index/assoc/{$assocfilepath}/{$srclinkFile}" target="_blank"><img border="0" src="interfaces/default/images/ipdf.gif"/>View original content</a> 555 559 </div> 556 </gsf:otherwise> 557 </gsf:switch> 558 </div> 559 </gsf:template> 560 561 <!-- PDF if the only doc current generating complex doc format --> 562 <!-- Redirect to custom simple doc --> 563 560 </gsf:template> 561 <gsf:template name="documentContentTopLevel"> 562 <div id="gs-document"> 563 <xsl:call-template name="documentPre"/> 564 <xsl:call-template name="wrappedSectionImage"/> 565 <gsf:switch> 566 <gsf:metadata name="Plugin"/> 567 <gsf:when test="equals" test-value="HTMLPlugin"> </gsf:when> <gsf:when test="equals" test-value="CSVPlugin"> 568 <i>Original document content not publicly available</i> 569 </gsf:when> 570 <gsf:otherwise> 571 <div id="gs-document-text"> 572 <xsl:call-template name="documentNodeText"/> 573 </div> 574 </gsf:otherwise> 575 </gsf:switch> 576 </div> 577 </gsf:template> 578 <!-- 579 PDF if the only doc current generating complex doc format 580 --> 581 <!-- 582 Redirect to custom simple doc 583 --> 564 584 <gsf:template name="wrappedDocumentTopLevel"> 565 <xsl:call-template name="documentHeadingComplex"/><br/>566 <xsl:call-template name="documentPreComplex"/><br/>567 <!--568 <xsl:call-template name="documentContentTopLevel"/>569 --> 570 </gsf:template>571 572 573 574 575 576 577 585 <xsl:call-template name="documentHeadingComplex"/> 586 <br/> 587 <xsl:call-template name="documentPreComplex"/> 588 <br/> 589 <!-- 590 <xsl:call-template name="documentContentTopLevel"/> 591 --> 592 </gsf:template> 593 <!-- 594 Overwriting this template can be used to change the content of section headings. 595 --> 596 <!-- 597 <gsf:template name="sectionHeading"> 578 598 <xsl:call-template name="choose-title"/> 579 599 </gsf:template> 580 --> 581 582 <!-- 583 Overwriting this template can be used to change the content of the top-level section. 584 --> 585 <!-- 586 <gsf:template name="topLevelSectionContent"> 600 --> 601 <!-- 602 Overwriting this template can be used to change the content of the top-level section. 603 --> 604 <!-- 605 <gsf:template name="topLevelSectionContent"> 587 606 <xsl:call-template name="wrappedSectionImage"/> 588 607 <xsl:call-template name="wrappedSectionText"/> 589 608 </gsf:template> 590 --> 591 592 <!-- 593 Overwriting this template can be used to change the content of sections. 594 --> 595 <!-- 596 <gsf:template name="sectionContent"> 609 --> 610 <!-- 611 Overwriting this template can be used to change the content of sections. 612 --> 613 <!-- 614 <gsf:template name="sectionContent"> 597 615 <xsl:call-template name="wrappedSectionImage"/> 598 616 <xsl:call-template name="wrappedSectionText"/> 599 617 </gsf:template> 600 618 --> 601 619 </format> 602 620 </display> 603 621 <replaceListRef id="gs2-standard"/> 604 <replaceListRef id="gs2-image" /> 605 <serviceRackList> 606 <!-- comment out the following serviceRack if you want to disable RSS for this collection --> 607 <serviceRack name="RSSRetrieve"/> 608 <!-- comment out the following serviceRack if you want to disable OAI for this collection --> 622 <replaceListRef id="gs2-image"/> 623 <serviceRackList><!-- comment out the following serviceRack if you want to disable RSS for this collection --> 624 <serviceRack name="RSSRetrieve"/><!-- comment out the following serviceRack if you want to disable OAI for this collection --> 609 625 <serviceRack name="OAIPMH"> 610 <setName>community-contributions</setName> 611 <setDescription></setDescription> 612 <!-- uncomment the following and set the name attribute if 613 you want this collection to be part of a super set. --> 614 <!--<oaiSuperSet name="xxx"/>--> 615 <ListMetadataFormats> 616 <!--What metadata sets to support for this collection. You can select any set that is specified in OAIConfig.xml. To use a new set, you need to add a set definition in OAIConfig.xml, then reference it here, like: 626 <setName>community-contributions</setName> 627 <setDescription/><!-- uncomment the following and set the name attribute if 628 you want this collection to be part of a super set. --><!--<oaiSuperSet name="xxx"/>--> 629 <ListMetadataFormats><!--What metadata sets to support for this collection. You can select any set that is specified in OAIConfig.xml. To use a new set, you need to add a set definition in OAIConfig.xml, then reference it here, like: 617 630 <metadataFormat metadataPrefix="prefix"/> --> 618 619 <metadataFormat metadataPrefix="oai_dc"> 620 <!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--> 621 </metadataFormat> 631 <metadataFormat metadataPrefix="oai_dc"><!-- you can customize the mappings by adding elements in here. See resources/oai/OAIConfig.xml for the format--></metadataFormat> 622 632 </ListMetadataFormats> 623 </serviceRack> 633 </serviceRack> 624 634 </serviceRackList> 635 <importOption name="OIDtype" value="assigned"/> 636 <importOption name="OIDmetadata" value="tw.DLIdentifier"/> 625 637 </CollectionConfig>
Note:
See TracChangeset
for help on using the changeset viewer.