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

Create a generic/reusable data source plugin that executes a View #4

Open
mjordan opened this issue Apr 24, 2020 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@mjordan
Copy link
Owner

mjordan commented Apr 24, 2020

Basically, the View would be called within the getData() method of the plugin. Whatever is in the view then gets passed on to Chart.js.

@mjordan
Copy link
Owner Author

mjordan commented Apr 28, 2020

https://www.drupal.org/project/views_chartjs might work instead.

@mjordan mjordan transferred this issue from mjordan/media_formats_reports May 9, 2020
@mjordan mjordan added the enhancement New feature or request label May 9, 2020
@mjordan
Copy link
Owner Author

mjordan commented May 16, 2020

Another way to integrate Views into Repository Reports is to have it provided some Islandora-specific Views field plugins, as described in #6 (comment). The example in that comment is from Islandora Riprap, which provides a "Fixity Auditing" View field plugin that queries Riprap for fixity events on each media that show up in Islandora's "Manage Media" view. When the "field" the plugin defines is added to that View, it renders the data like this:

image

@mjordan
Copy link
Owner Author

mjordan commented May 20, 2020

To build on the implementation described at the very top of this issue, if this module provided a Views style plugin (a la https://www.drupal.org/docs/creating-custom-modules/building-a-views-display-style-plugin-for-drupal) that rendered the output of a View in a structure similar to the one returned by data source plugins' getData() method, any view that counted things using aggregation could be rendered as a chart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant