Changeset 7543

Show
Ignore:
Timestamp:
03/24/09 13:07:47 (16 months ago)
Author:
josowski
Message:

Rolled back r7542, we decided on doing this in a different manner

Location:
head/ambra/webapp/src/main
Files:
1 removed
5 modified

Legend:

Unmodified
Added
Removed
  • head/ambra/webapp/src/main/java/org/topazproject/ambra/search/action/SearchAction.java

    r7542 r7543  
    270270          cal.add(Calendar.MONTH, -3); 
    271271        } 
    272         if ("6months".equals(dateTypeSelect)) { 
    273           cal.add(Calendar.MONTH, -6); 
    274         } 
    275272 
    276273        synchronized(luceneDateFormat) { 
  • head/ambra/webapp/src/main/resources/ehcache.xml

    r7250 r7543  
    116116            properties="peerDiscovery=automatic, 
    117117                        multicastGroupAddress=230.0.0.1, 
    118                         multicastGroupPort=4446"/> 
     118                        multicastGroupPort=6666"/> 
    119119 
    120120 
  • head/ambra/webapp/src/main/resources/freemarker.properties

    r6310 r7543  
    2222template_exception_handler=rethrow  
    2323time_zone="UTC" 
    24 template_update_delay=600 
     24template_update_delay=0 
    2525localized_lookup=false 
    2626cache_storage=strong:350, soft 
  • head/ambra/webapp/src/main/webapp/javascript/advsearch.js

    r7542 r7543  
    5858    ambra.advsearch.liAuthNmesOpts = dojo.byId(ambra.advsearch.Config.idLiAuthNmesOpts); 
    5959 
    60     //Manage date entry section, but only if is defined 
    61     if (dojo.byId(ambra.advsearch.Config.idPubDateOptions) != null) { 
    62       var slct = dojo.byId(ambra.advsearch.Config.idPublishDate); 
    63       var showDates = (slct.options[slct.selectedIndex].value == 'range'); 
    64       dojo.byId(ambra.advsearch.Config.idPubDateOptions).style.display = showDates ? '' : 'none'; 
    65       dojo.connect(dojo.byId(ambra.advsearch.Config.idPublishDate), "onchange", ambra.advsearch.onChangePublishDate); 
    66  
    67       // date part comment cue event bindings... 
    68       dojo.connect(dojo.byId('startDateId'), "onfocus", ambra.advsearch.onFocusCommentCueInputHandler); 
    69       dojo.connect(dojo.byId('endDateId'), "onfocus", ambra.advsearch.onFocusCommentCueInputHandler); 
    70     } 
     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 
    7170 
    7271    // subject categories section... 
     
    8988    ambra.advsearch.explodeAuthNames(); 
    9089 
    91     //Prime the startDate and endDate pop-up calendars only if they are defined 
    92     if (dojo.byId(ambra.advsearch.Config.idPubDateOptions) != null) { 
    93       Calendar.setup({ 
    94         inputField     :    "startDateId",    // id of the input field 
    95         ifFormat       :    "%Y-%m-%d",       // format of the input field 
    96         step           :    1                // show all years in drop-down boxes (instead of every other year as default) 
    97       }); 
    98       Calendar.setup({ 
    99         inputField     :    "endDateId",      // id of the input field 
    100         ifFormat       :    "%Y-%m-%d",       // format of the input field 
    101         step           :    1                // show all years in drop-down boxes (instead of every other year as default) 
    102       }); 
    103     } 
     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    }); 
    104101  }, 
    105102 
  • head/ambra/webapp/src/main/webapp/javascript/global_js.ftl

    r7437 r7543  
    4141  var djConfig = { 
    4242    // don't debug for IE - as dojo's firebug lite module is error prone in IE 
    43                 isDebug: ${freemarker_config.dojoDebug?string} && !(parseFloat(navigator.appVersion.split("MSIE ")[1]) || 0), 
     43                isDebug: false, 
    4444    parseOnLoad: true 
    4545        };