diff --git a/haitidata/settings.py b/haitidata/settings.py index 16370d2..f9e4955 100644 --- a/haitidata/settings.py +++ b/haitidata/settings.py @@ -155,7 +155,7 @@ UPLOADER = { 'BACKEND': 'geonode.rest', 'OPTIONS': { 'TIME_ENABLED': False, - 'MOSAIC_ENABLED': False, + 'MOSAIC_ENABLED': True, 'GEOGIG_ENABLED': False, } } diff --git a/haitidata/static/css/haitidata.css b/haitidata/static/css/haitidata.css index 260520a..8a5e0b4 100644 --- a/haitidata/static/css/haitidata.css +++ b/haitidata/static/css/haitidata.css @@ -6947,7 +6947,7 @@ section#subheader { padding-top: 0; } section#subheader p { - color: #b0bec5; + color: #78909c; display: inline-block; } section#subheader .btn-group { diff --git a/haitidata/static/less/haitidata.less b/haitidata/static/less/haitidata.less index 9fc58ed..31c8db8 100755 --- a/haitidata/static/less/haitidata.less +++ b/haitidata/static/less/haitidata.less @@ -251,7 +251,7 @@ section#subheader { padding-top: 0; p { - color: @gray-light; + color: @gray; display: inline-block; } diff --git a/haitidata/templates/401.html b/haitidata/templates/401.html deleted file mode 100644 index 100c49b..0000000 --- a/haitidata/templates/401.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends "site_base.html" %} -{% load i18n %} - -{% block body %} -
- {% if error_message %} - {{ error_message }} - {% else %} - {% blocktrans %} - You are not allowed to perform this operation. - {% endblocktrans %} - {% endif %} -
-- {% if not request.user.is_anonymous %} - {% blocktrans %}Please verify that you are logged in as the correct user.{%endblocktrans%} - {% else %} - {% blocktrans %}Please login or register and retry.{% endblocktrans %} - {% endif %} -
-{% endblock %} diff --git a/haitidata/templates/404.html b/haitidata/templates/404.html deleted file mode 100644 index 80405ff..0000000 --- a/haitidata/templates/404.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "site_base.html" %} -{% load i18n %} - -{% block body %} -{{ announcement.creation_date }}
-Le but de ce site est de faciliter l’accès libre à de l’information, des données et des connaissances géospatiales, sur les désastres naturels et sur la vulnérabilité et le risque en Haïti, ainsi que d’encourager leur partage et leur utilisation.
-Les données géospatiales peuvent être utilisées à plusieurs fins : l’établissement de données de base, l’élaboration d’évaluations des risques, la planification, la surveillance de projets et le suivi de leur avancement. L’accès à de l’information de haute qualité est critique pour les planificateurs, les décideurs et autres intervenants impliqués dans la reconstruction d’Haïti. Ce site vise à faciliter un support plus efficace à la réhabilitation, le redressement et le développement durable à long terme du pays.
-Suite au tremblement de terre du 12 janvier 2010, une quantité substantielle de données géospatiales a été créée, permettant d’évaluer l’intensité du séisme, la probabilité d’inondations, les risques associés aux glissements de terrain et aux tsunamis ainsi que les dommages, de façon globale. L’énormité du besoin actuel en assistance matérielle, en support pour le renforcement de la structure de gouvernance ainsi que la quantité innombrable d’organisations locales et internationales se joignant dans l’assistance aux processus de reconstruction et de développement, posent également un défi considérable à la capacité du gouvernement et des autres mandataires à se coordonner, afin que le peuple d’Haïti en bénéficie. Ce site souhaite aider à informer les décideurs à tous les niveaux et dans tous les secteurs, dans l’immédiat ainsi que dans la planification de l’avenir, incluant la gestion du risque dérivé des hazard naturels.
- -{% endblock %} diff --git a/haitidata/templates/account/admin_approval_sent.html b/haitidata/templates/account/admin_approval_sent.html deleted file mode 100644 index 106c55e..0000000 --- a/haitidata/templates/account/admin_approval_sent.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "site_base.html" %} - -{% load url from future %} -{% load i18n %} - -{% block title %}{{ block.super }} {% trans "Account Pending Approval" %}{% endblock %} -{% block page-title %} - {% trans "Account Pending Approval" %} -{% blocktrans %}We have sent the administrators a notice to approve your account associated with {{ email }}. If the account is approved, you will receive a confirmation notice.{% endblocktrans %}
-{% endblock %} diff --git a/haitidata/templates/account/email_confirmation_sent.html b/haitidata/templates/account/email_confirmation_sent.html deleted file mode 100644 index 5adf4d6..0000000 --- a/haitidata/templates/account/email_confirmation_sent.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends "site_base.html" %} - -{% load url from future %} -{% load i18n %} - -{% block head_title %}{% trans "Confirm your email address" %}{% endblock %} - -{% block title %}{{ block.super }} {% trans "Confirm your email address" %}{% endblock %} -{% block page-title %} - {% trans "Confirm your email address" %} -{% blocktrans %}We have sent you an email to {{ email }} for verification. Follow the link provided to finalize the signup process.{% endblocktrans %}
-{% endblock %} diff --git a/haitidata/templates/account/login.html b/haitidata/templates/account/login.html deleted file mode 100644 index 8c4637b..0000000 --- a/haitidata/templates/account/login.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends "site_base.html" %} - -{% load url from future %} -{% load i18n %} -{% load bootstrap_tags %} - -{% block title %}{{ block.super }} {% trans "Log in" %}{% endblock %} -{% block page-title %}{% trans "Log in" %}{% endblock %} - -{% block body %} - -{% endblock %} diff --git a/haitidata/templates/account/logout.html b/haitidata/templates/account/logout.html deleted file mode 100644 index 72cd3b8..0000000 --- a/haitidata/templates/account/logout.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends "site_base.html" %} - -{% load url from future %} -{% load i18n %} - -{% block title %}{{ block.super }} {% trans "Log Out" %}{% endblock %} -{% block page-title %} - {% trans "Log Out" %} -{% blocktrans %}If you have any trouble resetting your password, contact us at {{ THEME_ACCOUNT_CONTACT_EMAIL }}.{% endblocktrans %}
-{% endblock %} -{% block extra_body %} - -{% endblock %} diff --git a/haitidata/templates/account/signup.html b/haitidata/templates/account/signup.html deleted file mode 100644 index 62451cd..0000000 --- a/haitidata/templates/account/signup.html +++ /dev/null @@ -1,49 +0,0 @@ -{% extends "site_base.html" %} - -{% load url from future %} -{% load i18n %} -{% load bootstrap_tags %} - -{% block title %}{{ block.super }} {% trans "Sign up" %}{% endblock %} -{% block page-title %} - {% trans "Sign up" %} -{% trans "Sorry, registrations are not open at this time." %}
- {% endif %} -{% endblock %} - -{% block sidebar %} -{% include "account/_signup_sidebar.html" %} -{% endblock %} - -{% block extra_script %} - -{% endblock %} diff --git a/haitidata/templates/actstream/actor.html b/haitidata/templates/actstream/actor.html deleted file mode 100644 index 757a187..0000000 --- a/haitidata/templates/actstream/actor.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends 'site_base.html' %} -{% load activity_tags social_tags i18n %} - -{% block extra_head %} -{{ block.super }}{% endblock %} - -{% block title %}{% ifequal request.user actor %}{% trans "My Activity feed" %}{% else %}{{ actor }}'s {% trans "Activity Feed" %}{% endifequal %}{% endblock %} -{% block content_title %}{% ifequal request.user actor %}{% trans "My Activity feed" %}{% else %}{{ actor }}'s {% trans "Activity Feed" %}{% endifequal %}{% endblock %} - -{% comment %} -{% block navlinks %} -{% trans "No actions yet" %}
- {% endfor %} -- {% trans "Are you sure you want to delete this announcement?" %} -
-{{ announcement.title }}
-{{ announcement.content }}
- - -{% endblock %} diff --git a/haitidata/templates/announcements/detail.html b/haitidata/templates/announcements/detail.html deleted file mode 100644 index 9d9d966..0000000 --- a/haitidata/templates/announcements/detail.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "site_base.html" %} -{% load i18n %} - -{% block title %} {% blocktrans %}Announcements : {{ announcement }}{% endblocktrans %} {{ block.super }} {% endblock %} - -{% block body %} -{{ announcement.creation_date }}
---{{ announcement.content }}
- {{ announcement.creator }} -
{% trans "You haven't uploaded an avatar yet. Please upload one now." %}
- {% else %} - - {% endif %} -{% trans "You haven't uploaded an avatar yet. Please upload one now." %}
- {% else %} - - {% endif %} -{% trans "Please select the avatars that you would like to delete." %}
-{% if not avatars %} -{% url 'avatar_change' as avatar_change_url %} -{% blocktrans %}You have no avatars to delete. Please upload one now.{% endblocktrans %}
-{% else %} - -{% endif %} - -{% trans "Owner, Point of Contact, Metadata Author" %}
- {% with resource.owner as profile %} - {% include "people/_profile_about_item.html" %} - {% endwith %} - {% else %} -{% trans "Owner" %}
- {% with resource.owner as profile %} - {% include "people/_profile_about_item.html" %} - {% endwith %} -{% trans "Point of Contact" %}
- {% with resource.poc as profile %} - {% include "people/_profile_about_item.html" %} - {% endwith %} -{% trans "Metadata Author" %}
- {% with resource.metadata_author as profile %} - {% include "people/_profile_about_item.html" %} - {% endwith %} - {% endif %} -{% trans "Useful information for developers interested in GeoNode." %}
- {% blocktrans %} -GeoNode is an open service built on open source software. We encourage you to build new applications using the components and resources it provides. This page is a starting point for developers interesting in taking full advantage of GeoNode. It also includes links to the project's source code so anyone can build and customize their own GeoNode.
- -All the code that runs GeoNode is open source. The code is available at http://github.com/GeoNode/geonode/. The issue tracker for the project is at http://github.com/GeoNode/geonode/issues.
- -GeoNode is built using several open source projects, each with its own community. If you are interested in contributing new features to the GeoNode, we encourage you to do so by contributing to one of the projects on which it is built:
-The data in this application is served using open standards endorsed by the Open Geospatial Consortium; in particular, WMS (Web Map Service) is used for accessing maps, WFS (Web Feature Service) is used for accessing vector data, and WCS (Web Coverage Service) is used for accessing raster data. WMC (Web Map Context Documents) is used for sharing maps. You can use these services in your own applications using libraries such as OpenLayers, GeoTools, and OGR (all of which are open-source software and available at zero cost).
- -GeoWebCache provides mapping tiles that are compatible with a number of mapping engines, including Google Maps, Bing Maps and OpenLayers. All the data hosted by GeoNode is also available through GeoWebCache. GeoWebCache improves on WMS by caching data and providing more responsive maps.
- -To interact with GeoNode's CSW you can use any CSW client (QGIS MetaSearch, GRASS, etc.). The following example illustrates a simple invocation using the OWSLib Python package:
-from owslib.csw import CatalogueServiceWeb
from owslib.fes import PropertyIsLike
csw = CatalogueServiceWeb('{{ CATALOGUE_BASE_URL }}')
anytext = PropertyIsLike('csw:AnyText', 'birds')')
csw.getrecords2(constraints=[anytext])
print csw.results
print csw.records
To include a GeoNode map layer in an OpenLayers map, first find the name for that layer. This is found in the layer's name field (not title) of the layer list. For this example, we will use the Nicaraguan political boundaries background layer, whose name is risk:nicaragua_admin. Then, create an instance of OpenLayers.Layer.WMS:
var geonodeLayer = new OpenLayers.Layer.WMS("GeoNode Risk Data", "http://demo.geonode.org/geoserver/wms",{ layers: "risk:nicaragua_admin" });
To include a GeoNode map layer in a Google Map, include the layer namein the URL template.
-var tilelayer = new GTileLayer(null, null, null, {tileUrlTemplate: 'http://demo.geonode.org/geoserver/gwc/service/gmaps?layers=risk:nicaragua_admin&zoom={Z}&x={X}&y={Y}', isPng:true, opacity:0.5 } );
To get data from the GeoNode web services use the WFS protocol. For example, to get the full Nicaraguan admin boundaries use:
-http://demo.geonode.org/geoserver/wfs?request=GetFeature&typeName=risk:nicaragua_admin&outputformat=SHAPE-ZIP
Changing output format to json, GML2, GML3, or csv will get data in those formats. The WFS protocol also can handle more precise queries, specifying a bounding box or various spatial and non-spatial filters based on the attributes of the data.
Create a DataStore and extract a FeatureType from it, then run a Query. It is all documented on the wiki at http://geotools.org/.
{% trans "GeoNode's Web Services are available from the following URLs:" %}
-| {% trans "Dynamic tiles via WMS:" %} | -WMS 1.1.1 | -
| {% trans "Vector data via WFS:" %} | -WFS 1.1.0 | -
| {% trans "Raster data via WCS:" %} | -WCS 1.1.1 | -
| {% trans "Metadata search via CSW:" %} | -CSW 2.0.2 | -
| {% trans "Metadata search via OpenSearch:" %} | -OpenSearch 1.0 | -
| {% trans "Metadata search via OAI-PMH:" %} | -OAI-PMH 2.0 | -
| {% trans "Open Data:" %} | -data.json | -
| {% trans "Cached tiles via WMTS:" %} | -WMTS 1.0.0 | -
{{ comment }}
\ No newline at end of file diff --git a/haitidata/templates/documents/document_base.html b/haitidata/templates/documents/document_base.html deleted file mode 100644 index 00291af..0000000 --- a/haitidata/templates/documents/document_base.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "site_base.html" %} -{% load i18n %} -{% load url from future %} - -{% block title %} {{ block.super }} {% endblock %} - -{% block body_class %}documents{% endblock %} - -{% block body_outer %} -{% block body %}{% endblock body %} -{% block sidebar %}{% endblock sidebar %} -{% endblock body_outer %} diff --git a/haitidata/templates/documents/document_metadata.html b/haitidata/templates/documents/document_metadata.html deleted file mode 100644 index 21423e8..0000000 --- a/haitidata/templates/documents/document_metadata.html +++ /dev/null @@ -1,90 +0,0 @@ -{% extends "documents/document_base.html" %} -{% load i18n %} -{% load bootstrap_tags %} - -{% block title %}{{ document.typename }} — {{ block.super }}{% endblock %} - -{% block head %} - {% include "geonode/ext_header.html" %} - {{ block.super }} -{% endblock %} - -{% block body_class %}data{% endblock %} - -{% block body_outer %} -- {% trans "Editing details for" %} {{ document.title }} -
- -- {% blocktrans with document.title as document_title %} - Are you sure you want to remove {{ document_title }}? - {% endblocktrans %} -
- -{{ group.description | limitTo: 100 }}{{ group.description.length > 100 ? '...' : ''}}
-{% trans "No actions yet" %}
- {% endfor %} -{% trans "No actions yet" %}
- {% endfor %} -{% trans "No actions yet" %}
- {% endfor %} -{% trans "No actions yet" %}
- {% endfor %} -You have been invited to join the group {{ object.title }}. Would you like to join? -
-{% trans "This page provides helpful information about how to use the GeoNode. You can use the sidebar links to navigate to what you want to know." %}
- - {% blocktrans %} -The GeoNode provides access to data sets and a map editing application allows users to browse existing maps and contribute their own.
- -The Layers tab allows you to browse data uploaded to this GeoNode.
-All data can be downloaded in a variety of formats, for use in other applications.
- -The Developer page is the place for developers to get started building applications against the GeoNode. It includes instructions on using the web services, links to the source code of the GeoNode, and information about the open source projects used to create it.
- -The GeoNode allows users to create and share maps with one another.
-The Maps tab is a gateway to map exploration on GeoNode. From here you can search for a map or create a map, which will open the Map Composer.
-Any map viewed in the interactive map editor can be seen in 3D mode with the Google Earth plugin. To switch to 3D mode select the Google Earth globe logo, the rightmost button on top toolbar. If you do not have the Google Earth plugin installed you will be prompted to install it.
- -To create a new map go to the Contributed Maps tab and click the create your own map link.
-This will take you to the Map Composer with a base layer loaded.
-To add data layers from the GeoNode click on the green plus button located below the layers tab on the left hand side of the screen. This will open a dialog listing all the layers available on the GeoNode.
-To add layers to your map select them and hit the Add Layers button. When finished you may hit Done to close the dialog and go back to the map.
- -Change the display order of the layers listed in the data tab by simply dragging and dropping their names. The order in the map will be updated to reflect that. To turn a layer's visibility off simply uncheck it, and to remove it entirely select it and hit the red minus button.
- -Once a suitable set of layers and zoom level has been found it's time to save it so others can see it. Click the Save button--the left most icon on the top toolbar, an image of a map with a disk--on the top menu and fill out the title and abstract of the map.
- -Any map from the GeoNode can be embedded for use in another site or blog. To publish a map:
-This will put an interactive widget showing you map in your web page or blog post.
-Note that the Map Composer also has a button to publish the map. Just be sure to save the map before publishing if there are changes that you want others to see. It publishes the last saved version, not the last viewed version.
- -Any map available can serve as a starting point for a new map.
-You will be able to see your new map when you search for it from the Maps tab.
- {% endblocktrans %} -{% blocktrans %}GeoNode is an open source platform for sharing geospatial data and maps.{% endblocktrans %}
-{% blocktrans %}If you have any questions about the software or service, join our mailing list.{% endblocktrans %}
- {% trans 'Need help?' %} {% trans 'Getting Started' %} -{% trans "Click to search for geospatial data published by other users, organizations and public sources. Download data in standard formats." %}
- {% if user.is_authenticated %} - - {% else %} - - {% endif %} -{% trans "Data is available for browsing, aggregating and styling to generate maps which can be shared publicly or restricted to specific users only." %}
- {% if user.is_authenticated %} - - {% else %} - - {% endif %} -{% trans "GeoNode allows registered users to easily upload geospatial data in several formats including shapefile and GeoTiff." %}
- -Your map is ready to be published to the web!
' + 'Simply copy the following HTML to embed the map in your website:
', - heightLabel: gettext("Height"), - infoButtonText: gettext("Get Feature Info"), - largeSizeLabel: gettext("Large"), - layerAdditionLabel: gettext("or add a new server."), - layerContainerText: gettext("Map Layers"), - layerSelectionLabel: gettext("View available data from:"), - layersContainerText: gettext("Data"), - layersPanelText: gettext("Layers"), - legendPanelText: gettext("Legend"), - lengthActionText: gettext("Length"), - loadingMapMessage: gettext("Loading Map..."), - mapSizeLabel: gettext("Map Size"), - measureSplitText: gettext("Measure"), - metaDataMapContact: gettext("Contact"), - metaDataMapId: gettext("Permalink"), - miniSizeLabel: gettext("Mini"), - navActionTipText: gettext("Pan Map"), - navNextAction: gettext("Zoom to Next Extent"), - navPreviousActionText: gettext("Zoom to Previous Extent"), - noPermalinkText: gettext("This map has not yet been saved."), - permalinkLabel: gettext("Permalink"), - premiumSizeLabel: gettext("Premium"), - printTipText: gettext("Print Map"), - printWindowTitleText: gettext("Print Preview"), - propertiesText: gettext("Properties"), - publishActionText: gettext("Publish Map"), - removeLayerActionText: gettext("Remove Layer"), - removeLayerActionTipText: gettext("Remove Layer"), - saveFailMessage: gettext("Sorry, your map could not be saved."), - saveFailTitle: gettext("Error While Saving"), - saveMapText: gettext("Save Map"), - saveNotAuthorizedMessage: gettext("You must be logged in to save this map."), - smallSizeLabel: gettext("Small"), - sourceLoadFailureMessage: gettext("Error contacting server.\n Please check the url and try again."), - layerPropertiesText: gettext('Layer Properties'), - layerPropertiesTipText: gettext('Change layer format and style'), - layerStylesText: gettext('Edit Styles'), - layerStylesTipText: gettext('Edit layer styles'), - switchTo3DActionText: gettext("Switch to Google Earth 3D Viewer"), - unknownMapMessage: gettext("The map that you are trying to load does not exist. Creating a new map instead."), - unknownMapTitle: gettext("Unknown Map"), - widthLabel: gettext("Width"), - zoomInActionText: gettext("Zoom In"), - zoomOutActionText: gettext("Zoom Out"), - zoomSelectorText: gettext("Zoom level"), - zoomSliderTipText: gettext("Zoom Level"), - zoomToLayerExtentText: gettext("Zoom to Layer Extent"), - zoomVisibleButtonText: gettext("Zoom to Visible Extent") - }); -} - -if (window.Embed) { - Ext.apply(Embed.prototype, { - zoomLevelText: gettext("Zoom Level {zoom}") - }); -} - -if (window.GeoNode && GeoNode.MapGrid) { - Ext.apply(GeoNode.MapGrid.prototype, { - createMapText : gettext("Create Map"), - exportMapText: gettext("Export Map"), - mapAbstractLabelText: gettext("Abstract"), - mapContactLabelText: gettext("Contact"), - mapGridText : gettext("Map"), - mapLinkLabelText: gettext("View this Map"), - mapTitleLabelText: gettext("Title"), - openMapText : gettext("Open Map") - }); -} - -if (window.GeoExplorer && GeoExplorer.CapabilitiesGrid) { - Ext.apply(GeoExplorer.CapabilitiesGrid.prototype, { - nameHeaderText : gettext("Name"), - queryableHeaderText : gettext("Queryable"), - titleHeaderText : gettext("Title") - }); -} - -if (window.GeoNode && GeoNode.ConfigManager) { - Ext.apply(GeoNode.ConfigManager.prototype, { - backgroundDisabledText : gettext("No background") - }); -} - -if (window.gxp && gxp.EmbedMapDialog) { - Ext.apply(gxp.EmbedMapDialog.prototype, { - heightLabel: gettext("Height"), - largeSizeLabel: gettext("Large"), - mapSizeLabel: gettext("Map Size"), - miniSizeLabel: gettext("Mini"), - premiumSizeLabel: gettext("Premium"), - publishActionText: gettext("Publish Map"), - publishMessage: gettext('Your map is ready to be published to the web! Simply copy the following HTML to embed the map in your website:'), - smallSizeLabel: gettext("Small"), - widthLabel: gettext("Width") - }); -} - - -if (window.GeoExplorer && GeoExplorer.CapabilitiesRowExpander) { - Ext.apply(GeoExplorer.CapabilitiesRowExpander.prototype, { - abstractText: gettext("Abstract:"), - attributionEmptyText: gettext("No attribution information is provided for this layer."), - attributionText: gettext("Provided by:"), - downloadText : gettext("Download:"), - keywordEmptyText: gettext("No keywords are listed for this layer."), - keywordText: gettext("Keywords:"), - metadataEmptyText: gettext("No metadata URLs are defined for this layer."), - metadataText: gettext("Metadata Links:") - }); -} - -if (window.GeoExt && GeoExt.ux && GeoExt.ux.PrintPreview) { - Ext.apply(GeoExt.ux.PrintPreview.prototype, { - paperSizeText: gettext("Paper size:"), - resolutionText: gettext("Resolution:"), - printText: gettext("Print"), - emptyTitleText: gettext("Enter map title here."), - includeLegendText: gettext("Include legend?"), - emptyCommentText: gettext("Enter comments here."), - creatingPdfText: gettext("Creating PDF...") - }); -} - - -if (window.GeoNode && GeoNode.MapSearchTable) { - Ext.apply(GeoNode.MapSearchTable.prototype, { - titleHeaderText: gettext('Title'), - contactHeaderText: gettext("Contact"), - lastModifiedHeaderText: gettext("Last Modified"), - mapAbstractLabelText: gettext("Abstract"), - mapLinkLabelText: gettext("View this Map"), - previousText: gettext('Prev'), - nextText: gettext('Next'), - ofText: gettext('of'), - noResultsText: gettext('Your search did not match any items.'), - searchLabelText: gettext('Search Maps'), - searchButtonText: gettext('Search'), - showingText: gettext('Showing'), - loadingText: gettext('Loading'), - permalinkText: gettext('permalink') - }); -} - - -if (window.GeoNode && GeoNode.SearchTable) { - Ext.apply(GeoNode.SearchTable.prototype, { - selectHeaderText: gettext('Select'), - nameHeaderText: gettext('Name'), - titleHeaderText: gettext('Title'), - selectText: gettext('Select:'), - selectAllText: gettext('All'), - selectNoneText: gettext('None'), - previousText: gettext('Prev'), - nextText: gettext('Next'), - ofText: gettext('of'), - noResultsText: gettext('Your search did not match any items.'), - searchButtonText: gettext('Search'), - showingText: gettext('Showing'), - loadingText: gettext("Loading..."), - permalinkText: gettext('permalink'), - unviewableTooltip: gettext('You do not have permission to view this data'), - remoteTooltip: gettext('This data is stored on a remote server') - }); -} -if (window.GeoNode && GeoNode.SearchTableRowExpander) { - Ext.apply(GeoNode.SearchTableRowExpander.prototype, { - abstractText: gettext("Abstract:"), - abstractEmptyText: gettext('No abstract is provided for this layer.'), - attributionEmptyText: gettext("No attribution information is provided for this layer."), - attributionText: gettext("Provided by:"), - downloadText : gettext("Download:"), - downloadEmptyText: gettext("No download URLs are definied for this layer."), - keywordEmptyText: gettext("No keywords are listed for this layer."), - keywordText: gettext("Keywords:"), - metadataEmptyText: gettext("No metadata URLs are defined for this layer."), - metadataText: gettext("Metadata Links:"), - dataDetailText: 'Click here for more information about this layer.' - }); -} -if (window.GeoNode && GeoNode.DataCart) { - Ext.apply(GeoNode.DataCart.prototype, { - selectedLayersText: gettext('Selected Layers'), - emptySelectionText: gettext('No Layers Selected'), - titleText: gettext('Title'), - clearSelectedButtonText: gettext('Clear Selected'), - clearAllButtonText: gettext('Clear All') - }); -} - -if (window.GeoNode && GeoNode.DataCartOps) { - Ext.apply(GeoNode.DataCartOps.prototype, { - failureText: gettext('Operation Failed'), - noLayersText: gettext('No layers are currently selected.') - }); -} - - -if (window.GeoNode && GeoNode.BatchDownloadWidget) { - Ext.apply(GeoNode.BatchDownloadWidget.prototype, { - downloadingText: gettext('Downloading...'), - cancelText: gettext('Cancel'), - windowMessageText: gettext('Please wait') - }); -} - -{% block extra_lang %} -{% endblock %} diff --git a/haitidata/templates/layers/layer_base.html b/haitidata/templates/layers/layer_base.html deleted file mode 100644 index 6531501..0000000 --- a/haitidata/templates/layers/layer_base.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "site_base.html" %} -{% load i18n %} -{% load url from future %} - -{% block title %} {{ block.super }} {% endblock %} - -{% block body_class %}layers{% endblock %} - -{% block body_outer %} - {% block body %}{% endblock body %} - {% block sidebar %}{% endblock sidebar %} -{% endblock body_outer %} diff --git a/haitidata/templates/layers/layer_change_poc.html b/haitidata/templates/layers/layer_change_poc.html deleted file mode 100644 index f056803..0000000 --- a/haitidata/templates/layers/layer_change_poc.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "admin/base_site.html" %} - -{% load i18n %} - -{% block breadcrumbs %}{% endblock %} - -{% block title %}{% trans 'Change point of contact' %}{% endblock %} - -{% block content %} -{% trans "Click the button below to generate a new chart based on this layer, choosing a quantity and a category field." %}
- -- {% blocktrans with layer.typename as layer_title %} - Are you sure you want to remove Granule {{ granule_id }} of the Mosaic {{ layer_title }}? - {% endblocktrans %} -
-- {% blocktrans with layer.typename as layer_title %} - Editing details for {{ layer_title }} - {% endblocktrans %} -
-{% blocktrans %}Note: this layer's orginal metadata was populated and preserved by importing a metadata XML file. - This metadata cannot be edited.{% endblocktrans %}
- {% elif layer.metadata_uploaded %} -{% blocktrans %}Note: this layer's orginal metadata was populated by importing a metadata XML file. - GeoNode's metadata import supports a subset of ISO, FGDC, and Dublin Core metadata elements. - Some of your original metadata may have been lost.{% endblocktrans %}
- {% endif %} - - {% if layer_form.errors or attribute_form.errors or category_form.errors or author_form.errors or poc.errors %} -{% blocktrans %}Error updating metadata. Please check the following fields: {% endblocktrans %}
-| {% trans "Attribute" %} | -{% trans "Label" %} | -{% trans "Description" %} | -{% trans "Display Order" %} | -
|---|---|---|---|
| {{form.attribute}} | -{{form.attribute_label}} | -{{form.description}} | -{{form.display_order}} | -
- {% blocktrans with layer.typename as layer_title %} - Are you sure you want to remove {{ layer_title }}? - {% endblocktrans %} -
-{% trans "Replace Layer: " %}{{ layer.title }}
- - {% if incomplete %} - -{% trans " or select them one by one:" %}
- -{% trans "Select the charset or leave default" %}
- -- {% blocktrans %} - Here you can download all the layers of this map that - are hosted on this GeoNode. - {% endblocktrans %} -
diff --git a/haitidata/templates/maps/map_sdk.js b/haitidata/templates/maps/map_sdk.js
deleted file mode 100644
index f0b8c73..0000000
--- a/haitidata/templates/maps/map_sdk.js
+++ /dev/null
@@ -1,44 +0,0 @@
-{% include 'geonode/ext_header.html' %}
-{% include 'geonode/sdk_header.html' %}
-
-
-
diff --git a/haitidata/templates/maps/map_view.html b/haitidata/templates/maps/map_view.html
deleted file mode 100644
index b6a2dd3..0000000
--- a/haitidata/templates/maps/map_view.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% extends "site_base.html" %}
-
-{% load i18n %}
-{% load base_tags %}
-
-{% block title %} {% trans "Map" %} - {{ block.super }} {% endblock %}
-
-{% block head %}
- {% if preview == 'geoext' %}
- {% include 'maps/map_geoexplorer.js' %}
- {% elif preview == 'react' %}
- {% include 'geonode-client/map_view.html' %}
- {% else %}
- {% include 'maps/map_geoexplorer.js' %}
- {% endif %}
- {{ block.super }}
-{% endblock %}
-{% block footer %}{% endblock %}
diff --git a/haitidata/templates/maps/wmc.xml b/haitidata/templates/maps/wmc.xml
deleted file mode 100644
index 880b7ff..0000000
--- a/haitidata/templates/maps/wmc.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
{{ profile.username }}
- {{ username }}
-
{% if profile.organization %}{{ profile.organization }}
- {% else %}{% trans "No Group" %}
- {% endif %}
- - No Organization Info - - - {{ profile.organization | limitTo:30 }} ... - -
- - -{% if not add %}{% trans "No longer" %} {% endif %}{{ status.verb|capfirst }} {{ to_user.username }}?
-{{ user.username }} - - {% if status.name == "Following" %} - {% trans "Unfollow" %} - {% endif %} - - {% if status.name == "Blocking" %} - {% trans "Unblock" %} - {% endif %} - -
{% trans "You are " %}{% if add %}{% trans "now" %}{% else %}{% trans "no longer" %}{% endif %} {{ status.from_slug }} {{ to_user.username }}
- -{% endblock %} diff --git a/haitidata/templates/request_download.html b/haitidata/templates/request_download.html deleted file mode 100644 index eefbe8f..0000000 --- a/haitidata/templates/request_download.html +++ /dev/null @@ -1,26 +0,0 @@ - diff --git a/haitidata/templates/search/indexes/documents/document_text.txt b/haitidata/templates/search/indexes/documents/document_text.txt new file mode 100644 index 0000000..6d94c07 --- /dev/null +++ b/haitidata/templates/search/indexes/documents/document_text.txt @@ -0,0 +1,6 @@ +{{ object.content }} +{{ object.title }} +{{ object.abstract }} +{{ object.purpose }} +{{ object.supplemental_information }} +{{ object.keyword_list }} \ No newline at end of file diff --git a/haitidata/templates/search/indexes/groups/groupprofile_text.txt b/haitidata/templates/search/indexes/groups/groupprofile_text.txt new file mode 100644 index 0000000..e84a438 --- /dev/null +++ b/haitidata/templates/search/indexes/groups/groupprofile_text.txt @@ -0,0 +1,4 @@ +{{ object.content }} +{{ object.title }} +{{ object.description }} +{{ object.keyword_list }} \ No newline at end of file diff --git a/haitidata/templates/search/indexes/layers/layer_text.txt b/haitidata/templates/search/indexes/layers/layer_text.txt new file mode 100644 index 0000000..78f6b9a --- /dev/null +++ b/haitidata/templates/search/indexes/layers/layer_text.txt @@ -0,0 +1,7 @@ +{{ object.content }} +{{ object.title }} +{{ object.abstract }} +{{ object.purpose }} +{{ object.name }} +{{ object.supplemental_information }} +{{ object.keyword_list }} diff --git a/haitidata/templates/search/indexes/maps/map_text.txt b/haitidata/templates/search/indexes/maps/map_text.txt new file mode 100644 index 0000000..78f6b9a --- /dev/null +++ b/haitidata/templates/search/indexes/maps/map_text.txt @@ -0,0 +1,7 @@ +{{ object.content }} +{{ object.title }} +{{ object.abstract }} +{{ object.purpose }} +{{ object.name }} +{{ object.supplemental_information }} +{{ object.keyword_list }} diff --git a/haitidata/templates/search/indexes/people/profile_text.txt b/haitidata/templates/search/indexes/people/profile_text.txt new file mode 100644 index 0000000..e3efe10 --- /dev/null +++ b/haitidata/templates/search/indexes/people/profile_text.txt @@ -0,0 +1,7 @@ +{{ object.content }} +{{ object.get_full_name }} +{{ object.username }} +{{ object.name }} +{{ object.organization }} +{{ object.profile}} +{{ object.position }} diff --git a/haitidata/templates/search/search.html b/haitidata/templates/search/search.html index 284e930..6ea6005 100644 --- a/haitidata/templates/search/search.html +++ b/haitidata/templates/search/search.html @@ -3,8 +3,6 @@ {% load staticfiles %} {% load url from future %} -{% block title %}{{ block.super }} {% trans "Search" %}{% endblock %} - {% block page-title %} {% trans "Search" %} {% endblock %} @@ -22,6 +20,7 @@ {% endblock %} {% block extra_script %} +{{ block.super }} {% if GEONODE_SECURITY_ENABLED %} {% include "_permissions_form_js.html" %} {% endif %} diff --git a/haitidata/templates/services/layers_register.html b/haitidata/templates/services/layers_register.html deleted file mode 100644 index d343d82..0000000 --- a/haitidata/templates/services/layers_register.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "services/services_base.html" %} -{% load i18n %} -{% block head %} -{{ block.super }} - -{% endblock %} - -{% block title %} Services -- Available Layers {{ block.super }} {% endblock %} - -{% block body %} -| {% trans "All/None" %} | -{% trans "Name" %} | -{% trans "Description" %} | -
|---|---|---|
| - | {{ layer.typename }} | -{{ layer.description }} | -
{% trans "Name:" %} {{service.name}}
-{% trans "URL:" %} {{service.base_url}}
-{% trans "Abstract:" %} {{service.abstract}}
-{% trans "Keywords:" %} {{ service.keywords.all|join:", " }}
-{% trans "Contact:" %} {{ service.owner }}
- - {% autoescape off %} - {% if services %} -{% trans "This CSW server contains the following services" %}
-| Title | Description |
|---|---|
| {{service.title}} | -{{service.abstract}} | -
{% trans "This Service contains the following layers" %}
-| Title | Description |
|---|---|
| {{layer.title}} | -{{layer.abstract}} | -
| - - | - -|
{% trans "Service:" %} {{ service.title }}
- {% if layers.count > 0 %} -{% trans "The following layers will soon be added to the data catalog:" %}
-| {{ layer.0 }} | {{ layer.1|default:"" }} |
{% trans "Are you sure you want to remove" %} {{ service.name }}?
-
-
- {% if object %}
-
- {% endif %}
- {{ username }}
-
- {{ verb|safe }}
-
- {% if object %}
- {% if object.get_absolute_url %}{{ object }}
- {% else %}
- {{ object_name }}
- {% endif %}
- {% elif object_name %}
- {{ object_name }}
- {% endif %}
-
- {% if target %}
- {{ preposition|default:"to" }}
- {% if fragment %}
- {{ target }}
- {% else %}
- {{ target }}
- {% endif %}
- {% endif %}
-
- {% blocktrans %} - A coordinate reference system for this layer could not be determined. - Locate or enter the appropriate ESPG code for this layer below. - One way to do this is do visit: - prj2epsg - and enter the following: - {% endblocktrans %} -
-
- {{ native_crs }}
-
- - {% blocktrans %} - There is a problem recognizing the projection of this data. Please - reproject this data to a more common projection. - {% endblocktrans %} -
- - {% endif %} -{% trans "Please indicate which attributes contain the latitude and longitude coordinates in the CSV data." %}
-{% if guessed_lat_or_lng %} -{% blocktrans %}With this data, GeoNode was able to guess which attributes contain the -latitude and longitude coordinates, but please confirm that the correct -attributes are selected below.{% endblocktrans %}
-{% endif %} -{% blocktrans %}We did not detect columns that could be used for the latitude and longitude. -Please verify that you have two columns in your csv file that can be used for -the latitude and longitude.{% endblocktrans %}
-{% endif %} -{% endblock %} - -{% block extra_script %} - -{% endblock %} \ No newline at end of file diff --git a/haitidata/templates/upload/layer_upload_error.html b/haitidata/templates/upload/layer_upload_error.html deleted file mode 100644 index 4d7f250..0000000 --- a/haitidata/templates/upload/layer_upload_error.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends "upload/layer_upload_base.html" %} - -{% block body_class %}data data-list upload{% endblock %} - -{% block body %} -{{ error_msg|safe }}
-{% endblock %} diff --git a/haitidata/templates/upload/layer_upload_invalid.html b/haitidata/templates/upload/layer_upload_invalid.html deleted file mode 100644 index 53e2c46..0000000 --- a/haitidata/templates/upload/layer_upload_invalid.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "upload/layer_upload_base.html" %} -{% load i18n %} -{% block body_class %}data data-list upload{% endblock %} - -{% block body %} -{% trans "Your upload is either complete or you haven't resumed an earlier one." %}
-{% trans "Return to" %} {% trans "Upload Form" %}.
-{% endblock %} diff --git a/haitidata/templates/upload/layer_upload_time.html b/haitidata/templates/upload/layer_upload_time.html deleted file mode 100644 index 3fc58e6..0000000 --- a/haitidata/templates/upload/layer_upload_time.html +++ /dev/null @@ -1,166 +0,0 @@ -{% extends "upload/layer_upload_base.html" %} -{% load i18n %} -{% load staticfiles %} - -{% block body_class %}data data-list upload{% endblock %} - -{% block title %} {% trans "Upload Layer Step 2" %} - {{ block.super }} {% endblock %} - -{% block head %} -{{ block.super }} -{% endblock %} - -{% block body %} -{% blocktrans %}A feature can currently support one or two time attributes. If a single - attribute is used, the feature is considered relevant at that single point in time. If two - attributes are used, the second attribute represents the end of a valid period for the - feature.{% endblocktrans %}
-{% trans "A time attribute can be one of" %}:
-- {% blocktrans %} - For text attributes, one can specify a custom format or use the 'best guess' approach. - The most common formatting flags are: - {% endblocktrans %} -
-y {% trans "year" %}M {% trans "month" %}d {% trans "day of month" %}H {% trans "hour of day" %} (0-23)k {% trans "hour of day" %} (1-24)m {% trans "minute in hour" %}s {% trans "second in minute" %}{% trans "Note that single quotes represent a literal character." %}
-{% trans "To remove ambiguity, repeat a code to represent the maximum number of digits - for example yyyy" %}
- - {% trans "The 'best guess' will handle date and optional time variants of" %} ISO-8601. - {% trans "In terms of the formatting flags noted above, these are" %}: -- yyyy-MM-dd'T'HH:mm:ss.SSS'Z' - yyyy-MM-dd'T'HH:mm:sss'Z' - yyyy-MM-dd'T'HH:mm:ss'Z' - yyyy-MM-dd'T'HH:mm'Z' - yyyy-MM-dd'T'HH'Z' - yyyy-MM-dd - yyyy-MM - yyyy --
{% trans "Your upload is either complete or you haven't resumed an earlier one." %}
-{% blocktrans %}Returning to the upload starting page in 5seconds {% endblocktrans %}.
-{% blocktrans %} Or just go {% endblocktrans %}{% blocktrans %}now{% endblocktrans %}.
-| {% trans "With" %} | -{% trans "Subject" %} | -{% trans "Last Sender" %} | -{% trans "Preview" %} | -{% trans "Delete?" %} | -
|
- {% for user in thread.users.all %}
- {% ifnotequal request.user user %}
- {% avatar user 30 %} - {{ user }} - {% endifnotequal %} - {% endfor %} - |
- {{ thread.subject }} | -- {% ifequal request.user thread.latest_message.sender %} - {% trans "me" %} - {% else %} - {{ thread.latest_message.sender }} - {% endifequal %} - | -- {{ thread.latest_message.content|slice:"50" }}... - | -
- |
-
{% trans "No unread messages" %}.
- {% endif %} -{{ message.content }}
-