Islandora / documentation

Contains islandora's documentation and main issue queue.
MIT License
104 stars 71 forks source link

Breadcrumbs for object in multiple collections #1777

Open mjordan opened 3 years ago

mjordan commented 3 years ago

If an object is a member of more than one collection, the Islandora breadcrumbs only ever show its membership in one collection. For example:

image

Any way around this, for example, to show in an item's breadcrumb all of the collections it's a member of? In this example, that would look like:

Home > Collection 1 / Collection 2

or

Home > Collection 1
       Collection 2

Or something similar.

seth-shaw-unlv commented 3 years ago

Well, in the case of multi-level collections, you can still only follow one up the tree, unless you want to make something like a pedigree chart...

dannylamb commented 3 years ago

Ah yes, this old chestnut. It plagues Islandora 7.x as well.

I'm sure it can be done, but you'd have to really perform some rocket surgery to get there. I'm sure this violates all kinds of assumptions made by the breadcrumb system in Drupal.

whikloj commented 3 years ago

I think what @seth-shaw-unlv is saying is the real problem. A breadcrumb trail is not one level. So if your item is in two collections and one of those two collections is also in two collections, it starts to get weird.

Home -> Main Collection 1 -> Sub Collection A ->
     |-> Main Collection 2 -> Sub Collection B ->
     |-> Main Collection 3 _/
kayakr commented 3 years ago

FYI, this is how another Drupal site I'm involved with renders breadcrumbs for multiple parents (using D7 node_hierarchy module): Screen Shot 2021-03-16 at 8 32 51 AM

@mjordan Edited to clarify other site is Drupal 7, but not Islandora.

mjordan commented 3 years ago

@kayakr I like this visual approach, it's kinda similar to my stick-figure multiline mockup ^ but more explicit. I'm curious to know how you are using the D7 node_hierarchy module on Islandora 7 objects though.