Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Update dkan to 1.12.13.0 (#54)
Browse files Browse the repository at this point in the history
* Update CHANGELOG

* Update dkan to 1.12.13
  • Loading branch information
dkinzer authored Jan 4, 2017
1 parent f4f8478 commit 084f7d0
Show file tree
Hide file tree
Showing 46 changed files with 352 additions and 159 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Change log
## [1.12.13.0]
- Update dkan version to 7.x-1.12.13 https://github.com/NuCivic/dkan/releases/tag/7.x-1.12.13
- Recolection of customize dkan docs #47
- Adds support for private files if available in s3 backup #49
- Fix ahoy build update. #50
- Typo in ahoy utils files-link #51
- Add troubleshooting steps when container doesn't start #52
- Fix `ahoy build custom libs` not working. #53

## [1.12.12.0]
### Changed
Expand Down
4 changes: 2 additions & 2 deletions build-dkan.make
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ includes[core] = dkan/drupal-org-core.make
projects[dkan][type] = profile
projects[dkan][download][type] = git
projects[dkan][download][url] = https://github.com/NuCivic/dkan.git
projects[dkan][download][tag] = 7.x-1.12.12
projects[dkan][download][tag] = 7.x-1.12.13

; Un-comment if diff is not empty.
;projects[dkan][patch][1] = https://github.com/NuCivic/dkan/compare/7.x-1.12.12...release-1-12.diff
;projects[dkan][patch][1] = https://github.com/NuCivic/dkan/compare/7.x-1.12.13...release-1-12.diff

2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
data_starter:
version: 1.12.12.0
version: 1.12.13.0

2 changes: 1 addition & 1 deletion dkan/dkan.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = DKAN
core = 7.x
exclusive = TRUE
version = 7.x-1.12.12
version = 7.x-1.12.13
project = dkan

; Core
Expand Down
14 changes: 7 additions & 7 deletions dkan/drupal-org.make
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
api: '2'
core: 7.x
includes:
- https://raw.githubusercontent.com/NuCivic/dkan_dataset/7.x-1.12.12/dkan_dataset.make
- https://raw.githubusercontent.com/NuCivic/dkan_datastore/7.x-1.12.12/dkan_datastore.make
- https://raw.githubusercontent.com/NuCivic/dkan_workflow/7.x-1.12.12/dkan_workflow.make
- https://raw.githubusercontent.com/NuCivic/dkan_dataset/7.x-1.12.13/dkan_dataset.make
- https://raw.githubusercontent.com/NuCivic/dkan_datastore/7.x-1.12.13/dkan_datastore.make
- https://raw.githubusercontent.com/NuCivic/dkan_workflow/7.x-1.12.13/dkan_workflow.make
- https://raw.githubusercontent.com/NuCivic/visualization_entity/7.x-1.0-beta1/visualization_entity.make
- modules/dkan/dkan_data_story/dkan_data_story.make
- modules/dkan/dkan_topics/dkan_topics.make
Expand Down Expand Up @@ -39,19 +39,19 @@ projects:
download:
type: git
url: https://github.com/NuCivic/dkan_dataset.git
tag: 7.x-1.12.12
tag: 7.x-1.12.13
dkan_datastore:
subdir: dkan
download:
type: git
url: https://github.com/NuCivic/dkan_datastore.git
tag: 7.x-1.12.12
tag: 7.x-1.12.13
dkan_workflow:
subdir: dkan
download:
type: git
url: https://github.com/NuCivic/dkan_workflow.git
tag: 7.x-1.12.12
tag: 7.x-1.12.13
visualization_entity:
download:
type: git
Expand Down Expand Up @@ -160,7 +160,7 @@ projects:
download:
type: git
url: https://github.com/NuCivic/nuboot_radix.git
tag: 7.x-1.12.12
tag: 7.x-1.12.13
type: theme
radix:
type: theme
Expand Down
65 changes: 36 additions & 29 deletions dkan/libraries/recline/dist/recline.js
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,8 @@ my.Flot = Backbone.View.extend({
y = item.datapoint[0].toFixed(2);
}

var content = _.template('<%= group %> = <%= x %>, <%= series %> = <%= y %>', {
var template = _.template('<%= group %> = <%= x %>, <%= series %> = <%= y %>');
var content = template({
group: this.state.attributes.group,
x: this._xaxisLabel(x),
series: item.series.label,
Expand Down Expand Up @@ -1406,9 +1407,9 @@ my.FlotControls = Backbone.View.extend({
<form class="form-stacked"> \
<div class="clearfix"> \
<div class="form-group"> \
<label>Graph Type</label> \
<label for ="form-field-type">Graph Type</label> \
<div class="input editor-type"> \
<select class="form-control"> \
<select id="form-field-type" class="form-control"> \
<option value="lines-and-points">Lines and Points</option> \
<option value="lines">Lines</option> \
<option value="points">Points</option> \
Expand All @@ -1418,9 +1419,9 @@ my.FlotControls = Backbone.View.extend({
</div> \
</div> \
<div class="form-group"> \
<label>Group Column (Axis 1)</label> \
<label for="field-form-group">Group Column (Axis 1)</label> \
<div class="input editor-group"> \
<select class="form-control"> \
<select id="field-form-group" class="form-control"> \
<option value="">Please choose ...</option> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
Expand All @@ -1444,11 +1445,11 @@ my.FlotControls = Backbone.View.extend({
templateSeriesEditor: ' \
<div class="editor-series js-series-{{seriesIndex}}"> \
<div class="form-group"> \
<label>Series <span>{{seriesName}} (Axis 2)</span> \
<label for="form-field-{{seriesName}}">Series <span>{{seriesName}} (Axis 2)</span> \
[<a href="#remove" class="action-remove-series">Remove</a>] \
</label> \
<div class="input"> \
<select class="form-control"> \
<select id="form-field-{{seriesName}}" class="form-control"> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
{{/fields}} \
Expand Down Expand Up @@ -1881,6 +1882,7 @@ my.Map = Backbone.View.extend({

initialize: function(options) {
var self = this;
this.options = options;
this.visible = this.$el.is(':visible');
this.mapReady = false;
// this will be the Leaflet L.Map object (setup below)
Expand Down Expand Up @@ -2282,16 +2284,27 @@ my.Map = Backbone.View.extend({

// Private: Sets up the Leaflet map control and the features layer.
//
// The map uses a base layer from [OpenStreetMap.org](http://openstreetmap.org) based
// on [OpenStreetMap data](http://openstreetmap.org).
// The map uses a base layer from [Stamen](http://maps.stamen.com) based
// on [OpenStreetMap data](http://openstreetmap.org) by default, but it can
// be configured passing the `mapTilesURL` and `mapTilesAttribution` options
// (`mapTilesSubdomains` is also supported), eg:
//
// view = new recline.View.Map({
// model: dataset,
// mapTilesURL: '//{s}.tiles.mapbox.com/v4/mapbox.mapbox-streets-v7/{z}/{x}/{y}.png?access_token=pk.XXXX',
// mapTilesAttribution: '&copy; MapBox etc..',
// mapTilesSubdomains: 'ab'
// })
//
//
_setupMap: function(){
var self = this;
this.map = new L.Map(this.$map.get(0));
var mapUrl = this.options.mapTilesURL || 'https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png';
var attribution = this.options.mapTilesAttribution ||'Map tiles by <a href="http://stamen.com">Stamen Design</a> (<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>). Data by <a href="http://openstreetmap.org">OpenStreetMap</a> (<a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>)';
var subdomains = this.options.mapTilesSubdomains || 'abc';

var mapUrl = "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
var osmAttribution = '©<a href="http://openstreetmap.org" target="_blank">OpenStreetMap</a> contributors';
var bg = new L.TileLayer(mapUrl, {maxZoom: 19, attribution: osmAttribution});
var bg = new L.TileLayer(mapUrl, {maxZoom: 19, attribution: attribution, subdomains: subdomains});
this.map.addLayer(bg);

this.markers = new L.MarkerClusterGroup(this._clusterOptions);
Expand Down Expand Up @@ -2337,18 +2350,18 @@ my.MapMenu = Backbone.View.extend({
GeoJSON field</label> \
</div> \
<div class="editor-field-type-latlon"> \
<label>Latitude field</label> \
<label for="form-field-lat-field">Latitude field</label> \
<div class="input editor-lat-field"> \
<select class="form-control"> \
<select id="form-field-lat-field" class="form-control"> \
<option value=""></option> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
{{/fields}} \
</select> \
</div> \
<label>Longitude field</label> \
<label for="form-field-lon-field">Longitude field</label> \
<div class="input editor-lon-field"> \
<select class="form-control"> \
<select id="form-field-lon-field" class="form-control"> \
<option value=""></option> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
Expand All @@ -2357,9 +2370,9 @@ my.MapMenu = Backbone.View.extend({
</div> \
</div> \
<div class="editor-field-type-geom" style="display:none"> \
<label>Geometry field (GeoJSON)</label> \
<label for="form-field-type-geom">Geometry field (GeoJSON)</label> \
<div class="input editor-geom-field"> \
<select class="form-control"> \
<select id="form-field-type-geom" class="form-control"> \
<option value=""></option> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
Expand Down Expand Up @@ -3227,13 +3240,7 @@ my.SlickGrid = Backbone.View.extend({
}

function sanitizeFieldName(name) {
var sanitized;
try{
sanitized = $(name).text();
} catch(e){
sanitized = '';
}
return (name !== sanitized && sanitized !== '') ? sanitized : name;
return $('<div>').text(name).html();
}

_.each(this.model.fields.toJSON(),function(field){
Expand Down Expand Up @@ -4045,16 +4052,16 @@ my.FilterEditor = Backbone.View.extend({
<a href="#" class="js-add-filter">Add filter</a> \
<form class="form-stacked js-add" style="display: none;"> \
<div class="form-group"> \
<label>Field</label> \
<select class="fields form-control"> \
<label for="form-field-add-field">Field</label> \
<select id="form-field-add-field" class="fields form-control"> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
{{/fields}} \
</select> \
</div> \
<div class="form-group"> \
<label>Filter type</label> \
<select class="filterType form-control"> \
<label for="form-field-filter-type">Filter type</label> \
<select id="form-field-filter-type" class="filterType form-control"> \
<option value="term">Value</option> \
<option value="range">Range</option> \
<option value="geo_distance">Geo distance</option> \
Expand Down
6 changes: 3 additions & 3 deletions dkan/libraries/recline/dist/recline.min.js

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions dkan/libraries/recline/src/view.flot.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ my.Flot = Backbone.View.extend({
y = item.datapoint[0].toFixed(2);
}

var content = _.template('<%= group %> = <%= x %>, <%= series %> = <%= y %>', {
var template = _.template('<%= group %> = <%= x %>, <%= series %> = <%= y %>');
var content = template({
group: this.state.attributes.group,
x: this._xaxisLabel(x),
series: item.series.label,
Expand Down Expand Up @@ -368,9 +369,9 @@ my.FlotControls = Backbone.View.extend({
<form class="form-stacked"> \
<div class="clearfix"> \
<div class="form-group"> \
<label>Graph Type</label> \
<label for ="form-field-type">Graph Type</label> \
<div class="input editor-type"> \
<select class="form-control"> \
<select id="form-field-type" class="form-control"> \
<option value="lines-and-points">Lines and Points</option> \
<option value="lines">Lines</option> \
<option value="points">Points</option> \
Expand All @@ -380,9 +381,9 @@ my.FlotControls = Backbone.View.extend({
</div> \
</div> \
<div class="form-group"> \
<label>Group Column (Axis 1)</label> \
<label for="field-form-group">Group Column (Axis 1)</label> \
<div class="input editor-group"> \
<select class="form-control"> \
<select id="field-form-group" class="form-control"> \
<option value="">Please choose ...</option> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
Expand All @@ -406,11 +407,11 @@ my.FlotControls = Backbone.View.extend({
templateSeriesEditor: ' \
<div class="editor-series js-series-{{seriesIndex}}"> \
<div class="form-group"> \
<label>Series <span>{{seriesName}} (Axis 2)</span> \
<label for="form-field-{{seriesName}}">Series <span>{{seriesName}} (Axis 2)</span> \
[<a href="#remove" class="action-remove-series">Remove</a>] \
</label> \
<div class="input"> \
<select class="form-control"> \
<select id="form-field-{{seriesName}}" class="form-control"> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
{{/fields}} \
Expand Down
34 changes: 23 additions & 11 deletions dkan/libraries/recline/src/view.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ my.Map = Backbone.View.extend({

initialize: function(options) {
var self = this;
this.options = options;
this.visible = this.$el.is(':visible');
this.mapReady = false;
// this will be the Leaflet L.Map object (setup below)
Expand Down Expand Up @@ -454,16 +455,27 @@ my.Map = Backbone.View.extend({

// Private: Sets up the Leaflet map control and the features layer.
//
// The map uses a base layer from [OpenStreetMap.org](http://openstreetmap.org) based
// on [OpenStreetMap data](http://openstreetmap.org).
// The map uses a base layer from [Stamen](http://maps.stamen.com) based
// on [OpenStreetMap data](http://openstreetmap.org) by default, but it can
// be configured passing the `mapTilesURL` and `mapTilesAttribution` options
// (`mapTilesSubdomains` is also supported), eg:
//
// view = new recline.View.Map({
// model: dataset,
// mapTilesURL: '//{s}.tiles.mapbox.com/v4/mapbox.mapbox-streets-v7/{z}/{x}/{y}.png?access_token=pk.XXXX',
// mapTilesAttribution: '&copy; MapBox etc..',
// mapTilesSubdomains: 'ab'
// })
//
//
_setupMap: function(){
var self = this;
this.map = new L.Map(this.$map.get(0));
var mapUrl = this.options.mapTilesURL || 'https://stamen-tiles-{s}.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png';
var attribution = this.options.mapTilesAttribution ||'Map tiles by <a href="http://stamen.com">Stamen Design</a> (<a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>). Data by <a href="http://openstreetmap.org">OpenStreetMap</a> (<a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>)';
var subdomains = this.options.mapTilesSubdomains || 'abc';

var mapUrl = "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
var osmAttribution = '©<a href="http://openstreetmap.org" target="_blank">OpenStreetMap</a> contributors';
var bg = new L.TileLayer(mapUrl, {maxZoom: 19, attribution: osmAttribution});
var bg = new L.TileLayer(mapUrl, {maxZoom: 19, attribution: attribution, subdomains: subdomains});
this.map.addLayer(bg);

this.markers = new L.MarkerClusterGroup(this._clusterOptions);
Expand Down Expand Up @@ -509,18 +521,18 @@ my.MapMenu = Backbone.View.extend({
GeoJSON field</label> \
</div> \
<div class="editor-field-type-latlon"> \
<label>Latitude field</label> \
<label for="form-field-lat-field">Latitude field</label> \
<div class="input editor-lat-field"> \
<select class="form-control"> \
<select id="form-field-lat-field" class="form-control"> \
<option value=""></option> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
{{/fields}} \
</select> \
</div> \
<label>Longitude field</label> \
<label for="form-field-lon-field">Longitude field</label> \
<div class="input editor-lon-field"> \
<select class="form-control"> \
<select id="form-field-lon-field" class="form-control"> \
<option value=""></option> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
Expand All @@ -529,9 +541,9 @@ my.MapMenu = Backbone.View.extend({
</div> \
</div> \
<div class="editor-field-type-geom" style="display:none"> \
<label>Geometry field (GeoJSON)</label> \
<label for="form-field-type-geom">Geometry field (GeoJSON)</label> \
<div class="input editor-geom-field"> \
<select class="form-control"> \
<select id="form-field-type-geom" class="form-control"> \
<option value=""></option> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
Expand Down
8 changes: 4 additions & 4 deletions dkan/libraries/recline/src/widget.filtereditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ my.FilterEditor = Backbone.View.extend({
<a href="#" class="js-add-filter">Add filter</a> \
<form class="form-stacked js-add" style="display: none;"> \
<div class="form-group"> \
<label>Field</label> \
<select class="fields form-control"> \
<label for="form-field-add-field">Field</label> \
<select id="form-field-add-field" class="fields form-control"> \
{{#fields}} \
<option value="{{id}}">{{label}}</option> \
{{/fields}} \
</select> \
</div> \
<div class="form-group"> \
<label>Filter type</label> \
<select class="filterType form-control"> \
<label for="form-field-filter-type">Filter type</label> \
<select id="form-field-filter-type" class="filterType form-control"> \
<option value="term">Value</option> \
<option value="range">Range</option> \
<option value="geo_distance">Geo distance</option> \
Expand Down
Loading

0 comments on commit 084f7d0

Please sign in to comment.