Changeset 37904 for gs3-installations/thewillow
- Timestamp:
- 2023-08-08T22:26:29+12:00 (10 months ago)
- Location:
- gs3-installations/thewillow/trunk/interfaces/thewillow
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-installations/thewillow/trunk/interfaces/thewillow/style/core-extra.css
r37889 r37904 362 362 363 363 364 364 365 .navList { 365 366 background-color: var(--gs-primary-bg); … … 412 413 } 413 414 415 #gs_content .rt-column a, #gs_content .rt-column a:link, #gs_content .rt-column a:visited { 416 border-bottom: none; 417 padding-bottom: 1px; 418 } 419 420 #gs_content .rt-column a:hover { 421 border-bottom: none; 422 padding-bottom: 1px; 423 background-color: #E6E6E6; 424 } 425 426 427 #gs_content .rt-column:hover { 428 background-color: #E6E6E6; 429 } -
gs3-installations/thewillow/trunk/interfaces/thewillow/transform/layouts/header.xsl
r37882 r37904 16 16 17 17 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular|Roboto+Slab:regular|Oswald:regular&subset=latin,latin-ext" media="all" /> 18 19 <gsf:script src="interfaces/{$interface_name}/js/thewillow-extra.js"/> 18 20 </xsl:template> 19 21 … … 584 586 <li id="query-tab" class="ui-state-default ui-corner-top ui-state-active"> 585 587 <a> 586 <xsl:attribute name="href"> 587 <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collNameChecked"/>/search/TextQuery 588 </xsl:attribute> 588 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collNameChecked"/>/search/AdvancedFieldQuery</xsl:attribute> 589 589 Explore More 590 590 </a> 591 591 </li> 592 </xsl:if> 592 </xsl:if> 593 <li id="query-tab" class="ui-state-default ui-corner-top ui-state-active"> 594 <a target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLSfnO4e7YL-6ZCNRjbH0FsOpOlSZsnoTkjPOOh2-xgrbYpq6lA/viewform"> 595 Add Your Memories 596 </a> 597 </li> 593 598 </xsl:template> 594 599 -
gs3-installations/thewillow/trunk/interfaces/thewillow/transform/pages/query.xsl
r37868 r37904 9 9 extension-element-prefixes="java util" 10 10 exclude-result-prefixes="java util gsf"> 11 12 13 14 <xsl:template name="queryPage"> 15 <xsl:for-each select="pageResponse/service"> 16 <xsl:variable name="form_action"><xsl:value-of select="$library_name"/>/<xsl:if test="$collName">collection/<xsl:value-of select="$collName"/>/</xsl:if>search/<xsl:value-of select="@name"/></xsl:variable> 17 <form id="QueryForm" name="QueryForm" method="get" action="{$form_action}" 18 onsubmit="return twFormToGSQuery()" 19 style="width: 100%; background-color: #E6E6E6; margin-top: 1.5rem; padding: 0 1.5rem 1.5rem 1.5rem;"> 20 <div> 21 <input type="hidden" name="a" value="q"/> 22 <input type="hidden" name="sa"> 23 <xsl:attribute name="value"> 24 <xsl:value-of select="/page/pageRequest/@subaction"/> 25 </xsl:attribute> 26 </input> 27 <input type="hidden" name="rt" value="rd"/> 28 29 <input type="hidden" name="s1.level" value="Doc"/> 30 <input type="hidden" name="s1.sortBy" value="rank"/> 31 <input type="hidden" name="s1.reverseSort" value="0"/> 32 33 <input type="hidden" name="s1.matchMode" value="some"/> 34 35 <input type="hidden" name="s1.hitsPerPage" value="20"/> 36 <input type="hidden" name="s1.startPage" value="1"/> 37 38 <!-- 39 <div style="display: none;"> 40 <xsl:variable name="ns">s1.</xsl:variable> 41 <xsl:choose> 42 <xsl:when test="/page/pageResponse/hierarchy and paramList/param[@name ='collection']"> 43 <xsl:call-template name="CCSParams"> < ! - - cross coll search - - > 44 <xsl:with-param name="ns" select="$ns" /> 45 </xsl:call-template> 46 </xsl:when> 47 <xsl:otherwise> 48 <xsl:for-each select="paramList/param"> 49 <xsl:choose> 50 <xsl:when test="@type='multi'"> 51 <xsl:apply-templates select="."> 52 <xsl:with-param name="ns" select="$ns"/> 53 </xsl:apply-templates> 54 </xsl:when> 55 <xsl:otherwise> 56 <xsl:call-template name="param-display"> 57 <xsl:with-param name="ns" select="$ns"/> 58 </xsl:call-template> 59 </xsl:otherwise> 60 </xsl:choose> 61 </xsl:for-each> 62 </xsl:otherwise> 63 </xsl:choose> 64 <br/> 65 </div> 66 --> 67 <style> 68 .exploremore-row { 69 padding-top: 1rem; 70 padding-bottom: 1rem; 71 } 72 73 .objecttype-checkbox { 74 float: left; 75 width: 33%; 76 padding-bottom: 0.8rem; 77 } 78 </style> 79 80 <!-- 81 a=q&sa=&rt=rd 82 &s1.level=Doc&s1.sortBy=rank&s1.reverseSort=0 83 &s1.hitsPerPage=20&s1.startPage=1 84 &s1.fqk= &s1.fqv=first&s1.fqf=TX 85 --> 86 87 <div class="exploremore-row"> 88 <div style="float: left; width: 20%;"> 89 <b>Keywords</b> 90 </div> 91 <div style="float: left; width: 80%"> 92 <input type="hidden" name="s1.fqk" value=""/> 93 <input type="hidden" name="s1.fqv" value="" class="fulltext-query-term"/> 94 <input type="hidden" name="s1.fqf" value="TE"/> 95 <input style="width: 100%;" type="text" id="fulltext-search-terms"/> 96 </div> 97 </div> 98 99 <div class="exploremore-row"> 100 <div style="float: left; width: 20%;"> 101 <b>Category</b> 102 </div> 103 <div style="float: left; width: 80%"> 104 <!-- AND, fielded object-types grouped together --> 105 <input type="hidden" name="s1.fqk" value="0"/> 106 <input type="hidden" name="s1.fqf" value="OB"/> 107 <input type="hidden" name="s1.fqv" value="" class="objecttype-query-term"/> 108 109 <div class="objecttype-checkbox"> 110 <input type="checkbox" class="obtype-field" id="obtype-articles" name="obtype-articles" value="Article"/> 111 <label for="obtype-articles">Articles</label> 112 </div> 113 <div class="objecttype-checkbox"> 114 <input type="checkbox" class="obtype-field" id="obtype-interviews" name="objtype-interviews" value="Interview"/> 115 <label for="obtype-interviews">Interviews</label> 116 </div> 117 <div class="objecttype-checkbox"> 118 <input type="checkbox" class="obtype-field" id="obtype-listings" name="obtype-listings" value="Listing"/> 119 <label for="obtype-listings">Listings</label> 120 </div> 121 122 <div class="objecttype-checkbox"> 123 <input type="checkbox" class="obtype-field" id="obtype-newspapers" name="obtype-newspapers" value="Newspaper"/> 124 <label for="obtype-newspapers">Newspapers</label> 125 </div> 126 <div class="objecttype-checkbox"> 127 <input type="checkbox" class="obtype-field" id="obtype-photographs" name="objtype-photographs" value="Photograph"/> 128 <label for="obtype-photographs">Photographs</label> 129 </div> 130 <div class="objecttype-checkbox"> 131 <input type="checkbox" class="obtype-field" id="obtype-videos" name="obtype-videos" value="Video"/> 132 <label for="obtype-videos">Videos</label> 133 </div> 134 135 136 </div> 137 </div> 138 <!-- 139 From ThomFong: 140 141 Articles 142 Interviews 143 Photographs 144 145 Artwork 146 Music 147 Memories 148 149 All 150 151 From Script List on archives 152 <Metadata name="tw.ObjectType">Interview Transcription </Metadata> 153 <Metadata name="tw.ObjectType">Newspaper Article (Microfilm)</Metadata> 154 <Metadata name="tw.ObjectType">Newspaper Article</Metadata> 155 <Metadata name="tw.ObjectType">Online Article</Metadata> 156 <Metadata name="tw.ObjectType">Online Listing</Metadata> 157 <Metadata name="tw.ObjectType">Photograph</Metadata> 158 <Metadata name="tw.ObjectType">Video</Metadata> 159 160 161 Article 162 Interview 163 Listing 164 Newspaper 165 Photograph 166 Video 167 --> 168 169 <div class="exploremore-row"> 170 <div style="width: 100%;"> 171 <div style="float: right;"> 172 <input type="reset"> 173 <xsl:attribute name="value"> 174 Reset 175 </xsl:attribute> 176 </input> 177 178 <input type="submit"> 179 <xsl:attribute name="value"> 180 Search 181 </xsl:attribute> 182 </input> 183 </div> 184 </div> 185 </div> 186 187 <div style="clear:both;"><xsl:text> </xsl:text></div> 188 189 </div> 190 </form> 191 </xsl:for-each> 192 193 194 <!-- 195 https://thewillow.so-we-must-think.space/greenstone3/library/collection/community-contributions/search/AdvancedFieldQuery? 196 a=q&sa=&rt=rd&s1.level=Doc&s1.sortBy=rank&s1.sortOrder=1 197 &s1.fqk=&s1.fqv=Photograph&s1.fqf=OB 198 &s1.fqk=0&s1.fqv=willow&s1.fqf=DE 199 &s1.fqk=0&s1.fqv=&s1.fqf=TE 200 &s1.fqk=0&s1.fqv=&s1.fqf=TE 201 &s1.hitsPerPage=20&s1.startPage=1 202 --> 203 204 <!-- first & second + third & fourth 205 206 a=q&sa=&rt=rd&s1.level=Doc&s1.sortBy=rank&s1.reverseSort=0 207 &s1.hitsPerPage=20&s1.startPage=1 208 &s1.fqk= &s1.fqv=first&s1.fqf=TX 209 &s1.fqk=0&s1.fqv=second&s1.fqf=TX 210 &s1.fqk=1&s1.fqv=third&s1.fqf=TX 211 &s1.fqk=0&s1.fqv=fourth 212 213 214 215 => s1.fqk=0 is AND 216 s1.fqk=1 is OR 217 218 --> 219 220 </xsl:template> 11 221 12 222 … … 38 248 width: 225px; 39 249 margin: 6px; 40 /*height: 300px;*/ /* Should be removed. Only for demonstration */ 41 height: 225px; 42 background-color: #f7f7f7; 250 height: 275px; 251 background-color: #FFFFFF; 43 252 } 44 253 254 /* 255 div.rt-column-center { 256 display: flex; 257 justify-content: center; 258 align-items: center; 259 } 260 */ 261 45 262 /* Clear floats after the columns */ 46 263 rt-row:after { … … 51 268 </style> 52 269 53 < tableid="resultsTable">270 <div id="resultsTable"> 54 271 <xsl:for-each select="pageResponse/documentNodeList/documentNode"> 55 272 <div id="div{@nodeID}" class="document rt-row" style="position: relative;"> … … 62 279 </xsl:for-each> 63 280 <br/> 64 </ table>281 </div> 65 282 66 283 <div style="clear:both;"><xsl:text> </xsl:text></div>
Note:
See TracChangeset
for help on using the changeset viewer.