Skip to content

Commit

Permalink
Feature/search improvements (#765)
Browse files Browse the repository at this point in the history
* Reroute users to new search page (#750)

* [ENG-4572] Delete discover route (#752)

* delete discover route

* add stub for theme service

* point to new eosf feature branch (#758)

* Skip failing test for now

* Update taxonomy-top-list qp (#762)

* Fix qp values for browse by subject links (#763)

* Update yarn.lock

* update eof to use 0.39.0 (#764)

---------

Co-authored-by: Yuhuai Liu <yuhuai@cos.io>
  • Loading branch information
futa-ikeda and adlius committed Oct 10, 2023
1 parent 3972f19 commit 23e9865
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 567 deletions.
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 23e9865

Please sign in to comment.