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

Breadcrumb reaction doesn't work with Islandora objects #1

Open
mjordan opened this issue May 30, 2015 · 2 comments
Open

Breadcrumb reaction doesn't work with Islandora objects #1

mjordan opened this issue May 30, 2015 · 2 comments

Comments

@mjordan
Copy link
Collaborator

mjordan commented May 30, 2015

The "Breadcrumb" reaction that ships with the contrib Context module doesn't work with Islandora objects. To replicate the behavior of this plugin, which is to replace a page's breadcrumb with the link to the selected menu item, we could probably implement hook_islandora_breadcrumbs_alter() to replace the breadcrumbs generated by Islandora with a link to the selected menu item. Won't do that until someone asks for it though.

@mjordan
Copy link
Collaborator Author

mjordan commented May 31, 2015

One possible use case would be to display a breadcrumb trail containing links to its parent collections. If building this list could be made performant, this reaction might be useful to those sites that have turned of "Render Drupal breadcrumbs" for scalability reasons. Might go like this:

  1. Get object's parent collection PIDs
  2. For each of the collections, do the following query to get the corresponding collection object's title: "http://localhost:8080/solr/select?version=1.2&wt=json&json.nl=map&fl=fgs_label_s&q=PID:%22islandora:sp_basic_image_collection%22"
  3. Use drupal_set_breadcrumb() to render the breadcrumb

@mjordan
Copy link
Collaborator Author

mjordan commented May 31, 2015

Tried this in the breadcrumb branch, but for some reason drupal_set_breadcrumb is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant