Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/search improvements #765

Merged
merged 9 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading