Islandora / documentation

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

Replicating 7.x's collapsable "Details" display #1359

Open mjordan opened 4 years ago

mjordan commented 4 years ago

Islandora 7.x's metadata display was wrapped in a collapsable div that allowed the user to expand/collapse:

Collapsed:

lasers1

Expanded:

lasers2

In Islandora 8, the metadata fields are always exposed (similar to the expanded option above). Do we want to emulate 7.x's behavior in 8, or at least provide a built-in option to do so?

mjordan commented 4 years ago

I'll check out https://www.drupal.org/project/field_group to see if this does the trick.

seth-shaw-unlv commented 4 years ago

I was just about to recommend field_group for doing this. However, perhaps this should be a recipe instead of a default (to limit the default install weight)?

mjordan commented 4 years ago

Agreed. I'm trying to test it now but the composer install failed. Will resume testing/troubleshooting later.

mjordan commented 4 years ago

Field Group works well. Here is my field group (lower left, it's circled in red to make it more visible) closed by default:

closed

Clicking on the "Metadata" label opens it:

open

It a bit clunky to set up. One thing is that it looks like admins will need to configure this separately for every display/view mode (default, PDFjs, OpenSeadragon, etc.):

fieldgroupconfig

But once it's done, it's set and forget. It looks like the field group config is portable:

fieldgroupyaml

So maybe it could become part o the standard setup?

mjordan commented 4 years ago

Tagging @manez as this would be good candidate for a recipe.

manez commented 4 years ago

Finally got to this one on the tech call today, with a resounding "yes" for doing it as a recipe and not as a default.

mjordan commented 3 years ago

@manez, where do recipes fit into the DIG's current workplan?

manez commented 3 years ago

@mjordan https://github.com/Islandora-Labs/Islandora-Cookbook is still the home base for recipes. We've talked about evaluating whether those should get rolled into the main docs at some point, but that's pretty far ahead, and would build from what's in the github repo anyway.

mjordan commented 3 years ago

OK, thanks. I'll write up a recipe and open a PR on that repo.