Geographic Search & Display Leila M. Gonzales American

Geographic Search & Display Leila M. Gonzales American

Geographic Search & Display Leila M. Gonzales American Geosciences Institute VuFind Summit 2016 Villanova University October 10, 2016 AGIs Online Database Products 10K - 300K records depending on database DB/Text platform Metadata only

no full-text or map search Records contain geo-coordinates points and rectangles Ocean Drilling Citation Database Initial Implementation Geographic Search Custom code based on Moravian

Librarys implementation using VuFind 2.4 and OpenLayers 2.13 Initial Implementation Limitations Custom implementation Different APIs for search & display Geographic Search Only displays search box Uses OpenLayers 2.13 API

Geographic Display Popups for rectangles needs improvement Uses Google Maps API Google now requires API key VuFind 3.1 Geo Search & Display Preserve GoogleMap functionality Add new geographic functionality Update Solr indexing routines Add OpenLayers geo search & display code Support multiple points and rectangles per record

Add configurable options VuFind 3.1 Geo Search & Display InputData.mrc Record 20001 =034 $d $e $f $g $z =034 $d $e $f $g $z =034 $d $e $f $g $z =034 $d $e $f $g $z =034 $d $e $f $g $z Solr location_geo long_lat

long_lat_display long_lat_label Geographic Display Geographic Search Indexing Geographic Data InputData.mrc Record 20001 =034 $d $e $f $g $z =034 $d $e $f $g $z =034 $d $e $f $g $z =034 $d $e $f $g $z

=034 $d $e $f $g $z Coordinates: 034 $d $e $f $g Decimal degrees or Degrees-min-sec Hemisphere: EW NS or +/Coordinate order: WENS Points and/or Rectangles Coordinate labels: 034 $z Or use lookup table to assign labels by coordinate lookup Put lookup table in local/config/vufind/ =034 =034 =034

0\$aa$d+46.4$e+40.4$f+31.5$g+28.50$zSite 447 0\$aa$dW10.1$eW10.1$fS5.7$gS5.7$zSite 440 0\$aa$dW1172630$eW1172630$fN661503$gN661503$zSite 393 Indexing Geographic Data InputData.mrc Record 20001 =034 $d $e $f $g $z =034 $d $e $f $g $z =034 $d $e $f $g $z =034 $d $e $f $g $z =034 $d $e $f $g $z

Solr location_geo: coordinates as BboxField type long_lat: for GoogleMaps display only long_lat_display: coordinate as in .mrc file long_lat_label: stored coordinate labels schema.xml: updated to include above fields and geo field type (see Solr Spatial Search Guide on BboxField type) marc_local.properties: configure indexing of geographic fields location.bsh: geographic indexing routines Solr Spatial Search Guide: https://

cwiki.apache.org/confluence/display/solr/Spatial+Search Geographic Display GoogleMap Key Points Only point features Labels: Use stored labels or lookup table Must have GoogleMap API key config.ini ;Geographic Display recordMap = google mapLabels = driver OR

mapLabels = file:lookup.txt googleMapApiKey = API Key Geographic Display OpenLayers Key Points Points and Rectangles Labels: Use stored labels or lookup table Display coordinates Translation of pop-up title (map_results_label) config.ini ;Geographic Display recordMap = openlayers

mapLabels = driver OR mapLabels = file:lookup.txt displayCoords = true (or false) Geographic Display Customize RecordTab/map.phtml Also contains GoogleMap javascript code js/map_tab_ol.js OpenLayers javascript code RecordTab/Factory.php RecordTab/Map.php

RecordDriver/SolrDefault.php Geographic Search localhost/vufind/Search/Results?filter[]= bbox_geo:Intersects(ENVELOPE(-95, 30, 72, 15)) Geographic Search Geographic Search Solr Bbox query against location_geo Zoom in / out (uncluster / cluster) Clusters <5 records: Pop-up with titles linked to

records Displays center point of the first geographic feature of each record that intersects search box. Solr location_geo title id Geographic Search Click on Geographic Search in search box Click on Draw Search Box, then click-drag-click search box

Geographic Search Help Need Help? Uses VuFind help system Easier to maintain for language translation Geographic Search - Configure Configurable options Default search box coordinates Dont make it too

large or too small Focus on area of most results Height Height of map interface in pixels searches.ini ;default_top_recommend[ ] = MapSelection [MapSelection]

