Skip to content

Commit

Permalink
Add admin screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
whikloj committed Apr 13, 2018
1 parent 6268aa0 commit 5c57ecb
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@ Admin settings are available at `admin/islandora/tools/islandora_simple_map`:

Enabling the **Google Maps Javascript API** opens configuration for:

![islandora_simple_map_admin1](https://user-images.githubusercontent.com/2857697/38567430-d202110c-3cab-11e8-8aa3-aee56a2cf48d.jpg)

* Your API key (required).
* Disabling mouse wheel from causing map zoom.
* Disable the map embed in the page. Useful if using the map block.
* Enable [collection level maps](#collection-maps).

It also displays **all** coordinates found, the Embed API only displays the first.

Common configuration options are:

![islandora_simple_map_admin3](https://user-images.githubusercontent.com/2857697/38567445-d9e92e0a-3cab-11e8-905a-7f9437f9e86b.jpg)

* A delimiter to split multiple coordinates on.
* the XPath expressions to the MODS elements where your map data is stored
* the map's height, width, default zoom level, and whether or not the map is collapsed or expanded by default, and
Expand All @@ -52,12 +57,6 @@ Common configuration options are:

Once you enable the module, any object whose MODS file contains coordinates in the expected element will have a Google map appended to its display.

### Solr integration
To use Solr to return the coordinates instead of parsing the MODS records you can check the "Use Solr for object map queries" checkbox.
This will reveal an autocomplete field to enter the Solr field containing your object's coordinates.

This affects **both** individual maps and collection map generation.

### Collection maps
You can enable a map for each collection by checking the "Enable collection level maps?" option, you can then enable a map for a collection within the collection's Manage -> Collection sub-tab.

Expand All @@ -68,6 +67,15 @@ Collection maps retrieve all the objects for a collection via "paging" queries.
You can change the number of results per query with the "Collection page size" setting.


### Solr integration

![islandora_simple_map_admin2](https://user-images.githubusercontent.com/2857697/38567440-d6934be6-3cab-11e8-9f9c-a2d11dfa8414.jpg)

To use Solr to return the coordinates instead of parsing the MODS records you can check the "Use Solr for object map queries" checkbox.
This will reveal an autocomplete field to enter the Solr field containing your object's coordinates.

This affects **both** individual maps and collection map generation.

### Extract from MODS using XPath

Site admins can configure multiple MODS elements in a preferred order by entering XPath expressions in the admin setting's "XPath expressions to MODS elements containing map data" field. Data from the first element to match one of the configured XPath expressions is used to render the map. The module provide sensible default values that prefer `<subject><cartographics><coordinates>` over `<subject><geographic>`.
Expand Down

0 comments on commit 5c57ecb

Please sign in to comment.