corporate-frontend-mithril
Version:
Corporate frontend MithrilJS modules
78 lines (73 loc) • 2.1 kB
JavaScript
module.exports = {
START_INDEX: 0,
FIRST_PAGE: 1,
ITEMS_PER_PAGE: 10,
SELECTOR_IGNORE_INDEX: -1,
ADVANCED_SEARCH_ID: '#b-js-apo-advanced-search',
MEDICINE_AND_HEALTH: 'MEDICINE_AND_HEALTH',
PAGE_TYPE_FIND_EXPERT: 'find-expert',
PAGE_TYPE_FIND_RESEARCHER: 'find-researcher',
PAGE_TYPE_ADVANCED_SEARCH: 'advanced-search',
FACULTIES: [
{
'domainId': 1,
'orgUnitCode': '5000053010M3000',
'domain': 'MEDICINE_AND_HEALTH',
'domainName':'Medicine and Health Faculty',
},
{
'domainId': 2,
'orgUnitCode': '5000053010M3000Q0000',
'domain': 'PHARMACY',
'domainName':'Pharmacy',
},
],
// Rest endpoint for APO search webservice
WS_BASE_URL : 'http://api.profiles.sydney.edu.au/AcademicProfiles/interfaces/rest',
// Rest endpoint for Lucene search
WS_SEARCH_METHOD : 'performSimpleAttributeSearch',
WS_SEARCH_RESULT_SIZE_METHOD : 'getSearchResultSize',
// Static search fields from http://api.profiles.sydney.edu.au/AcademicProfiles/interfaces/rest/getStaffSearchFields
SEARCH_FIELDS: [
'staffId',
'staffName',
'urlId',
'salutation',
'jobTitle',
'postNominal',
'phone',
'fax',
'email',
'building',
'domainId',
'domainName',
'orgUnitName',
'orgUnitCode',
'themeId',
'themeName',
'keywordId',
'keywordName',
'approachId',
'approachName',
'biography',
'researchInterest',
'teachingArea',
'countryId',
'countryName',
'isMediaExpert',
'studentId',
'supervisorId',
'doesHavePhoto',
'profileUrl',
'publication',
'grant',
'isPublishingActive',
'mediaKeywordName',
'mediaMobile',
'clinicalSpecialtyId',
'clinicalSpecialty',
'jobType',
'centreId',
'thesisTitle',
'thesisAbstract'],
};