You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Scholar Directory" link leads to a hard-coded Solr query that assumes all profiles are part of an islandora:person collection. That is not the case in many instances, in Digital.Grinnell our profiles are part of an islandora:entity_collection so my "Scholar Directory" will always be empty as-written.
I suggest a better query would be:
/**
* Redirects to search
*/
function islandora_scholar_profile_directory() {
drupal_goto('islandora/search/RELS_EXT_hasModel_uri_s:(info\:fedora\~slsh~islandora\:personCModel)');
}
This query (the snippet above is from my copy of islandora_scholar_profile.module) only assumes that you want to return all objects that use the personCModel, so it does not depend on creation of a specific collection.
The text was updated successfully, but these errors were encountered:
Note that I did not submit this change as a PR because I am working from a fork of the project, and because I'm not sure if other elements of this module might also require a specific islandora:person collection. Thus far I haven't encountered anything else that needs to be that specific.
@bookishgirl Thought you might be interested in this too.
The "Scholar Directory" link leads to a hard-coded Solr query that assumes all profiles are part of an
islandora:person
collection. That is not the case in many instances, in Digital.Grinnell our profiles are part of anislandora:entity_collection
so my "Scholar Directory" will always be empty as-written.I suggest a better query would be:
This query (the snippet above is from my copy of
islandora_scholar_profile.module
) only assumes that you want to return all objects that use thepersonCModel
, so it does not depend on creation of a specific collection.The text was updated successfully, but these errors were encountered: