Mapping your library with Web Services and Google Maps
description
Transcript of Mapping your library with Web Services and Google Maps
![Page 1: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/1.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Mapping your library with Web Services and Google
MapsJohn Wohlers
Waubonsee Community College
![Page 2: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/2.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
![Page 3: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/3.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Technologies Used SirsiDynix Web Services API SirsiDynix E-Library PHP MySQL Google Maps API V3 Google Earth QR Codes Adobe Photoshop / Fireworks
![Page 4: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/4.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Drawing the map Scan floor plan Use layers to trace
– Vector drawing– Opacity
Permanent fixtures Remove scanned image No text or logos
![Page 5: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/5.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Adjust the alignment Locate library
– http://maps.google.com Screenshot
– Highest zoom (Level 20)– Import into layer
Orient map to screenshot Adjust scale Remove screenshot
![Page 6: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/6.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Embellish your map Add persistent text
– Room Numbers– Descriptors
Add logo Flourishes
![Page 7: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/7.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Preparing the map Download & Install MapTiler
– http://www.maptiler.org Geo locate your map image
– http://www.getlatlon.com/– Google Earth– Handheld GPS
![Page 8: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/8.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Tiling the Map Location Format: North South East
West– 41.66487457668102 41.66385936458253 -88.50639149534651 -
88.50750234162167
![Page 9: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/9.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Testing the tiles Test in browser
– googlemaps.html– version 2 API
Make adjustmentsif needed and re-export
Copy tiles to web server
![Page 10: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/10.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Getting Fancy Item location using SirsiDynix Web
Services QR Codes You are here
![Page 11: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/11.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
SirsiDynix Core Web Services
Standard Services Catalog searches Basic Item info
Security Services Authentication
Patron Services LICENCE REQUIRED Patron account info Renewals, Holds
Admin Services System policies
![Page 12: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/12.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Add Service Client ID Symphony Web Services Admin Client ID
– Google Maps– Web Services– No license
Custom Client ID’s not retained during upgrades as of 3.0
![Page 13: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/13.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Web Services in PHP PHP Modules & Libraries
– PHP SOAP module– WSDLProxyGenerator
Bug fix required
Define header Create client “Try / catch”
![Page 14: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/14.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Title Lookup Create lookup request Perform lookup
![Page 15: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/15.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Simple Database MySQL Stores location data
– Symphony location code– Call number range– Lat / Long data– Marker data
Varchar for Lat / Long due to length Example limited to four coordinates
![Page 16: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/16.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Schema “Locations “ table
![Page 17: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/17.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Location Data Google Earth
– Map overlay Draw regions using “Add Polygon”
– Export to KML Locate markers via “Add Placemark”
– Export to KML
![Page 18: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/18.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Physical Location Lookup Convert LC Call to sortable
– E185.61 .C6970 = E 0185.61C.6970 .0000
LC Sort library (‘LC_sortable.php’) MySQL query
![Page 19: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/19.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
JavaScript Define tile boundaries Create new
google.maps.ImageMapType Create new map object Overlay ImageMapType Marker JavaScript
– Dynamically generated by PHP
![Page 20: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/20.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Enhancing eLibrary Copy “dispholdings.h” to
Pages_custom/Elib_revD Include custom map.h file
![Page 21: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/21.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
eLibrary - Map.h Custom HTML / JavaScript
– eLibrary uses Prototype JavaScript framework
![Page 22: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/22.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
The End Result: New Books
![Page 23: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/23.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
The End Result: Stacks
![Page 24: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/24.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
The End Result: Reserves
![Page 25: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/25.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Additional Resources This presentation
– http://bit.ly/h6Wt4b Google Maps API Family
– http://code.google.com/apis/maps/index.html
Google I/O 2009 Map HowTo– http://code.google.com/p/googleio2009-
map/wiki/HowTo
![Page 26: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/26.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
WSDL Proxy PHP library WSDL Proxy
– http://www.phpbuilder.com/columns/adam_delves20060606.php3
– Patch:@@ -20,6 +20,7 @@ preg_match("/([a-z0-9_]+)\s+([a-z0-9_]+(\[\])?)(.*)?/si", $type, $matches); $type = $matches[1];+ $name = $matches[2]; switch($type) { /* if the data type is struct, we create a class with this name */
![Page 27: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/27.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Email: [email protected] Instant Messenger: cap60552 Twitter: cap60552 Facebook: http://www.facebook.com/wohlers In person at the conference
Questions?
![Page 28: Mapping your library with Web Services and Google Maps](https://reader036.fdocuments.us/reader036/viewer/2022081520/56815de4550346895dcc0ca0/html5/thumbnails/28.jpg)
C O S U G I 2 0 1 1 P H O E N I X, A R I Z O N A
Why type it…