diff --git a/docs/configuration.md b/docs/configuration.md
index a27a012..561f6f0 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -2,7 +2,7 @@
**NOTE: WIP. These settings are currently slightly out of date.**
-In order to make timemap interesting, you need to configure it to read events. When loaded in a browser, timemap queries HTTP endpoint, expecting from them well-defined JSON objects. There are certain endpoints, such as `events`, that are required, while others , such as `tags`, are optional; when provided, they enhance a timemap instance with additional features and capabilities related to the additional data.
+In order to make timemap interesting, you need to configure it to read events. When loaded in a browser, timemap queries HTTP endpoint, expecting from them well-defined JSON objects. There are certain endpoints, such as `events`, that are required, while others , such as `filters`, are optional; when provided, they enhance a timemap instance with additional features and capabilities related to the additional data.
The URLs for these endpoints, as well as other configurable settings in your timemap instance, are read from the `config.js` that you created in step 3 of the setup above. The example contains sensible defaults. This section covers each option in more detail:
@@ -14,11 +14,11 @@ The URLs for these endpoints, as well as other configurable settings in your tim
| EVENT_DESC_ROOT | Endpoint for additional metadata for each individual event, concatenated to SERVER_ROOT | String | Yes |
| CATEGORY_EXT | Endpoint for categories, concatenated with SERVER_ROOT | String | Yes |
| NARRATIVE_EXT | Endpoint for narratives, concatenated with SERVER_ROOT | String | No |
-| TAG_TREE_EXT | Endpoint for tags, concatenated with SERVER_ROOT | String | Yes |
+| FILTER_TREE_EXT | Endpoint for filters, concatenated with SERVER_ROOT | String | Yes |
| SITES_EXT | Endpoint for sites, concatenated with SERVER_ROOT | String | Yes |
| MAP_ANCHOR | Geographic coordinates for original map anchor | Array of numbers | No |
| MAPBOX_TOKEN | Access token for Mapbox satellite imagery | String | No |
-| features.USE_TAGS | Enable / Disable tags | boolean | No |
+| features.USE_FILTERS | Enable / Disable filters | boolean | No |
| features.USE_SEARCH | Enable / Disable search | boolean | No |
| features.USE_SITES | Enable / Disable sites | boolean | No |
@@ -47,7 +47,7 @@ a `config.js` file in timemap's root folder (explained in the next section).
"lat":"17.810358",
"long":"-18.2251664",
"source":"",
- "tags": "",
+ "filters": "",
"category": ""
}
]
@@ -69,35 +69,35 @@ a `config.js` file in timemap's root folder (explained in the next section).
#### Optional endpoints
-3. **Tags**: `events` can be tagged by multiple `tags`. These will further characterize the event, and allow to select or deselect based on them. Tags are or can be distributed in a tree-like hierarchy, and each node on the tree can be a tag, including those who are not leafs.
+3. **Filters**: `events` can be filterged by multiple `filters`. These will further characterize the event, and allow to select or deselect based on them. Filters are or can be distributed in a tree-like hierarchy, and each node on the tree can be a filter, including those who are not leafs.
```json
{
- "key":"tags",
+ "key":"filters",
"children": {
- "tag0": {
- "key": "tag0 ",
+ "filter0": {
+ "key": "filter0 ",
"children": {
- "tag00": {
- "key": "tag00",
+ "filter00": {
+ "key": "filter00",
"children": {
- "tag001": {
- "key": "tag001",
+ "filter001": {
+ "key": "filter001",
"children": {}
}
}
},
- "tag01": {
- "key": "tag01",
+ "filter01": {
+ "key": "filter01",
"children": {}
}
}
},
- "tag1": {
- "key": "tag1",
+ "filter1": {
+ "key": "filter1",
"children": {
- "tag10": {
- "key": "tag10",
+ "filter10": {
+ "key": "filter10",
"children": {}
}
}
@@ -106,7 +106,7 @@ a `config.js` file in timemap's root folder (explained in the next section).
}
```
-4. **Sites**: sites are labels on the map, aiming to highlight particularly relevant locations that should not be a function of time or tags.
+4. **Sites**: sites are labels on the map, aiming to highlight particularly relevant locations that should not be a function of time or filters.
```json
[
diff --git a/src/actions/index.js b/src/actions/index.js
index 3dd6078..5bcdd85 100644
--- a/src/actions/index.js
+++ b/src/actions/index.js
@@ -4,7 +4,7 @@ import { urlFromEnv } from '../common/utilities'
// TODO: relegate these URLs entirely to environment variables
const EVENT_DATA_URL = urlFromEnv('EVENT_EXT')
const CATEGORY_URL = urlFromEnv('CATEGORY_EXT')
-const TAGS_URL = urlFromEnv('TAGS_EXT')
+const FILTERS_URL = urlFromEnv('FILTERS_EXT')
const SOURCES_URL = urlFromEnv('SOURCES_EXT')
const NARRATIVE_URL = urlFromEnv('NARRATIVE_EXT')
const SITES_URL = urlFromEnv('SITES_EXT')
@@ -49,14 +49,14 @@ export function fetchDomain () {
.catch(() => handleError(domainMsg('sites')))
}
- let tagsPromise = Promise.resolve([])
+ let filtersPromise = Promise.resolve([])
if (features.USE_FILTERS) {
- if (!TAGS_URL) {
- tagsPromise = Promise.resolve(handleError('USE_TAGS is true, but you have not provided a TAGS_EXT'))
+ if (!FILTERS_URL) {
+ filtersPromise = Promise.resolve(handleError('USE_FILTERS is true, but you have not provided a FILTERS_EXT'))
} else {
- tagsPromise = fetch(TAGS_URL)
+ filtersPromise = fetch(FILTERS_URL)
.then(response => response.json())
- .catch(() => handleError(domainMsg('tags')))
+ .catch(() => handleError(domainMsg('filters')))
}
}
@@ -83,7 +83,7 @@ export function fetchDomain () {
catPromise,
narPromise,
sitesPromise,
- tagsPromise,
+ filtersPromise,
sourcesPromise,
shapesPromise
])
@@ -93,7 +93,7 @@ export function fetchDomain () {
categories: response[1],
narratives: response[2],
sites: response[3],
- tags: response[4],
+ filters: response[4],
sources: response[5],
shapes: response[6],
notifications
diff --git a/src/common/data/copy.json b/src/common/data/copy.json
index 44999f9..f965823 100644
--- a/src/common/data/copy.json
+++ b/src/common/data/copy.json
@@ -19,9 +19,9 @@
"toolbar": {
"title": "TITLE",
"categories": "Categories",
- "tags": "Tags",
- "explore_by_tag__title": "Explore by tag or category",
- "explore_by_tag__description": "Selecting tags or categories, you'll see only those events that are tagged accordingly. If you select nothing, as well as everything, all data will be displayed.",
+ "filters": "Filters",
+ "explore_by_filter__title": "Explore by filter or category",
+ "explore_by_filter__description": "Selecting filters or categories, you'll see only those events that are tagged accordingly. If you select nothing, as well as everything, all data will be displayed.",
"panels": {
"mentions": {
"title": "Personas",
@@ -80,7 +80,7 @@
"legend": {
"view2d": {
"paragraphs": [
- "Selecting a series of tags, you will be able to explore events on the map of Iguala and on the timeline.",
+ "Selecting a series of filters, you will be able to explore events on the map of Iguala and on the timeline.",
"Each event is colored according the person that gave category of the event."
],
"colors": [
@@ -114,17 +114,17 @@
"overview": "Selecting the name of a person will show the events only according to a person’s category or category. The number in the parentheses show how many events are contained in each category, e.g. (34)."
},
"search": {
- "title": "Directory of tags",
+ "title": "Directory of filters",
"placeholder": "Search"
}
},
"narratives_label": "Narratives",
"narrative_summary": "Follow a path through the data, from one key event to the next.",
"categories": "Categories",
- "tags": "Filters",
- "tags_label": "Filters",
- "explore_by_tag__title": "Explore by filter",
- "explore_by_tag__description": "Selecting a filter will show you only those events that are annotated with the filter. If you select nothing, as well as everything, all data will be displayed.",
+ "filters": "Filters",
+ "filters_label": "Filters",
+ "explore_by_filter__title": "Explore by filter",
+ "explore_by_filter__description": "Selecting a filter will show you only those events that are annotated with the filter. If you select nothing, as well as everything, all data will be displayed.",
"explore_by_category__title": "Explore events by category",
"explore_by_category__description": ""
@@ -158,8 +158,8 @@
"location": "Localization",
"incident_type": "Type of action",
"description": "Summary",
- "tags": "Tags",
- "notags": "No known tags for this event.",
+ "filters": "Filters",
+ "nofilters": "No known filters for this event.",
"sources": "Sources",
"unknown_source": "The information for this source could not be retrieved.",
"category": "Category",
diff --git a/src/components/Card.jsx b/src/components/Card.jsx
index 735540c..f56ad2d 100644
--- a/src/components/Card.jsx
+++ b/src/components/Card.jsx
@@ -4,7 +4,7 @@ import React from 'react'
import CardTime from './presentational/Card/Time'
import CardLocation from './presentational/Card/Location'
import CardCaret from './presentational/Card/Caret'
-import CardTags from './presentational/Card/Tags'
+import CardFilters from './presentational/Card/Filters'
import CardSummary from './presentational/Card/Summary'
import CardSource from './presentational/Card/Source'
import CardNarrative from './presentational/Card/Narrative'
@@ -38,13 +38,13 @@ class Card extends React.Component {
)
}
- renderTags () {
- if (!this.props.tags || (this.props.tags && this.props.tags.length === 0)) {
+ renderFilters () {
+ if (!this.props.filters || (this.props.filters && this.props.filters.length === 0)) {
return null
}
return (
-
)
@@ -137,7 +137,7 @@ class Card extends React.Component {
renderExtra () {
return (