'properties'=>array('general'=>array('type'=>'keyword',),// array of institutions that have access to the artefact'institutions'=>array('type'=>'keyword','copy_to'=>'institution',),'institution'=>array('type'=>'keyword',),// array of groups that have access to the artefact - empty (all), member, admin'groups'=>array(

// If the artefacttype is one of the résumé ones we need to get the description// from this artefact's related résumé table. There is a one -> many relationship between// the artefact and the items but seen as all resume items are added// to a page when choosing One résumé field, rather than selecting them individually,// we can just blob together all the info for this résumé artefact into $record->description.

/** * Get views linked to a particular artefact, applying ACL * This is used to display the list of views in an artefact result, because it's faster to retrieve the info * from Elastic search that running the SQL query. */publicstaticfunctionviews_by_artefact_acl_filter($views=array()){global$USER;