Changeset 7544
- Timestamp:
- 03/24/09 13:30:56 (16 months ago)
- Location:
- head/ambra/webapp/src/main
- Files:
-
- 5 modified
-
java/org/topazproject/ambra/search/action/SearchAction.java (modified) (1 diff)
-
resources/ehcache.xml (modified) (1 diff)
-
resources/freemarker.properties (modified) (1 diff)
-
webapp/javascript/advsearch.js (modified) (2 diffs)
-
webapp/search/searchStart.ftl (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
head/ambra/webapp/src/main/java/org/topazproject/ambra/search/action/SearchAction.java
r7543 r7544 270 270 cal.add(Calendar.MONTH, -3); 271 271 } 272 if ("6months".equals(dateTypeSelect)) { 273 cal.add(Calendar.MONTH, -6); 274 } 272 275 273 276 synchronized(luceneDateFormat) { -
head/ambra/webapp/src/main/resources/ehcache.xml
r7543 r7544 116 116 properties="peerDiscovery=automatic, 117 117 multicastGroupAddress=230.0.0.1, 118 multicastGroupPort= 6666"/>118 multicastGroupPort=4446"/> 119 119 120 120 -
head/ambra/webapp/src/main/resources/freemarker.properties
r7543 r7544 22 22 template_exception_handler=rethrow 23 23 time_zone="UTC" 24 template_update_delay= 024 template_update_delay=600 25 25 localized_lookup=false 26 26 cache_storage=strong:350, soft -
head/ambra/webapp/src/main/webapp/javascript/advsearch.js
r7543 r7544 58 58 ambra.advsearch.liAuthNmesOpts = dojo.byId(ambra.advsearch.Config.idLiAuthNmesOpts); 59 59 60 // dates section... 61 var slct = dojo.byId(ambra.advsearch.Config.idPublishDate); 62 var showDates = (slct.options[slct.selectedIndex].value == 'range'); 63 dojo.byId(ambra.advsearch.Config.idPubDateOptions).style.display = showDates ? '' : 'none'; 64 dojo.connect(dojo.byId(ambra.advsearch.Config.idPublishDate), "onchange", ambra.advsearch.onChangePublishDate); 65 66 // date part comment cue event bindings... 67 dojo.connect(dojo.byId('startDateId'), "onfocus", ambra.advsearch.onFocusCommentCueInputHandler); 68 dojo.connect(dojo.byId('endDateId'), "onfocus", ambra.advsearch.onFocusCommentCueInputHandler); 69 60 61 //Manage date entry section, but only if is defined 62 if (dojo.byId(ambra.advsearch.Config.idPubDateOptions) != null) { 63 var slct = dojo.byId(ambra.advsearch.Config.idPublishDate); 64 var showDates = (slct.options[slct.selectedIndex].value == 'range'); 65 dojo.byId(ambra.advsearch.Config.idPubDateOptions).style.display = showDates ? '' : 'none'; 66 dojo.connect(dojo.byId(ambra.advsearch.Config.idPublishDate), "onchange", ambra.advsearch.onChangePublishDate); 67 68 // date part comment cue event bindings... 69 dojo.connect(dojo.byId('startDateId'), "onfocus", ambra.advsearch.onFocusCommentCueInputHandler); 70 dojo.connect(dojo.byId('endDateId'), "onfocus", ambra.advsearch.onFocusCommentCueInputHandler); 71 } 70 72 71 73 // subject categories section... … … 88 90 ambra.advsearch.explodeAuthNames(); 89 91 90 // Prime the startDate and endDate pop-up calendars... 91 Calendar.setup({ 92 inputField : "startDateId", // id of the input field 93 ifFormat : "%Y-%m-%d", // format of the input field 94 step : 1 // show all years in drop-down boxes (instead of every other year as default) 95 }); 96 Calendar.setup({ 97 inputField : "endDateId", // id of the input field 98 ifFormat : "%Y-%m-%d", // format of the input field 99 step : 1 // show all years in drop-down boxes (instead of every other year as default) 100 }); 92 //Prime the startDate and endDate pop-up calendars only if they are defined 93 if (dojo.byId(ambra.advsearch.Config.idPubDateOptions) != null) { 94 Calendar.setup({ 95 inputField : "startDateId", // id of the input field 96 ifFormat : "%Y-%m-%d", // format of the input field 97 step : 1 // show all years in drop-down boxes (instead of every other year as default) 98 }); 99 Calendar.setup({ 100 inputField : "endDateId", // id of the input field 101 ifFormat : "%Y-%m-%d", // format of the input field 102 step : 1 // show all years in drop-down boxes (instead of every other year as default) 103 }); 104 } 101 105 }, 102 106 -
head/ambra/webapp/src/main/webapp/search/searchStart.ftl
r7446 r7544 2 2 $HeadURL:: $ 3 3 $Id$ 4 4 5 5 Copyright (c) 2007-2009 by Topaz, Inc. 6 6 http://topazproject.org 7 7 8 8 Licensed under the Apache License, Version 2.0 (the "License"); 9 9 you may not use this file except in compliance with the License. 10 10 You may obtain a copy of the License at 11 11 12 12 http://www.apache.org/licenses/LICENSE-2.0 13 13 14 14 Unless required by applicable law or agreed to in writing, software 15 15 distributed under the License is distributed on an "AS IS" BASIS, … … 24 24 <#macro chkdlist tstr strlist><#list strlist as str><#if tstr == str>${checkedstr}</#if></#list></#macro> 25 25 <!-- begin : advanced search form --> 26 <div id="content" class="search"> 26 <div id="content" class="search"> 27 27 <!-- begin : right-hand column --> 28 28 <div id="rhc"> … … 48 48 <li class="btnWrap"><input type="submit" id="button-find" value="Go"/></li> 49 49 </ol> 50 </form> 50 </form> 51 51 </div>--> 52 52 </div> … … 58 58 <p>Search the full text of all issues of <em>${currentJournalName}</em></p> 59 59 <@s.url id="advSearchURL" includeParams="none" namespace="/search" action="advancedSearch" /> 60 <form id="advSearchForm" name="advSearchForm" onsubmit="return true;" action="${advSearchURL}" 60 <form id="advSearchForm" name="advSearchForm" onsubmit="return true;" action="${advSearchURL}" 61 61 method="post" enctype="multipart/form-data" class="advSearch" title="Advanced Search"> 62 62 <fieldset id="author"> 63 64 63 64 65 65 <legend><span>Search by Author</span></legend> 66 66 <ol id="as_ol_an"> … … 76 76 <ol> 77 77 <#if ((authorNameOp!"") == "any") || ((authorNameOp!"") == "")> 78 <#assign anyChecked = checkedstr> 79 <#assign allChecked = ""> 78 <#assign anyChecked = checkedstr> 79 <#assign allChecked = ""> 80 80 <#elseif (authorNameOp!"") == "all"> 81 <#assign anyChecked = ""> 82 <#assign allChecked = checkedstr> 81 <#assign anyChecked = ""> 82 <#assign allChecked = checkedstr> 83 83 </#if> 84 84 <li><label><input type="radio" name="authorNameOp" value="any" ${anyChecked} /> <em>Any</em> of these authors</label></li> … … 130 130 <option value="month" <@slctd tstr="month" str=(dateTypeSelect!"")/>>Past month</option> 131 131 <option value="3months" <@slctd tstr="3months" str=(dateTypeSelect!"")/>>Past 3 months</option> 132 <option value="range" <@slctd tstr="range" str=(dateTypeSelect!"")/>>Specify a date range...</option> 132 <option value="6months" <@slctd tstr="6months" str=(dateTypeSelect!"")/>>Past 6 months</option> 133 <#--Commenting out due to bug with Mulgara search 134 option value="range" <@slctd tstr="range" str=(dateTypeSelect!"")/>>Specify a date range...</option--> 133 135 </select> 134 136 </span> 135 137 </li> 136 <li id="pubDateOptions" class="options" style="display:none;"> 138 <#-- 139 Commenting out due to bug with Mulgara search 140 <li id="pubDateOptions" class="options" style="display:none;"> 137 141 <fieldset> 138 142 <legend>Published between: </legend> … … 146 150 </fieldset> 147 151 </li> 152 --> 148 153 </ol> 149 154 </fieldset> … … 175 180 </ul> 176 181 <#else> 177 There are no subjects in the system. 182 There are no subjects in the system. 178 183 </#if> 179 184 </fieldset>
