@europeana/portal
Version:
Europeana Portal
21 lines (17 loc) • 545 B
JavaScript
import baseData from '../index.js';
import organizationsMixin from '../../../mixins/europeana/entities/organizations.js';
const PICK = ['id', 'prefLabel', 'logo'];
const DAILY = 4;
const INTERNATIONALISE = (entities) => entities.map((entity) => ({
...entity,
prefLabel: organizationsMixin.methods.organizationEntityNativeName(entity)
}));
const SORT = (entity) => Object.values(entity.prefLabel)[0];
const data = (config = {}) => baseData({ type: 'organization' }, config);
export {
data,
PICK,
DAILY,
INTERNATIONALISE,
SORT
};