Version 4.4.4

Version No4.4.4
Release Date 
About this ReleasePatch release with minor enhancements and fixes
Modules affected

Data Share, iShare GIS, iShare Maps, Logger, Publisher, Studio

Logger

Changes to way Logger loads scripts

We have made changes to the way we load Logger scripts in iShare. Previously there were many JavaScript files that had to be included separately. Now there are fewer files and almost all of them are loaded dynamically by a new JavaScript function.

New Method

This new JavaScript function (Astun.JS.IncludeJS) can, and in fact should, also in turn call any Logger-related code that is intended to run on pageLoad. In this way we can ensure that Logger has finished loading before running any code that depends on it.

The new way to load Logger code is as follows (pageLoad is the function used initialise the Logger map):

New Method
<script type="text/javascript" src="js/lib/prototype-1.6.0.3.js"></script>
<script type="text/javascript" src="FileIncluderJS.aspx"></script>
<script type="text/javascript">
    Event.observe( window, 'load', function(){
        Astun.JS.IncludeJS('logger',pageLoad);});
</script>

 

The files that this loads have been concatenated from the original script files and have been compressed by Yahoo's YUI JS compressor. They are stamped with a revision number so that new versions are always used whilst old ones can be cached by a client indefinitely:

  • atMapSettingsJS.aspx (uncompressed)
  • atJSlangSettings.aspx (uncompressed)
  • jscom/common.NNNNN.js
  • jscom/OpenlayersIsharemaps.NNNNN.js
  • jscom/commonMap.NNNNN.js
  • jscom/jQueryCommon.NNNNN.js
  • jscom/jQueryUiLib.NNNNN.js
  • jscom/logger.NNNNN.js

Old Method

The new method replaces the following script file elements:

Old Method
<script src="js/lib/prototype-1.6.0.3.js" type="text/javascript"></script>
<script src="js/atCommon.js" type="text/javascript"></script>
<script src="js/atStateManager.js" type="text/javascript"></script>
<script src="js/getData.js" type="text/javascript"></script>
<script src="js/lib/OpenLayers/OpenLayers.js" type="text/javascript"></script>
<script src="js/atExtendOpenLayers.js" type="text/javascript"></script>
<script src="js/atolMapSourceManager.js" type="text/javascript"></script>
<script src="js/atolMapWrapper.js" type="text/javascript"></script>
<script src="js/atolLayerControl.js" type="text/javascript"></script>
<script src="js/atolInteractControl.js" type="text/javascript"></script>
<script src="atMapSettingsJS.aspx" type="text/javascript"></script>
<script src="js/Logger.js" type="text/javascript"></script>
<!-- Including jQuery Core JS files -->
    <script type="text/javascript" src="js/lib/jquery/jquery-1.3.2.min.js"></script>
<!-- End of Including jQuery Core JS files -->
<!-- Including jQuery Plugins JS files -->
    <script type="text/javascript" src="js/jquery/plugins/jquery.scrollto.js"></script>
    <script type="text/javascript" src="js/jquery/plugins/jquery.panels.js"></script>
    <script type="text/javascript" src="js/jquery/plugins/jquery.advancedoptions.js"></script>
<!-- End of including jQuery Plugins JS files -->
<!-- Including jQuery JS files -->
    <!-- Including jQuery UI JS files -->
    <script type="text/javascript" src="js/lib/jquery/ui/ui.core.js"></script>
        <script type="text/javascript" src="js/lib/jquery/ui/ui.tabs.js"></script>
        <script type="text/javascript" src="js/lib/jquery/ui/ui.draggable.js"></script>
        <script type="text/javascript" src="js/lib/jquery/ui/ui.resizable.js"></script>
        <script type="text/javascript" src="js/lib/jquery/ui/ui.dialog.js"></script>
        <script type="text/javascript" src="js/lib/jquery/ui/effects.core.js"></script>
        <script type="text/javascript" src="js/lib/jquery/ui/effects.slide.js"></script>
        <script type="text/javascript" src="js/lib/jquery/ui/effects.highlight.js"></script>
    <!-- End of Including jQuery UI JS files -->
    <!-- Including jQuery Plugins JS files -->
        <script type="text/javascript" src="js/jquery/jquery.core.js"></script>
        <script type="text/javascript" src="js/jquery/ui/ui.panel.js"></script>
        <script type="text/javascript" src="js/jquery/ui/ui.sortable.js"></script>
        <script type="text/javascript" src="js/jquery/plugins/jquery.panelswrapper.js"></script>
        <script type="text/javascript" src="js/jquery/plugins/jquery.tooltip.js"></script>
    <!-- End of jQuery Plugins JS files -->
<!-- End of including jQuery JS files -->

And an on-page-load event such as:

on-page-load event
Event.observe( window, 'load', pageLoad );

Publisher

Search Algorithm is now configurable

  • In order that existing customers do not see any changes to their results, changes to the search behaviour is now configurable through the Data Share configuration file. These consist of the following options:
  • Only do one exact match, don't do any subsequent passes.
  • Ignore threshold, always do three passes in the order Exact Match, Wildcard, Fuzzy Match.
  • Allow the threshold between wildcard and fuzzy match to be changed, currently fuzzy kicks in when the search term is four characters long or above.
  • Allow the fuzzy distance to be changed - currently 0.5

Other Fixes

  • Fixed the problem where searching sometimes failed when the values in the FILTERMATCH column include punctuation.
  • Fixed the problem where results starting with “z” were sometimes not being returned via FILTERMATCH searches.
  • Publisher now only returns records matching the FILTERMATCH index type AND the FULLTEXT index type. Previously the FULLTEXT index type was being ignored.
  • Entering 'the' in a FULLTEXT search field now does not return any records; previously it was returning all records. Note: The word ‘the’ is a stop word and as such is ignored.

iShare Studio

  • The Test Task button has been removed from Studio due to errors.
  • Whenever an RSS feed Data Source is clicked on in Studio an xml file is created. This file is now saved to a folder Temp under the current Studio folder and no longer hard coded as c:\test.xml. The Temp folder will be created if it doesn't exist.
  • The virtual layer tag of ##parentuid## now correctly returns the USRN [Unique Street Reference Number] for the property.
  • When configuring a Thematic Layer only populate the Layer Name dropdown selection with PostGIS layers and not all layers in the MapServer .map file.

Data Share

  • Customers may wish to run two or more PostgreSQL servers e.g. version 8.4 and 9.0 on the same host. Using the existing PgOleDb driver it was not possible to specify the port, but there is a patched version which does allow you to do this by specifying the port in the Extended Properties part of the connection string. The new PgOleDb driver has been included in the Astun 3rd Party Installer. Please see the topic Changing Data Share Port number for details.
  • There was a problem with PostgreSQL 9.0 with the 'build from' SQL functions for Location Searching. Each of the functions for CAPS, Compass, Innogistic, MVM, NLPG, Plantec, Symphony and SX3 have been updated.

iShare Maps

  • There was an issue with Internet Explorer 7 where the map Navigation control was hidden when a user clicked the Change (address) button in My Maps. The map redraws and the control is no longer visible. This has been rectified.
  • Layer Headings are now hidden for blank Display Names - <h4> tags won't be written out at all if a Display Name is blank.

iShare Lite

  • iShare Lite now correctly loads the specified map.

iShare GIS

  • Fixed problem where the Info click was not working when Map Source security had been enabled i.e. Roles.