default_coordinates = -95, 30, 72, 15 height = 320 Geographic Search - Configure Configurable options Search parameter to allow searching by coordinate string. Queries against long_lat_display searches.ini [Basic_Searches]

;Coordinate = Coordinates [Advanced_Searches] ;Coordinate = Coordinates [Autocomplete_Types] Coordinate = None searchspecs.yaml Coordinate: DismaxFields: - long_lat_display DismaxHandler: edismax Geographic Search Customize Recommend/MapSelection.phtml

search/searchbox.phtml If enabled in searches.ini, Geographic Search option appears in search box. root/templates/HelpTranslations/en/geosearch.phtml js/map_selection.js Recommend/MapSelection.php View/Helper/Root/GeoCoords.php Returns geo search URL Geographic Support Code OpenLayers 3.17.1 code js/vendor/ol/ol.js , ol-debug.js css/vendor/ol/ol.css

RecordDriver/SolrDefault.php getLongLat getGeoLocation getDisplayCoordinates getCoordinateLabels CSS styling add geoItem class for pop-ups css/compiled.css less/components/search.less Future Improvements Polygon storage and search Fall-back logic for map tab label field

Support OpenLayers cluster pop-up information Mouse-over to highlight all points associated with cluster Better handling of multiple features / center point calculations Specification of base map layer Option for graticule (lat/long grid) display on map More like this or Similar Items Map Recommendation module https://vufind.org/jira/browse/VUFIND-1199 Thank you for your attention Leila M. Gonzales [email protected]

American Geosciences Institute www.americangeosciences.org

Recently Viewed Presentations

  • Stem Cells, Cancer, and Human Health

    Stem Cells, Cancer, and Human Health

    Figure 16.4 DNA Fingerprinting Can Be Used to Identify Criminals. The DNA profile on the far left is that of the defendant (D) in a murder trial. The profile on the far right is that of the victim (V). The...
  • The Retention/Promotion Checklist

    The Retention/Promotion Checklist

    The Retention/Promotion Checklist Jim Grant and Irv Richardson Presented by Kristi Waltke Gap between Research and Practice (Retention is a controversial topic.) Retention is seen as a remedy for many struggling student across the country (mostly by teachers). Retention is...
  • CABI TOURISM TEXTS 2nd Edition Tourism Information Technology

    CABI TOURISM TEXTS 2nd Edition Tourism Information Technology

    Identify two search engines (e.g. Bing and Google)and compare and contrast how they deal with travel requests. Do this by choosing a specific trip you would like to go on. We have presented a number of elements that make tourism...
  • AM8: Family Engagement Practices to Foster Safe and ...

    AM8: Family Engagement Practices to Foster Safe and ...

    "The afternoon knows what the morning never suspected." ― Robert Frost We have learned that we MUST… Make it meaningful. What is the value proposition for participants and are we making that apparent at all times?
  • Symbols of British public places - Académie de Poitiers

    Symbols of British public places - Académie de Poitiers

    Symbols of British public places Symbols of British public places Imagine you are going to LONDON for the week-end! What WILL you DO there? First, match the verbs …then speak Visit See Take pictures of Do some shopping Walk in...
  • &quot;Diseño de Practicas de Configuración de Routers HUAWEI para ...

    "Diseño de Practicas de Configuración de Routers HUAWEI para ...

    Objetivo. Creación de prácticas para routers HUAWEI Quidway AR 28-30. Descripción clara del manejo y las características de cada uno de los equipos e instrumentos a utilizarse, enfocado principalmente al desarrollo de redes de datos.
  • Final Report of the 1995-96 SECDEF Fellows Program

    Final Report of the 1995-96 SECDEF Fellows Program

    Key advantages Strong belief in core values and innovative capability Assignment - Performance Coatings Professional Development Lead * * DuPont Observations Broad portfolio of businesses in unrelated industries Global support required Hard to determine core strategy given dispirit businesses Direct...
  • Valle Arribe water collection location before incubation after

    Valle Arribe water collection location before incubation after

    Valle Arribe water collection location before incubation after incubation with filtration Valle Arriba 5/25/18 Valle Arriba after filtration El Tenidero 5/26/18 El Pedregal 5/28/18 Corral Falso 5/29/18 Terrero Blanco 5/30/18 Nuevo Paraiso 5/29/18 E. Coli (MPN/100 mL) >100 9.1-9.6 >100...