Skip to content

Commit

Permalink
Merge pull request #6 from NLeSC/jsonSelection
Browse files Browse the repository at this point in the history
fixed text search label, fixed perspectives not showing in breadcrumb…
  • Loading branch information
Maartenvm authored Feb 22, 2017
2 parents d26cdae + 8966e39 commit 3b1886c
Show file tree
Hide file tree
Showing 23 changed files with 264 additions and 541 deletions.
2 changes: 1 addition & 1 deletion app/scripts/allactorchart/allActorChart.directive.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<b>Actors</b>
<div id="rowchart_allActors"></div>
<div id="actors"></div>
2 changes: 1 addition & 1 deletion app/scripts/allauthorschart/allAuthorsChart.directive.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<b>Authors</b>
<div id="rowchart_allAuthors"></div>
<div id="authors"></div>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<b>Cited</b>
<div id="rowchart_allCitations"></div>
<div id="citations"></div>
2 changes: 1 addition & 1 deletion app/scripts/allsourceschart/allSourcesChart.directive.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div id="rowchart_allSources"></div>
<div id="sources"></div>
1 change: 0 additions & 1 deletion app/scripts/authentication/attribution.txt

This file was deleted.

27 changes: 0 additions & 27 deletions app/scripts/authentication/authentication.controller.js

This file was deleted.

21 changes: 0 additions & 21 deletions app/scripts/authentication/authentication.directive.html

This file was deleted.

14 changes: 0 additions & 14 deletions app/scripts/authentication/authentication.directive.js

This file was deleted.

58 changes: 0 additions & 58 deletions app/scripts/authentication/authentication.service.js

This file was deleted.

91 changes: 0 additions & 91 deletions app/scripts/authentication/base64.service.js

This file was deleted.

5 changes: 4 additions & 1 deletion app/scripts/breadcrumbs/breadcrumbs.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
me.filters = [];
var charts = Object.keys(me.charts);
charts.forEach(function(chartID) {
var anchorName = me.charts[chartID].anchorName();
me.charts[chartID].filters().forEach(function(f) {
var filterText = f.toString();
if (f.filterType === 'RangedTwoDimensionalFilter') {
Expand All @@ -52,6 +53,8 @@
var textLeftBottom = dateLeft.getFullYear() + '-' + dateLeft.getMonth() + '-' + dateLeft.getDay() + ' / ' + bottom;
var textRightTop = dateRight.getFullYear() + '-' + dateRight.getMonth() + '-' + dateRight.getDay() + ' / ' + top;
filterText = textLeftBottom + ' : ' + textRightTop;
} else if (f.filterType === 'RangedFilter') {
filterText = (f[0]).toPrecision(2) + ' : ' + (f[1]).toPrecision(2);
} else if (f instanceof Array) {
filterText = '';
f.forEach(function(element) {
Expand All @@ -69,7 +72,7 @@
me.filters.push({
chartID: chartID,
filter: f,
filterString: '['+filterText+']',
filterString: anchorName+'['+filterText+']',
dimension: dimension
});
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<div class="mdl-textfield mdl-js-textfield" id="fullltextSearch_{{fTCSCtrl.ndxServiceName}}">
<input class="mdl-textfield__input" type="text" id="freeSearch" ng-model="fTCSCtrl.input" ng-change="fTCSCtrl.applyFilter()" ng-model-options="{debounce: 1000}">
<label class="mdl-textfield__label" for="freeSearch">Search for keywords...</label>
</div>
<form action='#'>
<div class="mdl-textfield mdl-js-textfield" id="fullltextSearch_{{fTCSCtrl.ndxServiceName}}">
<input class="mdl-textfield__input" type="text" id="freeSearch" ng-model="fTCSCtrl.input" ng-change="fTCSCtrl.applyFilter()" ng-model-options="{debounce: 100}">
<label class="mdl-textfield__label" for="freeSearch" ng-show="!fTCSCtrl.input">Search for keywords...</label>
</div>
</form>
Loading

0 comments on commit 3b1886c

Please sign in to comment.