Changeset 25219
- Timestamp:
- 2012-03-14T15:52:13+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-cols-dev/peijones/etc/collectionConfig.xml
r25108 r25219 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <CollectionConfig xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 <metadataList><metadata lang="en" name="creator"></metadata><metadata lang="en" name="maintainer"></metadata><metadata lang="en" name="public">true</metadata></metadataList><displayItemList><displayItem assigned="true" lang="en" name="name">Pei-Jones-Flat</displayItem></displayItemList><search type="mgpp"><level name="document"><displayItem lang="en" name="name">document</displayItem></level><level name="section"><displayItem lang="en" name="name">section</displayItem></level><defaultLevel name="document"/><index name="text"><displayItem lang="en" name="name">text</displayItem></index><index name="Title"><displayItem lang="en" name="name">titles</displayItem></index><index name="Source"><displayItem lang="en" name="name">filenames</displayItem></index><index name="Plugin"/><index name="gsimg.photoNote"><displayItem lang="en" name="name">photo annotations</displayItem></index><index name="gstext.tags"><displayItem lang="en" name="name">text annotations (tags)</displayItem></index><index name="gstext.text"><displayItem lang="en" name="name">text annotations (text)</displayItem></index><index name="gstext.user"><displayItem lang="en" name="name">text annotations (user)</displayItem></index><defaultIndex name="text"/><indexOption><option name="accentfold"/><option name="casefold"/><option name="stem"/></indexOption><searchType name="plain"/><searchType name="simpleform"/><searchType name="advancedform"/><format> 4 <gsf:template match="documentNode"> 5 <td valign="top"> 6 <gsf:link type="document"> 7 <gsf:icon type="document"/> 8 </gsf:link> 9 </td> 10 <td> 11 <gsf:switch> 12 <gsf:metadata name="Title" select="ancestors" separator=": "/> 13 <gsf:when test="exists"><gsf:metadata name="Title" select="ancestors" separator=": "/>:</gsf:when> 14 </gsf:switch> 15 <gsf:link type="document"> 16 <gsf:metadata name="Title"/> 17 </gsf:link> 18 </td> 19 </gsf:template> 20 </format></search><infodb type="gdbm"/><import><pluginList><plugin name="ZIPPlugin"/><plugin name="GreenstoneXMLPlugin"/><plugin name="TextPlugin"/><plugin name="HTMLPlugin"><option name="-process_exp" value="(timeglider.*)(?i)(\.html?)$"/><option name="-block_exp" value="(timeglider.*)(?i)(\.jpe?g|\.png|\.gif)$"/><option name="-keep_head"/></plugin><plugin name="EmailPlugin"/><plugin name="PDFPlugin"/><plugin name="RTFPlugin"/><plugin name="WordPlugin"/><plugin name="PostScriptPlugin"/><plugin name="PowerPointPlugin"/><plugin name="ExcelPlugin"/><plugin name="PagedImagePlugin"/><plugin name="ImagePlugin"/><plugin name="ISISPlugin"/><plugin name="NulPlugin"/><plugin name="OAIPlugin"/><plugin name="HTMLImagePlugin"/><plugin name="MetadataXMLPlugin"/><plugin name="ArchivesInfPlugin"/><plugin name="DirectoryPlugin"/></pluginList></import><browse><classifier name="List"><option name="-metadata" value="dc.Title;Title"/><option name="-partition_type_within_level" value="approximate_size"/><option name="-bookshelf_type" value="never"/></classifier><classifier name="AZCompactList"><option name="-metadata" value="Source"/><option name="-removesuffix" value="(?i)\\..*"/><option name="-buttonname" value="Source"/></classifier><format> 21 <gsf:template match="documentNode"> 22 <td valign="top"> 23 <gsf:link type="document"> 24 <gsf:icon type="document"/> 25 </gsf:link> 26 </td> 27 <td valign="top"> 28 <gsf:link type="source"> 29 <gsf:choose-metadata> 30 <gsf:metadata name="thumbicon"/> 31 <gsf:metadata name="srcicon"/> 32 </gsf:choose-metadata> 33 </gsf:link> 34 </td> 35 <td valign="top"> 36 <gsf:link type="document"> 37 <gsf:choose-metadata> 38 <gsf:metadata name="dc.Title"/> 39 <gsf:metadata name="exp.Title"/> 40 <gsf:metadata name="Title"/> 41 <gsf:default>Untitled</gsf:default> 42 </gsf:choose-metadata> 43 </gsf:link> 44 <gsf:switch> 45 <gsf:metadata name="Source"/> 46 <gsf:when test="exists"> 47 <br/> 48 <i>(<gsf:metadata name="Source"/>)</i> 49 </gsf:when> 50 </gsf:switch> 51 </td> 52 </gsf:template> 53 <gsf:template match="classifierNode"> 54 <td valign="top"> 55 <gsf:link type="classifier"> 56 <gsf:icon type="classifier"/> 57 </gsf:link> 58 </td> 59 <td valign="top"> 60 <gsf:metadata name="srclink"/> 61 <gsf:choose-metadata> 62 <gsf:metadata name="thumbicon"/> 63 <gsf:metadata name="srcicon"/> 64 </gsf:choose-metadata> 65 <gsf:metadata name="/srclink"/> 66 </td> 67 <td valign="top"> 68 <gsf:choose-metadata> 69 <gsf:metadata name="dc.Title"/> 70 <gsf:metadata name="exp.Title"/> 71 <gsf:metadata name="Title"/> 72 <gsf:default>Untitled</gsf:default> 73 </gsf:choose-metadata> 74 <gsf:switch> 75 <gsf:metadata name="Source"/> 76 <gsf:when test="exists"> 77 <br/> 78 <i>(<gsf:metadata name="Source"/>)</i> 79 </gsf:when> 80 </gsf:switch> 81 </td> 82 </gsf:template> 83 <gsf:template match="classifierNode" mode="horizontal"> 84 <gsf:link type="horizontal"> 85 <gsf:metadata name="Title"/> 86 </gsf:link> 87 </gsf:template> 88 </format></browse><display><format> 89 <gsf:option name="sideBar" value="false"/> 90 <xsl:template name="additionalHeaderContent"> 91 92 <!-- 3 4 <metadataList> 5 <metadata lang="en" name="creator"></metadata> 6 <metadata lang="en" name="maintainer"></metadata> 7 <metadata lang="en" name="public">true</metadata> 8 </metadataList> 9 <displayItemList> 10 <displayItem assigned="true" lang="en" name="name">Pei-Jones-Flat</displayItem> 11 </displayItemList> 12 <search type="mgpp"> 13 <level name="document"> 14 <displayItem lang="en" name="name">document</displayItem> 15 </level> 16 <level name="section"> 17 <displayItem lang="en" name="name">section</displayItem> 18 </level> 19 <defaultLevel name="document"/> 20 <index name="text"> 21 <displayItem lang="en" name="name">text</displayItem> 22 </index> 23 <index name="Title"> 24 <displayItem lang="en" name="name">titles</displayItem> 25 </index> 26 <index name="Source"> 27 <displayItem lang="en" name="name">filenames</displayItem> 28 </index> 29 <index name="Plugin"/> 30 <index name="gsimg.photoNote"> 31 <displayItem lang="en" name="name">photo annotations</displayItem> 32 </index> 33 <index name="gstext.tags"> 34 <displayItem lang="en" name="name">text annotations (tags)</displayItem> 35 </index> 36 <index name="gstext.text"> 37 <displayItem lang="en" name="name">text annotations (text)</displayItem> 38 </index> 39 <index name="gstext.user"> 40 <displayItem lang="en" name="name">text annotations (user)</displayItem> 41 </index> 42 <index name="SourceFile"/> 43 <defaultIndex name="text"/> 44 <indexOption> 45 <option name="accentfold"/> 46 <option name="casefold"/> 47 <option name="stem"/> 48 </indexOption> 49 <searchType name="plain"/> 50 <searchType name="simpleform"/> 51 <searchType name="advancedform"/> 52 <format> 53 <gsf:template match="documentNode"> 54 <td valign="top"> 55 <gsf:link type="document"> 56 <gsf:icon type="document"/> 57 </gsf:link> 58 </td> 59 <td> 60 <gsf:switch> 61 <gsf:metadata name="Title" select="ancestors" separator=": "/> 62 <gsf:when test="exists"><gsf:metadata name="Title" select="ancestors" separator=": "/>:</gsf:when> 63 </gsf:switch> 64 <gsf:link type="document"> 65 <gsf:metadata name="Title"/> 66 </gsf:link> 67 </td> 68 </gsf:template> 69 </format> 70 </search> 71 <infodb type="gdbm"/> 72 <import> 73 <pluginList> 74 <plugin name="ZIPPlugin"/> 75 <plugin name="GreenstoneXMLPlugin"/> 76 <plugin name="TextPlugin"> 77 <option name="-extract_language"/> 78 <option name="-default_language" value="undefined"/> 79 </plugin> 80 <plugin name="HTMLPlugin"> 81 <option name="-process_exp" value="(timeglider.*)(?i)(\.html?)$"/> 82 <option name="-block_exp" value="(timeglider.*)(?i)(\.jpe?g|\.png|\.gif)$"/> 83 <option name="-keep_head"/> 84 <option name="-extract_language"/> 85 <option name="-default_language" value="undefined"/> 86 </plugin> 87 <plugin name="EmailPlugin"/> 88 <plugin name="PDFPlugin"/> 89 <plugin name="RTFPlugin"/> 90 <plugin name="WordPlugin"/> 91 <plugin name="PostScriptPlugin"/> 92 <plugin name="PowerPointPlugin"/> 93 <plugin name="ExcelPlugin"/> 94 <plugin name="PagedImagePlugin"/> 95 <plugin name="ImagePlugin"/> 96 <plugin name="ISISPlugin"/> 97 <plugin name="NulPlugin"/> 98 <plugin name="OAIPlugin"/> 99 <plugin name="HTMLImagePlugin"/> 100 <plugin name="MetadataXMLPlugin"/> 101 <plugin name="ArchivesInfPlugin"/> 102 <plugin name="DirectoryPlugin"/> 103 </pluginList> 104 </import> 105 <browse> 106 <classifier name="List"> 107 <option name="-metadata" value="dc.Title;Title"/> 108 <option name="-partition_type_within_level" value="approximate_size"/> 109 <option name="-bookshelf_type" value="never"/> 110 </classifier> 111 <classifier name="AZCompactList"> 112 <option name="-metadata" value="Source"/> 113 <option name="-removesuffix" value="(?i)\\..*"/> 114 <option name="-buttonname" value="Source"/> 115 </classifier> 116 <format> 117 <gsf:template match="documentNode"> 118 <td valign="top"> 119 <gsf:link type="document"> 120 <gsf:icon type="document"/> 121 </gsf:link> 122 </td> 123 <td valign="top"> 124 <gsf:link type="source"> 125 <gsf:choose-metadata> 126 <gsf:metadata name="thumbicon"/> 127 <gsf:metadata name="srcicon"/> 128 </gsf:choose-metadata> 129 </gsf:link> 130 </td> 131 <td valign="top"> 132 <gsf:link type="document"> 133 <gsf:choose-metadata> 134 <gsf:metadata name="dc.Title"/> 135 <gsf:metadata name="exp.Title"/> 136 <gsf:metadata name="Title"/> 137 <gsf:default>Untitled</gsf:default> 138 </gsf:choose-metadata> 139 </gsf:link> 140 <gsf:switch> 141 <gsf:metadata name="Source"/> 142 <gsf:when test="exists"> 143 <br/> 144 <i>(<gsf:metadata name="Source"/>)</i> 145 </gsf:when> 146 </gsf:switch> 147 </td> 148 </gsf:template> 149 <gsf:template match="classifierNode"> 150 <td valign="top"> 151 <gsf:link type="classifier"> 152 <gsf:icon type="classifier"/> 153 </gsf:link> 154 </td> 155 <td valign="top"> 156 <gsf:metadata name="srclink"/> 157 <gsf:choose-metadata> 158 <gsf:metadata name="thumbicon"/> 159 <gsf:metadata name="srcicon"/> 160 </gsf:choose-metadata> 161 <gsf:metadata name="/srclink"/> 162 </td> 163 <td valign="top"> 164 <gsf:choose-metadata> 165 <gsf:metadata name="dc.Title"/> 166 <gsf:metadata name="exp.Title"/> 167 <gsf:metadata name="Title"/> 168 <gsf:default>Untitled</gsf:default> 169 </gsf:choose-metadata> 170 <gsf:switch> 171 <gsf:metadata name="Source"/> 172 <gsf:when test="exists"> 173 <br/> 174 <i>(<gsf:metadata name="Source"/>)</i> 175 </gsf:when> 176 </gsf:switch> 177 </td> 178 </gsf:template> 179 <gsf:template match="classifierNode" mode="horizontal"> 180 <gsf:link type="horizontal"> 181 <gsf:metadata name="Title"/> 182 </gsf:link> 183 </gsf:template> 184 </format> 185 </browse> 186 <display> 187 <format> 188 <gsf:option name="sideBar" value="false"/> 189 <xsl:template name="additionalHeaderContent"> 190 <!-- 93 191 <link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css"/> 94 <link rel="stylesheet" href="http://blueimp.github.com/Bootstrap-Image-Gallery/bootstrap-image-gallery.min.css"/> --> 95 <!--[if lt IE 7]><link rel="stylesheet" href="http://blueimp.github.com/Bootstrap-Image-Gallery/bootstrap-ie6.min.css"><![endif]--> 96 <!-- 192 <link rel="stylesheet" href="http://blueimp.github.com/Bootstrap-Image-Gallery/bootstrap-image-gallery.min.css"/> --><!--[if lt IE 7]><link rel="stylesheet" href="http://blueimp.github.com/Bootstrap-Image-Gallery/bootstrap-ie6.min.css"><![endif]--><!-- 97 193 <link rel="stylesheet" href="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.fileupload-ui.css"/> 98 194 … … 112 208 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/tmpl.min.js"><xsl:text> </xsl:text></script> 113 209 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/load-image.min.js"><xsl:text> </xsl:text></script> 114 --> 115 <!--<script id="template-upload" type="text/html"> 116 {% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %} 117 <tr class="template-upload fade"> 118 <td class="preview"><span class="fade"></span></td> 119 <td class="name">{%=file.name%}</td> 120 <td class="size">{%=o.formatFileSize(file.size)%}</td> 121 {% if (file.error) { %} 122 <td class="error" colspan="2"><span class="label important">Error</span> {%=fileUploadErrors[file.error] || file.error%}</td> 123 {% } else if (o.files.valid && !i) { %} 124 <td class="progress"><div class="progressbar"><div style="width:0%;"></div></div></td> 125 <td class="start">{% if (!o.options.autoUpload) { %}<button class="btn primary">Start</button>{% } %}</td> 126 {% } else { %} 127 <td colspan="2"></td> 128 {% } %} 129 <td class="cancel">{% if (!i) { %}<button class="btn info">Cancel</button>{% } %}</td> 130 </tr> 131 {% } %} 132 </script> 133 <script id="template-download" type="text/html"> 134 {% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %} 135 <tr class="template-download fade"> 136 {% if (file.error) { %} 137 <td></td> 138 <td class="name">{%=file.name%}</td> 139 <td class="size">{%=o.formatFileSize(file.size)%}</td> 140 <td class="error" colspan="2"><span class="label important">Error</span> {%=fileUploadErrors[file.error] || file.error%}</td> 141 {% } else { %} 142 <td class="preview">{% if (file.thumbnail_url) { %} 143 <a href="{%=file.url%}" title="{%=file.name%}" rel="gallery"><img src="{%=file.thumbnail_url%}"/></a> 144 {% } %}</td> 145 <td class="name"> 146 <a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}">{%=file.name%}</a> 147 </td> 148 <td class="size">{%=o.formatFileSize(file.size)%}</td> 149 <td colspan="2"></td> 150 {% } %} 151 <td class="delete"> 152 <button class="btn danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}">Delete</button> 153 <input type="checkbox" name="delete" value="1"/> 154 </td> 155 </tr> 156 {% } %} 157 </script>--> 158 159 <!-- jQuery must be included before Annotator --> 160 <!-- <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/jquery.js">--> 161 <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"><xsl:text> </xsl:text></script>--> 162 <!-- If you're sure your users will only be using browsers modern 210 --><!-- jQuery must be included before Annotator --><!-- <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/jquery.js">--><!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"><xsl:text> </xsl:text></script>--><!-- If you're sure your users will only be using browsers modern 163 211 enough to have their own JSON.parse and JSON.stringify 164 implementations you can skip this --> 165 <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/json2.js"> 166 <xsl:text> </xsl:text> 167 </script> 168 <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator-full.min.js"> 169 <xsl:text> </xsl:text> 170 </script> 171 <!-- The main Annotator script --> 172 <!--<script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.min.js"><xsl:text> </xsl:text></script> --> 173 <!-- Annotator's styling and images --> 174 <link href="sites/localsite/collect/peijones/js/annotator/pkg/annotator.min.css" rel="stylesheet" type="text/css"/> 175 <!-- The following plugins are entirely optional --> 176 <!-- The Store plugin. Saves annotations to a remote backend --> 177 <!-- <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.store.min.js"><xsl:text> </xsl:text></script> --> 178 <!-- The Auth plugin. Allows users of Annotator to authenticate themselves 179 to the remote backend --> 180 <!--<script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.auth.min.js"><xsl:text> </xsl:text></script> --> 181 <!-- The Permissions plugin. See who created which annotation and create 182 annotations as a specified user --> 183 <!--<script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.permissions.min.js"><xsl:text> </xsl:text></script> --> 184 <!-- The Tags plugin. Edit and display tag keywords on annotations --> 185 <!--<script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.tags.min.js"><xsl:text> </xsl:text></script> --> 186 <!-- The Markdown plugin. Treat annotation text as Markdown --> 187 <!-- <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/showdown.js"><xsl:text> </xsl:text></script> --> 188 <!-- <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.markdown.min.js"><xsl:text> </xsl:text></script> --> 189 <!-- Photo note scripts --> 190 <script src="sites/localsite/collect/peijones/js/documentmaker/BrowserDetect.js" type="text/javascript"> 191 <xsl:text> </xsl:text> 192 </script> 193 <script src="sites/localsite/collect/peijones/js/documentmaker/PhotoNotes-1.5.js" type="text/javascript"> 194 <xsl:text> </xsl:text> 195 </script> 196 <link href="sites/localsite/collect/peijones/style/PhotoNotes-1.5.css" rel="stylesheet" type="text/css"/> 197 <!-- Zoom scripts --> 198 <!--<script src="interfaces/{$interface_name}/js/jquery-1.4.2.js" type="text/javascript"><xsl:text> </xsl:text></script>--> 199 <script src="sites/localsite/collect/peijones/js/documentmaker/zoomer.jquery.js" type="text/javascript"> 200 <xsl:text> </xsl:text> 201 </script> 202 <link href="sites/localsite/collect/peijones/style/style.css" rel="stylesheet" type="text/css"/> 203 <script type="text/javascript"> 204 <xsl:text disable-output-escaping="yes"> 205 _zoomEnabled = true; 212 implementations you can skip this --> <xsl:if test="not(/page/pageRequest/paramList/param[@name ='p.docEdit'])"> 213 <script src="sites/localsite/collect/peijones/js/annotator/lib/vendor/json2.js"> 214 <xsl:text> </xsl:text> </script> 215 <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator-full.min.js"> 216 <xsl:text> </xsl:text> </script> 217 <link href="sites/localsite/collect/peijones/js/annotator/pkg/annotator.min.css" rel="stylesheet" type="text/css"/> 218 </xsl:if> 219 <!-- The main Annotator script --><!--<script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.min.js"><xsl:text> </xsl:text></script> --><!-- Annotator's styling and images --><!-- The following plugins are entirely optional --><!-- The Store plugin. Saves annotations to a remote backend --><!-- <script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.store.min.js"><xsl:text> </xsl:text></script> --><!-- The Auth plugin. Allows users of Annotator to authenticate themselves 220 to the remote backend --><!--<script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.auth.min.js"><xsl:text> </xsl:text></script> --><!-- The Permissions plugin. See who created which annotation and create 221 annotations as a specified user --><!--<script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.permissions.min.js"><xsl:text> </xsl:text></script> --><!-- The Tags plugin. Edit and display tag keywords on annotations --><!--<script src="sites/localsite/collect/peijones/js/annotator/pkg/annotator.tags.min.js"><xsl:text> </xsl:text></script> --><!-- The Markdown plugin. Treat annotation text as Markdown --><!-- <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> --><!-- Photo note scripts --> <xsl:if test="not(/page/pageRequest/paramList/param[@name ='p.docEdit'])"> 222 <script src="sites/localsite/collect/peijones/js/documentmaker/BrowserDetect.js" type="text/javascript"> 223 <xsl:text> </xsl:text> </script> 224 <script src="sites/localsite/collect/peijones/js/documentmaker/PhotoNotes-1.5.js" type="text/javascript"> 225 <xsl:text> </xsl:text> </script> 226 <link href="sites/localsite/collect/peijones/style/PhotoNotes-1.5.css" rel="stylesheet" type="text/css"/> 227 </xsl:if> 228 <!-- Zoom scripts --><!--<script src="interfaces/{$interface_name}/js/jquery-1.4.2.js" type="text/javascript"><xsl:text> </xsl:text></script>--> <script src="sites/localsite/collect/peijones/js/documentmaker/zoomer.jquery.js" type="text/javascript"> 229 <xsl:text> </xsl:text> </script> 230 <link href="sites/localsite/collect/peijones/style/style.css" rel="stylesheet" type="text/css"/> 231 <script type="text/javascript"> 232 <xsl:text disable-output-escaping="yes">_zoomEnabled = true; 206 233 207 234 function readyImagesForZoom() … … 276 303 } 277 304 } 278 </xsl:text> 279 </script> 280 <script text="text/javascript"> 281 <xsl:text disable-output-escaping="yes"> 282 283 var _posCount = 0; 305 </xsl:text> </script> 306 <script text="text/javascript"> 307 <xsl:text disable-output-escaping="yes">var _posCount = 0; 284 308 var _notes; 285 309 function initNotes() … … 367 391 var metaposStr = (note && note.id && note.id > 0) ? note.id - 1 : _posCount; 368 392 369 var saveIndexURL = "cgi-bin/metadata-server.pl?a=set-metadata&site=localsite&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&metaname=gsimg.photoNote&meta value=" + jsonVal + "&metapos=" + metaposStr;370 var saveArchivesURL = "cgi-bin/metadata-server.pl?a=set-archives-metadata&site=localsite&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&metaname=gsimg.photoNote&meta value=" + jsonVal + "&metapos=" + metaposStr;371 var saveImportURL = "cgi-bin/metadata-server.pl?a=set-import-metadata&site=localsite&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&metaname=gsimg.photoNote&meta value=" + jsonVal + "&metapos=" + metaposStr;393 var saveIndexURL = "cgi-bin/metadata-server.pl?a=set-metadata&site=localsite&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&metaname=gsimg.photoNote&metamode=override&metavalue=" + jsonVal + "&metapos=" + metaposStr; 394 var saveArchivesURL = "cgi-bin/metadata-server.pl?a=set-archives-metadata&site=localsite&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&metaname=gsimg.photoNote&metamode=override&metavalue=" + jsonVal + "&metapos=" + metaposStr; 395 var saveImportURL = "cgi-bin/metadata-server.pl?a=set-import-metadata&site=localsite&c=" + gs.cgiParams.c + "&d=" + gs.cgiParams.d + "&metaname=gsimg.photoNote&metamode=override&metavalue=" + jsonVal + "&metapos=" + metaposStr; 372 396 YAHOO.util.Connect.asyncRequest("GET", saveIndexURL, saveIndexCallback); 373 397 YAHOO.util.Connect.asyncRequest("GET", saveArchivesURL, saveArchivesCallback); … … 443 467 } 444 468 445 $(window).load(function(){readyImagesForZoom(); initAnnotator(); addStatusBar(); initNotes();}); 446 </xsl:text> 447 </script> 448 <script text="text/javascript"> 449 <xsl:text disable-output-escaping="yes"> 450 451 function checkLoop(pid, serverFunction, callback) 469 function prepopulateAnnotatorSearchBar() 470 { 471 if(gs.cgiParams.s1_query && gs.cgiParams.s1_index == "GE") 472 { 473 $("#annotator-filter-text").val(gs.cgiParams.s1_query).keyup().blur(); 474 console.log("AAA"); 475 } 476 477 if(gs.cgiParams.s1_query && gs.cgiParams.s1_index == "GT") 478 { 479 $("#annotator-filter-tags").val(gs.cgiParams.s1_query).keyup().blur(); 480 console.log("BBB"); 481 } 482 483 if(gs.cgiParams.s1_query && gs.cgiParams.s1_index == "GX") 484 { 485 $("#annotator-filter-user").val(gs.cgiParams.s1_query).keyup().blur(); 486 console.log("CCC"); 487 } 488 } 489 490 function addPrevNextPageButtons() 491 { 492 var buttonDiv = document.createElement("DIV"); 493 var buttonTable = document.createElement("TABLE"); 494 var buttonRow = document.createElement("TR"); 495 var buttonPrevCell = document.createElement("TD"); 496 var buttonNextCell = document.createElement("TD"); 497 buttonRow.appendChild(buttonPrevCell); 498 buttonRow.appendChild(buttonNextCell); 499 buttonTable.appendChild(buttonRow); 500 buttonDiv.appendChild(buttonTable); 501 502 buttonDiv.setAttribute("style", "width:100%"); 503 buttonTable.setAttribute("style", "margin:auto;"); 504 buttonPrevCell.setAttribute("style", "padding:10px;"); 505 buttonNextCell.setAttribute("style", "padding:10px;"); 506 507 document.getElementById("gs-document-text").appendChild(buttonDiv); 508 509 gs.functions.getArchivesMetadata(gs.cgiParams.c, "localsite", gs.cgiParams.d, "SourceFile", null, function(meta) 510 { 511 var sourceFilename = meta.getValue(); 512 var fileNameSegments = sourceFilename.split("-"); 513 var finalSegment = fileNameSegments[fileNameSegments.length-1]; 514 515 var extIndex = finalSegment.indexOf("."); 516 var ext = ""; 517 if(extIndex != -1) 518 { 519 ext = finalSegment.substring(extIndex); 520 finalSegment = finalSegment.substring(0, extIndex); 521 } 522 var finalNumber = parseInt(finalSegment); 523 524 var prevFilename = ""; 525 var nextFilename = ""; 526 for(var i = 0; i < fileNameSegments.length - 1; i++) 527 { 528 prevFilename += fileNameSegments[i] + "-"; 529 nextFilename += fileNameSegments[i] + "-"; 530 } 531 532 if(finalNumber - 1 >= 0) 533 { 534 var prevFinalNumber = "" + (finalNumber - 1); 535 while(prevFinalNumber.length < finalSegment.length) 536 { 537 prevFinalNumber = "0" + prevFinalNumber; 538 } 539 prevFilename += prevFinalNumber + ext; 540 541 prevButtonCallback = 542 { 543 success:function(response) 544 { 545 var text = response.responseText; 546 var startIndex = text.indexOf("nodeID=\""); 547 if(startIndex == -1) 548 { 549 return; 550 } 551 startIndex += 8; 552 endIndex = text.indexOf("\"", startIndex + 1); 553 554 var id = text.substring(startIndex, endIndex); 555 556 var prevLink = document.createElement("A"); 557 prevLink.innerHTML = "Previous Page"; 558 prevLink.setAttribute("href", gs.xsltParams.library_name + "?a=d&d=" + id + "&c=" + gs.cgiParams.c + "&dt=hierarchy&ed=1"); 559 buttonPrevCell.appendChild(prevLink); 560 }, 561 failed:function(response){console.log("Search for previous document failed");} 562 } 563 YAHOO.util.Connect.asyncRequest("GET", gs.xsltParams.library_name + "?a=q&sa=&rt=rd&s=TextQuery&c=peijones&startPage=1&s1.query=" + prevFilename.replace(/-/g, " ") + "&s1.index=SO&o=xml", prevButtonCallback); 564 } 565 566 var nextFinalNumber = "" + (finalNumber + 1); 567 while(nextFinalNumber.length < finalSegment.length) 568 { 569 nextFinalNumber = "0" + nextFinalNumber; 570 } 571 nextFilename += nextFinalNumber + ext; 572 573 nextButtonCallback = 574 { 575 success:function(response) 576 { 577 var text = response.responseText; 578 var startIndex = text.indexOf("nodeID=\""); 579 if(startIndex == -1) 580 { 581 return; 582 } 583 startIndex += 8; 584 endIndex = text.indexOf("\"", startIndex + 1); 585 586 var id = text.substring(startIndex, endIndex); 587 588 var nextLink = document.createElement("A"); 589 nextLink.innerHTML = "Next Page"; 590 nextLink.setAttribute("href", gs.xsltParams.library_name + "?a=d&d=" + id + "&c=" + gs.cgiParams.c + "&dt=hierarchy&ed=1"); 591 buttonNextCell.appendChild(nextLink); 592 }, 593 failed:function(response){console.log("Search for next document failed");} 594 } 595 596 YAHOO.util.Connect.asyncRequest("GET", gs.xsltParams.library_name + "?a=q&sa=&rt=rd&s=TextQuery&c=peijones&startPage=1&s1.query=" + nextFilename.replace(/-/g, " ") + "&s1.index=SO&o=xml", nextButtonCallback); 597 }); 598 } 599 600 function addSocialLinks() 601 { 602 var socialLinksDiv = document.createElement("DIV"); 603 socialLinksDiv.setAttribute("class", "addthis_toolbox addthis_default_style"); 604 605 var facebookLink = document.createElement("A"); 606 facebookLink.setAttribute("class", "addthis_button_facebook_like"); 607 facebookLink.setAttribute("fb:like:layout", "button_count"); 608 socialLinksDiv.appendChild(facebookLink); 609 610 var twitterLink = document.createElement("A"); 611 twitterLink.setAttribute("class", "addthis_button_tweet"); 612 socialLinksDiv.appendChild(twitterLink); 613 614 var gplusLink = document.createElement("A"); 615 gplusLink.setAttribute("class", "addthis_button_google_plusone"); 616 gplusLink.setAttribute("g:plusone:size", "medium"); 617 socialLinksDiv.appendChild(gplusLink); 618 619 var addThisLink = document.createElement("A"); 620 addThisLink.setAttribute("class", "addthis_counter addthis_pill_style"); 621 socialLinksDiv.appendChild(addThisLink); 622 623 var script = document.createElement("SCRIPT"); 624 script.setAttribute("type", "text/javascript"); 625 script.setAttribute("src", "http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f5fe0cf41940d54"); 626 socialLinksDiv.appendChild(script); 627 628 document.getElementById("gs-document-text").appendChild(socialLinksDiv); 629 } 630 631 </xsl:text> 632 <xsl:if test="not(/page/pageRequest/paramList/param[@name ='p.docEdit'])"> 633 <xsl:text disable-output-escaping="yes"> 634 $(window).load(function(){readyImagesForZoom(); initAnnotator(); addStatusBar(); initNotes(); addPrevNextPageButtons(); addSocialLinks(); }); 635 </xsl:text> 636 </xsl:if> 637 </script> 638 <script text="text/javascript"> 639 <xsl:text disable-output-escaping="yes">function checkLoop(pid, serverFunction, callback) 452 640 { 453 641 var startLoop = function() … … 708 896 { 709 897 // Include AnnotateIt credentials to load the store plugin. 710 //$('#gs-document-text').annotator().annotator('setupPlugins', {711 //userId: 'papitha',712 //userName: 'Papitha',713 //accountId: '39fc339cf058bd22176771b3e33c5dac',714 //authToken: '852b7fc25396d2aedf9aeb44dd58518faa679dbf027892164bfb81900bd09741',715 $('#gs-document-text').annotator().annotator('setupPlugins', {716 userId: 'david',717 userName: 'David',718 accountId: 'eb096fae65f6377160ffc0eb6c000951',719 authToken: '92b3279a6b6edbaa2ed7bc4d895ef55c8f1368877bb69987985aa47195d517e7',898 $('#gs-document-text').annotator().annotator('setupPlugins', { 899 userId: 'papitha', 900 userName: 'Papitha', 901 accountId: '39fc339cf058bd22176771b3e33c5dac', 902 authToken: '852b7fc25396d2aedf9aeb44dd58518faa679dbf027892164bfb81900bd09741', 903 // $('#gs-document-text').annotator().annotator('setupPlugins', { 904 // userId: 'david', 905 // userName: 'David', 906 // accountId: 'eb096fae65f6377160ffc0eb6c000951', 907 // authToken: '92b3279a6b6edbaa2ed7bc4d895ef55c8f1368877bb69987985aa47195d517e7', 720 908 }, { 721 909 Store: … … 728 916 } 729 917 } 730 </xsl:text> 731 </script> 732 </xsl:template> 733 <xsl:template name="documentImage"> 734 <!-- Get the photo notes for this document node --> 735 <gsf:variable-struct name="photoNotes"> 736 <gsf:metadata multiple="true" name="gsimg.photoNote" separator=", "/> 737 </gsf:variable-struct> 738 <!-- Get details about the image for zooming --> 739 <h3> 740 <gsf:choose-metadata> 741 <gsf:metadata name="dc.Title"/> 742 <gsf:metadata name="ex.Title"/> 743 </gsf:choose-metadata> 744 </h3> 745 <xsl:variable name="imageWidth"> 746 <gsf:choose-metadata> 747 <gsf:metadata name="ImageWidth"/> 748 <gsf:default>-1</gsf:default> 749 </gsf:choose-metadata> 750 </xsl:variable> 751 <xsl:variable name="imageHeight"> 752 <gsf:choose-metadata> 753 <gsf:metadata name="ImageHeight"/> 754 <gsf:default>-1</gsf:default> 755 </gsf:choose-metadata> 756 </xsl:variable> 757 <xsl:variable name="screenImageWidth"> 758 <gsf:choose-metadata> 759 <gsf:metadata name="ScreenWidth"/> 760 <gsf:default>-1</gsf:default> 761 </gsf:choose-metadata> 762 </xsl:variable> 763 <xsl:variable name="screenImageHeight"> 764 <gsf:choose-metadata> 765 <gsf:metadata name="ScreenHeight"/> 766 <gsf:default>-1</gsf:default> 767 </gsf:choose-metadata> 768 </xsl:variable> 769 <script type="text/javascript"> 770 <xsl:text>largeImageHeight =</xsl:text> 771 <xsl:value-of select="$imageHeight"/> 772 <xsl:text>;</xsl:text> 773 <xsl:text>largeImageWidth =</xsl:text> 774 <xsl:value-of select="$imageWidth"/> 775 <xsl:text>;</xsl:text> 776 <xsl:text>smallImageHeight =</xsl:text> 777 <xsl:value-of select="$screenImageHeight"/> 778 <xsl:text>;</xsl:text> 779 <xsl:text>smallImageWidth =</xsl:text> 780 <xsl:value-of select="$screenImageWidth"/> 781 <xsl:text>;</xsl:text> 782 </script> 783 <span class="ui-state-default ui-corner-top" onclick="AddNote();" style="font-size:90%; padding: 3px; cursor:pointer;">New photo annotation</span> 784 <div id="noZoom" style="display:block;"> 785 <img id="noZoomImage" style="width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 786 <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" select="root"/>/<gsf:metadata name="Screen"/></xsl:attribute> 787 </img> 788 <!-- 918 </xsl:text> </script> 919 </xsl:template> 920 <xsl:template name="documentImage"> 921 <!-- Get the photo notes for this document node --> <gsf:variable-struct name="photoNotes"> 922 <gsf:metadata multiple="true" name="gsimg.photoNote" separator=", "/> 923 </gsf:variable-struct> 924 <!-- Get details about the image for zooming --> <h3> 925 <gsf:choose-metadata> 926 <gsf:metadata name="dc.Title"/> 927 <gsf:metadata name="ex.Title"/> 928 </gsf:choose-metadata> 929 </h3> 930 <xsl:variable name="imageWidth"> 931 <gsf:choose-metadata> 932 <gsf:metadata name="ImageWidth"/> 933 <gsf:default>-1</gsf:default> 934 </gsf:choose-metadata> 935 </xsl:variable> 936 <xsl:variable name="imageHeight"> 937 <gsf:choose-metadata> 938 <gsf:metadata name="ImageHeight"/> 939 <gsf:default>-1</gsf:default> 940 </gsf:choose-metadata> 941 </xsl:variable> 942 <xsl:variable name="screenImageWidth"> 943 <gsf:choose-metadata> 944 <gsf:metadata name="ScreenWidth"/> 945 <gsf:default>-1</gsf:default> 946 </gsf:choose-metadata> 947 </xsl:variable> 948 <xsl:variable name="screenImageHeight"> 949 <gsf:choose-metadata> 950 <gsf:metadata name="ScreenHeight"/> 951 <gsf:default>-1</gsf:default> 952 </gsf:choose-metadata> 953 </xsl:variable> 954 <script type="text/javascript"> 955 <xsl:text>largeImageHeight = </xsl:text> <xsl:value-of select="$imageHeight"/> 956 <xsl:text>;</xsl:text> 957 <xsl:text>largeImageWidth = </xsl:text> <xsl:value-of select="$imageWidth"/> 958 <xsl:text>;</xsl:text> 959 <xsl:text>smallImageHeight = </xsl:text> <xsl:value-of select="$screenImageHeight"/> 960 <xsl:text>;</xsl:text> 961 <xsl:text>smallImageWidth = </xsl:text> <xsl:value-of select="$screenImageWidth"/> 962 <xsl:text>;</xsl:text> 963 </script> 964 <span class="ui-state-default ui-corner-top" onclick="AddNote();" style="font-size:90%; padding: 3px; cursor:pointer;">New Image Annotation </span> <div id="noZoom" style="display:block;"> 965 <img id="noZoomImage" style="width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 966 <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" select="root"/>/<gsf:metadata name="Screen"/></xsl:attribute> 967 </img> 968 <!-- 789 969 <gsf:metadata name="screenicon"/> 790 --> 791 </div> 792 <!--<xsl:if test="$imageHeight != -1">--> 793 <div id="wrap" style="display:none; width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 794 <div id="small" style="width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 795 <!-- 970 --> </div> 971 <!--<xsl:if test="$imageHeight != -1">--> <div id="wrap" style="display:none; width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 972 <div id="small" style="width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 973 <!-- 796 974 <gsf:metadata name="screenicon"/> 797 --> 798 <img id="smallImage" style="width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 799 <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" select="root"/>/<gsf:metadata name="Screen"/></xsl:attribute> 800 </img> 801 </div> 802 <div id="mover"> 803 <div id="overlay"> 804 <xsl:text> </xsl:text> 975 --> <img id="smallImage" style="width: {$screenImageWidth}px; height: {$screenImageHeight}px;"> 976 <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" select="root"/>/<gsf:metadata name="Screen"/></xsl:attribute> 977 </img> 978 </div> 979 <div id="mover"> 980 <div id="overlay"> 981 <xsl:text> </xsl:text> </div> 982 <div id="large" style="width: {$imageWidth}px; height: {$imageHeight}px;"> 983 <img id="largeImage" style="width: {$imageWidth}px; height: {$imageHeight}px;"> 984 <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" select="root"/>/<gsf:metadata name="srclinkFile"/></xsl:attribute> 985 </img> 986 </div> 987 </div> 805 988 </div> 806 <div id="large" style="width: {$imageWidth}px; height: {$imageHeight}px;"> 807 <img id="largeImage" style="width: {$imageWidth}px; height: {$imageHeight}px;"> 808 <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" select="root"/>/<gsf:metadata name="srclinkFile"/></xsl:attribute> 809 </img> 989 <div class="btn btn-primary start" style="margin-bottom:5px;"> 990 <a style="color:white;"> 991 <xsl:attribute name="href"> 992 <xsl:value-of select="$library_name"/> 993 <xsl:text>?downloadFile=</xsl:text> 994 <xsl:text>sites/localsite/collect/</xsl:text> 995 <xsl:value-of select="/page/pageResponse/collection/@name"/> 996 <xsl:text>/index/assoc/</xsl:text> 997 <gsf:metadata name="assocfilepath"/> 998 <xsl:text>/</xsl:text> 999 <gsf:metadata name="SourceFile"/> 1000 </xsl:attribute> 1001 <xsl:text>Download Image </xsl:text> </a> 810 1002 </div> 811 </div> 812 </div> 813 814 <div class="btn btn-primary start" style="margin-bottom:5px;"> 815 <a style="color:white;"> 816 <xsl:attribute name="href"> 817 <xsl:value-of select="$library_name"/> 818 <xsl:text>?downloadFile=</xsl:text> 819 <xsl:text>sites/localsite/collect/</xsl:text> 820 <xsl:value-of select="/page/pageResponse/collection/@name"/> 821 <xsl:text>/index/assoc/</xsl:text> 822 <gsf:metadata name="assocfilepath"/> 823 <xsl:text>/</xsl:text> 824 <gsf:metadata name="SourceFile"/> 825 </xsl:attribute> 826 <xsl:text>Download Image</xsl:text> 827 </a> 828 </div> 829 830 <xsl:choose> 831 <xsl:when test="/page/pageRequest/paramList/param[@name = 'p.oldUpload']/@value = 'true'"> 832 <form action="dev?a=d&c={/page/pageResponse/collection/@name}&d={/page/pageResponse/document/documentNode/@nodeID}&dt=simple&ed=1" enctype="multipart/form-data" method="post"> 833 <input name="fl" type="hidden"> 1003 <xsl:choose> 1004 <xsl:when test="/page/pageRequest/paramList/param[@name = 'p.oldUpload']/@value = 'true'"><!-- <form action="dev?a=d&c={/page/pageResponse/collection/@name}&d={/page/pageResponse/document/documentNode/@nodeID}&dt=simple&ed=1" enctype="multipart/form-data" method="post"> 1005 <input name="fl" type="hidden"> 834 1006 <xsl:attribute name="value"> 835 1007 <xsl:text>/sites/localsite/collect/</xsl:text> … … 861 1033 <input type="submit" value="Send"/> 862 1034 </div> 863 </form> 864 </xsl:when> 865 <xsl:otherwise> 866 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/tmpl.min.js"><xsl:text> </xsl:text></script> 867 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/load-image.min.js"><xsl:text> </xsl:text></script> 868 869 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.iframe-transport.js"><xsl:text> </xsl:text></script> 870 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.fileupload.js"><xsl:text> </xsl:text></script> 871 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.fileupload-ui.js"><xsl:text> </xsl:text></script> 872 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/application.js"><xsl:text> </xsl:text></script> 873 874 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/bootstrap.min.js"><xsl:text> </xsl:text></script> 875 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/bootstrap-image-gallery.min.js"><xsl:text> </xsl:text></script> 876 877 <link href="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.fileupload-ui.css" rel="stylesheet"/> 878 <link href="sites/localsite/collect/peijones/js/jQuery-File-Upload/bootstrap.min.css" rel="stylesheet"/> 879 <link href="sites/localsite/collect/peijones/js/jQuery-File-Upload/bootstrap-responsive.min.css" rel="stylesheet"/> 880 <!--[if lt IE 7]><link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap-ie6.min.css"><![endif]--> 881 <link href="sites/localsite/collect/peijones/js/jQuery-File-Upload/cors/bootstrap-image-gallery.min.css" rel="stylesheet"/> 882 883 <script type="text/javascript"> 884 <xsl:text disable-output-escaping="yes"> 885 $(window).load(function() 1035 </form>--> </xsl:when> <xsl:otherwise> 1036 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/tmpl.min.js"> 1037 <xsl:text> </xsl:text> </script> 1038 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/load-image.min.js"> 1039 <xsl:text> </xsl:text> </script> 1040 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.iframe-transport.js"> 1041 <xsl:text> </xsl:text> </script> 1042 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.fileupload.js"> 1043 <xsl:text> </xsl:text> </script> 1044 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.fileupload-ui.js"> 1045 <xsl:text> </xsl:text> </script> 1046 <!--<script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/application.js"><xsl:text> </xsl:text></script>--> <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/bootstrap.min.js"> 1047 <xsl:text> </xsl:text> </script> 1048 <script src="sites/localsite/collect/peijones/js/jQuery-File-Upload/bootstrap-image-gallery.min.js"> 1049 <xsl:text> </xsl:text> </script> 1050 <link href="sites/localsite/collect/peijones/js/jQuery-File-Upload/jquery.fileupload-ui.css" rel="stylesheet"/> 1051 <link href="sites/localsite/collect/peijones/js/jQuery-File-Upload/bootstrap.min.css" rel="stylesheet"/> 1052 <link href="sites/localsite/collect/peijones/js/jQuery-File-Upload/bootstrap-responsive.min.css" rel="stylesheet"/> 1053 <!--[if lt IE 7]><link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap-ie6.min.css"><![endif]--> <link href="sites/localsite/collect/peijones/js/jQuery-File-Upload/cors/bootstrap-image-gallery.min.css" rel="stylesheet"/> 1054 <script type="text/javascript"> 1055 <xsl:text disable-output-escaping="yes">$(window).load(function() 886 1056 { 887 1057 $('#fileupload').fileupload(); … … 900 1070 }); 901 1071 }); 902 </xsl:text> 903 </script> 904 905 <script id="template-upload" type="text/html"> 906 <xsl:text disable-output-escaping="yes"> 907 {% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %} 1072 </xsl:text> </script> 1073 <script id="template-upload" type="text/html"> 1074 <xsl:text disable-output-escaping="yes">{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %} 908 1075 <tr class="template-upload fade"> 909 1076 <td class="preview"><span class="fade"></span></td> … … 931 1098 </tr> 932 1099 {% } %} 933 </xsl:text> 934 </script> 935 936 <script id="template-download" type="text/html"> 937 <xsl:text disable-output-escaping="yes"> 938 {% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %} 1100 </xsl:text> </script> 1101 <script id="template-download" type="text/html"> 1102 <xsl:text disable-output-escaping="yes">{% for (var i=0, files=o.files, l=files.length, file=files[0]; i<l; file=files[++i]) { %} 939 1103 <tr class="template-download fade"> 940 1104 {% if (file.error) { %} … … 955 1119 </tr> 956 1120 {% } %} 957 </xsl:text> 958 </script> 959 960 <form action="dev" enctype="multipart/form-data" id="fileupload" method="POST"> 961 <input name="ajaxUpload" type="hidden" value="true"/> 962 <input name="fl" type="hidden"> 963 <xsl:attribute name="value"> 964 <xsl:text>/sites/localsite/collect/</xsl:text> 965 <xsl:value-of select="/page/pageResponse/collection/@name"/> 966 <xsl:text>/index/assoc/</xsl:text> 967 <gsf:metadata name="assocfilepath"/> 968 <xsl:text>/</xsl:text> 969 <gsf:metadata name="SourceFile"/> 970 <xsl:text>:</xsl:text> 971 <xsl:text>/sites/localsite/collect/</xsl:text> 972 <xsl:value-of select="/page/pageResponse/collection/@name"/> 973 <xsl:text>/index/assoc/</xsl:text> 974 <gsf:metadata name="assocfilepath"/> 975 <xsl:text>/</xsl:text> 976 <gsf:metadata name="Screen"/> 977 <xsl:text>:</xsl:text> 978 <xsl:text>/sites/localsite/collect/</xsl:text> 979 <xsl:value-of select="/page/pageResponse/collection/@name"/> 980 <xsl:text>/index/assoc/</xsl:text> 981 <gsf:metadata name="assocfilepath"/> 982 <xsl:text>/</xsl:text> 983 <gsf:metadata name="Thumb"/> 984 </xsl:attribute> 985 </input> 986 <div class="row fileupload-buttonbar"> 987 <div class="span6" style="margin-left:30px;"> 988 <span class="btn btn-success fileinput-button"> 989 <span><i class="icon-plus icon-white"><xsl:text> </xsl:text></i> Add files...</span> 990 <input multiple="" name="files[]" type="file"/> 991 </span> 992 <button class="btn btn-primary start" type="submit"> 993 <i class="icon-upload icon-white"><xsl:text> </xsl:text></i> Start upload 994 </button> 995 <button class="btn btn-warning cancel" type="reset"> 996 <i class="icon-ban-circle icon-white"><xsl:text> </xsl:text></i> Cancel upload 997 </button> 998 </div> 999 <div class="span6"> 1000 <div class="progress progress-success progress-striped active fade"> 1001 <div class="bar" style="width:0%;"><xsl:text> </xsl:text></div> 1121 </xsl:text> </script> 1122 <form action="dev" enctype="multipart/form-data" id="fileupload" method="POST"> 1123 <input name="ajaxUpload" type="hidden" value="true"/> 1124 <input name="fl" type="hidden"> 1125 <xsl:attribute name="value"> 1126 <xsl:text>/sites/localsite/collect/</xsl:text> 1127 <xsl:value-of select="/page/pageResponse/collection/@name"/> 1128 <xsl:text>/index/assoc/</xsl:text> 1129 <gsf:metadata name="assocfilepath"/> 1130 <xsl:text>/</xsl:text> 1131 <gsf:metadata name="SourceFile"/> 1132 <xsl:text>:</xsl:text> 1133 <xsl:text>/sites/localsite/collect/</xsl:text> 1134 <xsl:value-of select="/page/pageResponse/collection/@name"/> 1135 <xsl:text>/index/assoc/</xsl:text> 1136 <gsf:metadata name="assocfilepath"/> 1137 <xsl:text>/</xsl:text> 1138 <gsf:metadata name="Screen"/> 1139 <xsl:text>:</xsl:text> 1140 <xsl:text>/sites/localsite/collect/</xsl:text> 1141 <xsl:value-of select="/page/pageResponse/collection/@name"/> 1142 <xsl:text>/index/assoc/</xsl:text> 1143 <gsf:metadata name="assocfilepath"/> 1144 <xsl:text>/</xsl:text> 1145 <gsf:metadata name="Thumb"/> 1146 </xsl:attribute> 1147 </input> 1148 <div class="row fileupload-buttonbar"> 1149 <div class="span6" style="margin-left:30px;"> 1150 <span class="btn btn-success fileinput-button"> 1151 <span> 1152 <i class="icon-plus icon-white"> 1153 <xsl:text> </xsl:text> </i> 1154 Add files... </span> 1155 <input multiple="" name="files[]" type="file"/> 1156 </span> 1157 <button class="btn btn-primary start" type="submit"> 1158 <i class="icon-upload icon-white"> 1159 <xsl:text> </xsl:text> </i> 1160 Start upload 1161 </button> 1162 <button class="btn btn-warning cancel" type="reset"> 1163 <i class="icon-ban-circle icon-white"> 1164 <xsl:text> </xsl:text> </i> 1165 Cancel upload 1166 </button> 1167 </div> 1168 <div class="span6"> 1169 <div class="progress progress-success progress-striped active fade"> 1170 <div class="bar" style="width:0%;"> 1171 <xsl:text> </xsl:text> </div> 1172 </div> 1173 </div> 1002 1174 </div> 1003 </div> 1004 </div> 1005 <br/> 1006 <table class="table table-striped"><tbody class="files" data-target="#modal-gallery" data-toggle="modal-gallery"><xsl:text> </xsl:text></tbody></table> 1007 </form> 1008 </xsl:otherwise> 1009 </xsl:choose> 1010 <!--</xsl:if>--> 1011 </xsl:template> 1012 </format></display><replaceListRef id="gs2-standard"/><replaceListRef id="gs2-image"/><serviceRackList> 1175 <br/> 1176 <table class="table table-striped"> 1177 <tbody class="files" data-target="#modal-gallery" data-toggle="modal-gallery"> 1178 <xsl:text> </xsl:text> </tbody> 1179 </table> 1180 </form> 1181 </xsl:otherwise> 1182 </xsl:choose> 1183 <!--</xsl:if>--> </xsl:template> 1184 </format> 1185 </display> 1186 <replaceListRef id="gs2-standard"/> 1187 <replaceListRef id="gs2-image"/> 1188 <serviceRackList> 1013 1189 <!-- comment out the following serviceRack if you want to disable OAI for this collection --> 1014 <serviceRack name="OAIPMH"> 1015 <ListMetadataFormats> 1190 1191 <serviceRack name="OAIPMH"> 1192 1193 <ListMetadataFormats> 1016 1194 <!--What metadata sets to support is collection specific. To support other metadata schema, simply add a metadataFormat element here. 1017 1195 The support of unqualified Dublin Core metadata set is mandatory in the oai specification. 1018 1196 --> 1019 <metadataFormat metadataPrefix="oai_dc"> 1020 <metadataPrefix>oai_dc</metadataPrefix> 1021 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema> 1022 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace> 1197 1198 <metadataFormat metadataPrefix="oai_dc"> 1199 1200 <metadataPrefix>oai_dc</metadataPrefix> 1201 1202 <schema>http://www.openarchives.org/OAI/2.0/oai_dc.xsd</schema> 1203 1204 <metadataNamespace>http://www.openarchives.org/OAI/2.0/oai_dc/</metadataNamespace> 1023 1205 <!--<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> 1024 1206 --> 1025 <mappingList> 1207 1208 <mappingList> 1026 1209 <!-- 1027 1210 The mapping is in the form: <publicly supported metadata name>,<mapped metadata name>, short as <A>,<B> … … 1035 1218 **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. 1036 1219 --> 1037 <mapping>dc.Title,Title</mapping> 1220 1221 <mapping>dc.Title,Title</mapping> 1038 1222 <!-- 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. --> 1039 </mappingList> 1040 </metadataFormat> 1041 </ListMetadataFormats> 1042 </serviceRack> 1043 </serviceRackList></CollectionConfig> 1223 1224 </mappingList> 1225 1226 </metadataFormat> 1227 1228 </ListMetadataFormats> 1229 1230 </serviceRack> 1231 1232 </serviceRackList> 1233 </CollectionConfig>
Note:
See TracChangeset
for help on using the changeset viewer.