Skip to content

Commit

Permalink
merge main into branch
Browse files Browse the repository at this point in the history
  • Loading branch information
brampauwelyn committed Mar 25, 2024
2 parents 7bd021b + 97e60c5 commit 59dcfaa
Show file tree
Hide file tree
Showing 11 changed files with 70 additions and 32 deletions.
37 changes: 28 additions & 9 deletions dist/udb3-angular.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions dist/udb3-angular.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/core/translations/dutch-translations.constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ angular.module('udb.core')
'sameAs': 'Externe IDs',
'typicalAgeRange': 'Leeftijd',
'language': 'Taal',
'audience': 'Toegang'
'audience': 'Toegang',
'completeness': 'Volledigheid'
},
preview: {
tabs: {
Expand Down Expand Up @@ -787,6 +788,7 @@ angular.module('udb.core')
'status': 'status',
'booking_availability': 'tickets & plaatsen',
'organiser_label': 'organisatie (naam)',
'completeness': 'volledigheid',
'category_facility_name': 'voorzieningen',
'category_targetaudience_name': 'doelgroep',
'startdate': 'startdatum',
Expand Down
4 changes: 3 additions & 1 deletion src/core/translations/french-translations.constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ angular.module('udb.core')
'sameAs': 'IDs externes',
'typicalAgeRange': ' ge',
'language': 'Langue',
'audience': 'Accès'
'audience': 'Accès',
'completeness': 'Intégralité'
},
preview: {
tabs: {
Expand Down Expand Up @@ -782,6 +783,7 @@ angular.module('udb.core')
'status': 'status',
'booking_availability': 'billets & places',
'organiser_label': 'organisation (nom)',
'completeness': 'intégralité',
'category_facility_name': 'dispositions',
'category_targetaudience_name': 'public cible',
'startdate': 'date de début',
Expand Down
2 changes: 2 additions & 0 deletions src/core/translations/german-translations.constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ angular.module('udb.core').constant('udbGermanTranslations', {
'typicalAgeRange': 'Alter',
'language': 'Sprache',
'audience': 'Zutritt',
'completeness': 'Integrität'
},
'preview': {
'tabs': {
Expand Down Expand Up @@ -837,6 +838,7 @@ angular.module('udb.core').constant('udbGermanTranslations', {
'status': 'Status',
'booking_availability': 'Tickets & Plätze',
'organiser_label': 'Organisation (Name)',
'completeness': 'integrität',
'add_facility': 'Ausstattung',
'category_targetaudience_name': 'Zielgruppe',
'startdate': 'Startdatum',
Expand Down
3 changes: 2 additions & 1 deletion src/export/event-export.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ function EventExportController($uibModalInstance, eventExporter, ExportFormats,
{name: 'sameAs', include: false, sortable: false, excludable: true},
{name: 'typicalAgeRange', include: false, sortable: false, excludable: true},
{name: 'language', include: false, sortable: false, excludable: true},
{name: 'audience', include: false, sortable: false, excludable: true, format: ExportFormats.OOXML}
{name: 'audience', include: false, sortable: false, excludable: true, format: ExportFormats.OOXML},
{name: 'completeness', include: false, sortable: false, excludable: true}
];

exporter.exportFormats = _.map(ExportFormats);
Expand Down
4 changes: 2 additions & 2 deletions src/saved-searches/components/save-search-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ <h5 class="modal-title" translate-once="search.savedSearches.modal.mainTitle"></
</div>

<ul class="nav nav-tabs">
<li ng-class="{active: isTabActive('new')}"><a ng-click="makeTabActive('new')" translate-once="search.savedSearches.modal.newTab"></a></li>
<li ng-class="{active: isTabActive('existing')}"><a ng-click="makeTabActive('existing')" translate-once="search.savedSearches.modal.existingTab"></a></li>
<li ng-class="{active: isTabActive('new')}"><a style="cursor: pointer;" ng-click="makeTabActive('new')" translate-once="search.savedSearches.modal.newTab"></a></li>
<li ng-class="{active: isTabActive('existing')}"><a style="cursor: pointer;" ng-click="makeTabActive('existing')" translate-once="search.savedSearches.modal.existingTab"></a></li>
</ul>


Expand Down
11 changes: 7 additions & 4 deletions src/saved-searches/components/save-search.directive.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<p>
<p style="margin-top: 12px;">
<strong translate-once="search.savedSearches.yourSearch"></strong>
<a href="#" ng-click="saveSearch()" class="btn btn-sm btn-default">
<i class="fa fa-bookmark-o"></i> <span translate-once="search.savedSearches.save"></span>
</a>
<button href="#" ng-click="saveSearch()" class="btn btn-default rv-action">
<i class="fa fa-save"></i> <span translate-once="search.savedSearches.save"></span>
</button>
<span style="cursor:pointer;color:#999999;margin-left: 5px;" ng-click="openAnnouncementModal()">
<i class="fa fa-question-circle"></i>
</span>
</p>
8 changes: 8 additions & 0 deletions src/saved-searches/components/save-search.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ function udbSaveSearch(savedSearchesService, $uibModal) {

});
};

scope.openAnnouncementModal = function () {
window.parent.postMessage({
source: 'UDB',
type: 'OPEN_ANNOUNCEMENT_MODAL',
id: '2833ab49-cf44-4504-89d1-f6ba3f81aa63'
}, '*');
};
}

function displayErrorModal() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Directive: udbSaveSearch', function () {
$rootScope.queryString = 'city:leuven';
var element = $compile('<udb-save-search udb-query-string="queryString"></udb-save-search>')($rootScope);
$rootScope.$digest();
element.find('a').triggerHandler('click');
element.find('button').triggerHandler('click');
spyOn(savedSearchesService, 'createSavedSearch').and.callFake(function() {
apiRequest = $q.defer();
return apiRequest.promise;
Expand Down
1 change: 1 addition & 0 deletions src/search/services/query-fields.value.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ angular
{name: 'status', field: 'status', type: 'choice', group: 'other', editable: true, options: ['Available', 'Unavailable', 'TemporarilyUnavailable']},
{name: 'booking_availability', field: 'bookingAvailability', type: 'choice', group: 'other', editable: true, options: ['available', 'unavailable']},
{name: 'organiser_label', field: 'organizer.name.\\*', type: 'tokenized-string', group: 'other', editable: true},
{name: 'completeness', field: 'completeness', type: 'number' , group: 'other', editable: true},
{name: 'category_facility_name', field:'terms.id', type: 'term', group: 'other', editable: true},
{name: 'category_targetaudience_name', field: 'audienceType', type: 'choice', group: 'other', editable: true, options: ['everyone', 'members', 'education']},

Expand Down

0 comments on commit 59dcfaa

Please sign in to comment.