[Koha-bugs] [Bug 26890] Add opac_biblio_tab and opac_biblio_enhancements_toolbar_button hooks
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 29 15:40:06 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26890
--- Comment #21 from Magnus Enger <magnus at libriotech.no> ---
(In reply to Magnus Enger from comment #20)
> I have been thinking a bit about adding "things" to the OPAC in a flexible
> way. The idea I ended up with was something like this:
>
> Some JavaScript that can fetch "content" asynchronously from the REST API or
> some custom API/endpoint, so rendering the basic page is not slowed down by
> e.g. external APIs/datasources used for generating the extra content.
>
> The JS-call would tell the API what sort of page it is coming from:
> frontpage, results list, detail etc.
>
> The API/endpoint would call relevant plugins, gather data and return it.
>
> The returned data could identify different locations where it wants to be
> displayed, like "mainuserblock" for the front page, "tab" or "below the
> print/hold/etc links on the right side of the page" for detail view etc.
>
> Not sure if that makes sense.
A bit quick, there. I was thinking HTML would be generated server side and
returned from the API/endpoint.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list