Bug 27188 - Show current class in plugins home
Summary: Show current class in plugins home
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Plugin architecture (show other bugs)
Version: master
Hardware: All All
: P5 - low minor (vote)
Assignee: Fridolin Somers
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-10 09:47 UTC by Fridolin Somers
Modified: 2023-12-28 20:42 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 27188: Show current class in plugins home (5.03 KB, patch)
2020-12-10 09:56 UTC, Fridolin Somers
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2020-12-10 09:47:59 UTC
In plugins home, when searching on a specific class, you see the table but no reminder which class is displayed.
Only when there are no results you see it in message.
I propose to show it in H1 title and remove it from no results message.

Sort of what is asked in Bug 16391.
Comment 1 Fridolin Somers 2020-12-10 09:56:21 UTC
Created attachment 114297 [details] [review]
Bug 27188: Show current class in plugins home

In plugins home, when searching on a specific class, you see the table but no reminder which class is displayed.
Only when there are no results you see it in message.
I propose to show it in H1 title and remove it from no results message.

Sort of what is asked in Bug 16391.

This change adds missing specific message to class 'ill_availability_services'.

This change removed the message 'Unknown plugin type'.
Seems useless to me since you must change manually method in URL to get it.
And this may be usefull for unlisted classes like hooks 'opac_js', ...

Test plan :
1) Enable plugins
2) Install a tool plugin like InLibro Carrousel
3) Go to Administration > Manage plugins
4) Check you see the plugin and title 'All plugins'
5) In menu select 'View tool plugins'
6) Check you see the plugin and title 'Plugins that can be used as a tool'
7) In menu select 'View report plugins'
6) Check you see message 'No plugins installed' and title 'Plugins that can create a report'
7) Edit URL and go to
   /cgi-bin/koha/plugins/plugins-home.pl?method=opac_js
8) Check you see message 'No plugins installed' and title 'Plugins with class opac_js'
Comment 2 Owen Leonard 2021-04-08 18:12:38 UTC
I don't like that this uses the button toolbar to switch views, based on my conception of our conventions of views and actions:

https://wiki.koha-community.org/wiki/Interface_patterns#Views_and_Actions

I would prefer that the views be links in the sidebar or some kind of DataTables filter.

I think it's not ideal that one is offered choices to view classes of plugins for which there are no results. This would be an advantage of making the table a DataTable, including the class as a (hidden?) column, and offering table filtering based on the available classes.
Comment 3 Fridolin Somers 2021-04-12 10:29:08 UTC
Indeed changing to a DataTable whould be great.

> including the class as a (hidden?) column, and offering table filtering based on the available classes.
Just we must remind that a plugin may have several classes.

Thanks for your advice
Comment 4 Katrin Fischer 2023-04-16 12:54:39 UTC
I believe the page/table have changed since, any chance to revive?
Comment 5 Fridolin Somers 2023-04-21 07:01:01 UTC
(In reply to Owen Leonard from comment #2)
> I don't like that this uses the button toolbar to switch views, based on my
> conception of our conventions of views and actions:
> 
> https://wiki.koha-community.org/wiki/Interface_patterns#Views_and_Actions
> 
> I would prefer that the views be links in the sidebar or some kind of
> DataTables filter.
> 
> I think it's not ideal that one is offered choices to view classes of
> plugins for which there are no results. This would be an advantage of making
> the table a DataTable, including the class as a (hidden?) column, and
> offering table filtering based on the available classes.

This is the best solution so I close this one invalid.