Skip to content

Commit

Permalink
Merge branch 'release/0.144.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
adlius committed Oct 10, 2023
2 parents fa8a11b + 1474dfb commit 83bc096
Show file tree
Hide file tree
Showing 19 changed files with 51 additions and 568 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.144] - 2023-10-10
### Changed
- Removed preprint discover routes (search improvement phase 2)

## [0.143] - 2023-09-15
### Changed
- Update assets
Expand Down
3 changes: 3 additions & 0 deletions app/components/additional-provider-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Component from '@ember/component';
import { computed } from '@ember/object';
import { inject as service } from '@ember/service';
import Analytics from 'ember-osf/mixins/analytics';
import config from 'ember-get-config';

/**
* @module ember-preprints
* @submodule components
Expand Down Expand Up @@ -38,4 +40,5 @@ export default Component.extend(Analytics, {
}
return pairedList;
}),
osfUrl: config.OSF.url,
});
7 changes: 5 additions & 2 deletions app/components/taxonomy-top-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Component from '@ember/component';
import { computed } from '@ember/object';
import { inject as service } from '@ember/service';
import Analytics from 'ember-osf/mixins/analytics';
import config from 'ember-get-config';

/**
* @module ember-preprints
* @submodule components
Expand Down Expand Up @@ -32,19 +34,20 @@ export default Component.extend(Analytics, {
// subject param in the discover controller is expecting
const subjectOdd = sortedList.objectAt(i);
pair.pushObject({
path: [subjectOdd.get('path')],
path: `activeFilters=[{"propertyVisibleLabel":"Subject","propertyPathKey":"subject","label":"${subjectOdd.get('text')}","value":"${subjectOdd.get('links.iri')}"}]`,
text: subjectOdd.get('text'),
});

if (sortedList.objectAt(i + 1)) {
const subjectEven = sortedList.objectAt(i + 1);
pair.pushObject({
path: [subjectEven.get('path')],
path: `activeFilters=[{"propertyVisibleLabel":"Subject","propertyPathKey":"subject","label":"${subjectEven.get('text')}","value":"${subjectEven.get('links.iri')}"}]`,
text: subjectEven.get('text'),
});
}
pairedList.pushObject(pair);
}
return pairedList;
}),
osfUrl: config.OSF.url,
});
Loading

0 comments on commit 83bc096

Please sign in to comment.