The following documention outlines the API calls Scholars GeoPortal uses to access content from the database. These calls can be used by your institution to provide users with an alternate interface to access these same resources. This includes integration into discovery layers and catalogue systems.

Searching

Searching for records in Scholars Geoportal can be done by calling the Base URL 'http://geo2.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/index.html?limit=entitled&env=production&' followed by additional URL parameters as appropriate.
 

Here are a list of URL parameters you can use to retrieve specific results:

Note that each new parameters must be separated by an ampersand character '&'

> q = search terms (can be multiple)
Searching for 'water' - simply add '&q=water' to the end of the Base URL as follows http://geo.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/index.html?limit=entitled&env=production&q=water

> field = field constraints (can be multiple and defaults to 'anywhere' if left blank) accepts the following options KW for Keyword, TI for Title, AB for Abstract, SE for Series, bbox for Boundary Box, DR for Date Range, URI for Unique Resource Identifier
E.g searching for 'water' as a keyword - add '&q=water&field=KW' to the end of the Base URL as follows http://geo.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/index.html?limit=entitled&env=production&q=water&field=KW

> i = number of results per page (default is 10)
To display 100 results while searching for 'water' - add '&q=water&i=100' to the end of the Base URL as follows http://geo.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/index.html?limit=entitled&env=production&q=water&i=100

> p = page number
To display the second page of results while searching for 'water' - add '&q=water&p=2' to the end of the Base URL as follows http://geo.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/index.html?limit=entitled&env=production&q=water&p=2

> val = facet constrain 
To constrain a search to the keyword 'canada' while searching for 'water' add '&q=water&val=KW:"canada"' to the end of the Base URL as follows http://geo.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/index.html?limit=entitled&env=production&q=water&p=2

> fm = json or xml (default is json)
To display results in XML while searching for 'water' - add '&q=water&fm=xml' to the end of the Base URL as follows http://geo.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/index.html?limit=entitled&env=production&q=water&fm=xml

The Base URL also contains some default values which can be modified to expand your search results as shown below:

>limit = entitled or all
To override the entitlements linked to your IP, you can pass 'all', which will return all the production records pertaining to your search.

Results

The returned search response is comprised of the following information

ParameterExplanationType
totalThe total number of resultsnumeric
startThe starting record of the results pagenumeric
endThe ending records of the results pagenumeric
groupThe entitlements groupString
resultThe search records returnedObject

The search records returned are comprised of the following information.

ParameterExplanationType
indexThe response numbernumeric
idThe internal id of the recordString
uriThe unique resource identifierString
titleThe highlevel name of the resourceString
fileIdentifierThe external id of the recordString
producerThe party(s) who originally created the resourceString
dateThe date the resource was acquiredString
categoryThe ISO 19115 topic catagory, see https://www2.usgs.gov/science/about/thesaurus-full.php?thcode=15String
placeThe location where the data originates, separated by " > "String
typeThe type of data layer: vector, raster, etc.String
publish-dateThe date of publication. Can be many, each including a 'date' and 'date-type'Object
boundingboxContains the upperleft, upperright, lowerleft and lowerright lat and lng points in epsg: 3857Object
abstractA brief description of the resourceString
servicesThe individual services available for the resource. Can be many, each including a link, protocol and typeString
thumbnailAn absolute path to a small image showing the resourceURL


Metadata

To download the metadata in ISO 19115 for any of the records, use the Details Full Base URL 'http://geo1.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/details/full.html?uri=', followed by the record's URI.
E.g to display the first record from a search for 'water', append the returned URI '/NAP/OGDE_SPRWATER.xml' to the Details Full Base URL as follows http://geo1.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/details/full.html?uri=/NAP/OGDE_SPRWATER.xml
Note: Simply navigating to the Details Full Base URL with a URI in your browser will trigger a redirect so it's necessary to load it as an AJAX request.

To download the HTML for any of the records use the Details View Base URL 'http://geo1.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/details/view.html?uri=' followed by the records URI.
E.g to display the first record from a search for 'water', append the URI '/NAP/OGDE_SPRWATER.xml' to the Details View Base URL as follows http://geo1.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/details/view.html?uri=/NAP/OGDE_SPRWATER.xml
Note: A stylesheet should be used to display these.

Data Layers

While the ArcGIS Server has been locked-down to limit access to restricted data, we are continuing to work towards offering Open Content in a sharable formats. The OCUL Historical Topographic Map Digitization Project is one of these Open Content collections which can be used as part of your own web-maps. These layers are available as Tile Map Service (TMS) which follows the osgeo.org Tile Map Service Specification. This collection simply requires the 'fileIdentifier' of the map sheet you are looking for placed at to the end of the Tile Layers URL https://static.scholarsportal.info/web-tiles/ as follows https://static.scholarsportal.info/web-tiles-demo/?url=https://static.scholarsportal.info/web-tiles/HTDP25K030L13a_1969TIFF/
A listing of all the historical topographic 'fileIdentifiers' can be found by searching for '*' and constraining the search to Historical Maps by setting the limit to 'HTD' instead of 'entitled' as indicated in the Base URL. Here's the URL to access all these records http://geo.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/index.html?limit=HTD&env=production&q=* 

A stand-alone application using the same source code as the GeoPortal has been created to demo this functionality. It can be viewed from the following URL https://scholarsportal.github.io/webtiles_arcgis/?url=https://static.scholarsportal.info/web-tiles/HTDP25K030L13a_1969TIFF/

 

News Feed

The GeoPortal continues to have new content loaded which can be accessed via a RSS News Feed. The URL for this feed is http://geo2.scholarsportal.info/proxy.html?http:__giseditor.scholarsportal.info/search/new.html and can be used with your RSS Feed Reader of choice.