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

Make a "whole object" view #886

Open
dannylamb opened this issue Jul 26, 2018 · 13 comments
Open

Make a "whole object" view #886

dannylamb opened this issue Jul 26, 2018 · 13 comments
Labels
Subject: Drupal related specifically to Drupal, usually pointing somewhere on drupal.org
Milestone

Comments

@dannylamb
Copy link
Contributor

It would be nice to have a view that encapsulates and entire object (e.g. its descriptive metadata + members + media) in a single display. Looks like this can be done with the views_field_view module, but will require some exploration for sure.

It will be interesting to see what sort of jsonld gets generated by a REST export of the view, too. This could be a pattern for rendering arbitrary graphs in jsonld using a UI without needing a template.

@mjordan
Copy link
Contributor

mjordan commented Jul 26, 2018

@dannylamb the UI that I was describing during yesterday's CLAW call used a tab, like the one that I've implemented in the 7.x Islandora Metadata Extras:

solr_view_1

Then, in that tab:

solr_view_2

But I reckon that implementing this as a View will allow us to do a whole lot of useful things with it.

@ajs6f
Copy link

ajs6f commented Jul 26, 2018

Dunno what the Views module actually does with JSON-LD, but the natural RDF idiom would be a straight merge of graphs or datasets.The tricky bit for JSON-LD might be in the contexts, but presumably, "collision avoidance" is on the repo managers?

Inserting a more adjustable aggregation in there seems like a bit of a can of worms...

@dannylamb
Copy link
Contributor Author

dannylamb commented Jul 26, 2018

@mjordan We can make it a tab whether its views or any other custom path we go down. We don't really have the manage tab anymore, though we'll hit the tipping point on # of tabs soon and will probably have to consider it or something like it.

@ajs6f That's what a views REST export should do. Supposedly it will just spit out the jsonld for each entity listed in the view. But you never know™️ . It'll be neat to see what happens.

@mjordan
Copy link
Contributor

mjordan commented Jul 26, 2018

@dannylamb good point about the Manage tab.

@ajs6f
Copy link

ajs6f commented Jul 26, 2018

I think we really need a tab-management tab for each resource, as well as a tab-management-management tab for the site as a whole, and if possible, a tab-management-management-management tab for the source code.

TAB

@mjordan
Copy link
Contributor

mjordan commented Jul 26, 2018

@ajs6f I take it from the image that you prefer vertical Tabs as opposed to the horizontal variety?

@ajs6f
Copy link

ajs6f commented Jul 26, 2018

Personally, I like caffeine-free tabs with artificial sweeteners, because I am one of the beautiful people.

@dannylamb
Copy link
Contributor Author

dannylamb commented Aug 7, 2018

At our last CLAW call we talked about alternatives to the "whole object view". One of the things that came up was using blocks instead of tabs, with access control/role determining what you can see. This would make the canonical node url the "whole object" view.

Previously we avoided blocks because they're tied to a particular theme when you export them, which made the core islandora module require said theme. But now that we've got things separated out between our "core" and "demo" features we should be good on that. It'd certainly cut down on the # of tabs.

@mjordan
Copy link
Contributor

mjordan commented Oct 14, 2018

I've made a crude start on this at https://github.com/mjordan/islandora_whole_object. Decided to use a tab for now but I'll tackle adding a block next.

@dannylamb
Copy link
Contributor Author

@mjordan I like the table output, it's almost like saying "give me all the triples". If you want to play around with blocks, export it out as part of islandora_demo. That way your module won't depend on the theme.

Something to consider would be pulling in related entities and making those available when the template is rendered. I think pulling in all the associated media, members, and taxonomy terms in one place is really what's at the heart of this issue. I wonder if it's possible to render the results of a view from a twig template? If so, you could latch onto existing views pretty easily to paint a bigger picture.

@mjordan
Copy link
Contributor

mjordan commented Oct 15, 2018

Sounds good. So far I've been using the Drupal theme layer to assemble the content in a very simplistic way. Would like to explore the view/Twig template approach for the cannonical representation. Just to be clear - are you referring to a capital 'V' View or something else?

@dannylamb
Copy link
Contributor Author

Lol, I'm talking Drupal Views, not Model-View-Controller.

@mjordan
Copy link
Contributor

mjordan commented Oct 18, 2018

OK, I'm now using a version of the Media View, and have combined the RDF properties, the media list, the Fedora Turtle, and the Solr document into the overview. Here's the screenshot:

overview

@whikloj whikloj added this to the 1.x milestone Apr 11, 2019
@kstapelfeldt kstapelfeldt added Subject: Drupal related specifically to Drupal, usually pointing somewhere on drupal.org and removed drupal labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Drupal related specifically to Drupal, usually pointing somewhere on drupal.org
Projects
Development

No branches or pull requests

5 participants