-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of #2957, includes test queries for adding metadata
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<ui:composition xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:ui="http://java.sun.com/jsf/facelets" | ||
xmlns:c="http://java.sun.com/jsp/jstl/core" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:o="http://omnifaces.org/ui" | ||
xmlns:jsf="http://xmlns.jcp.org/jsf"> | ||
|
||
<!-- For the dataset page, this fragment gives a query to add test WorldMap map data | ||
After the query is run, the "Explore Map" button should appear for a tabular file or shapefile | ||
--> | ||
|
||
<ui:fragment rendered="#{ !DatasetPage.canUserSeeExploreWorldMapButton(fileMetadata)}"> | ||
<!-- There is NO map data for this file --> | ||
|
||
<ui:fragment rendered="#{ (DatasetPage.canSeeTwoRavensExploreButton(fileMetadata) or fileMetadata.dataFile.isShapefileType())}"> | ||
<!-- This is either a tabular or shapefile --> | ||
to add sample map data: | ||
<textarea><h:outputText escape="false" value="INSERT INTO maplayermetadata VALUES (DEFAULT, 'https://worldmap.harvard.edu/maps/embed/?layer=geonode:zip_codes_2015_zip_s9i','https://worldmap.harvard.edu/data/geonode:zip_codes_2015_zip_s9i', | ||
'geonode:zip_codes_2015_zip_s9i', | ||
'http://worldmap.harvard.edu/download/wms/27289/png?layers=geonode%3Azip_codes_2015_zip_s9i&width=865&bbox=-71.1911091251%2C42.2270382738%2C-70.9228275369%2C42.3976144794&service=WMS&format=image%2Fpng&srs=EPSG%3A4326&request=GetMap&height=550', | ||
'admin',#{DatasetPage.dataset.id},#{fileMetadata.dataFile.id});" /> | ||
</textarea> | ||
</ui:fragment> | ||
</ui:fragment> | ||
|
||
</ui:composition> |