[Koha-bugs] [Bug 26890] opac-detail plugin like intranet/cgi-bin/catalogue/detail.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 5 23:56:36 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26890

--- Comment #6 from David Cook <dcook at prosentient.com.au> ---
(In reply to Mark Hofstetter from comment #4)
> OK I really like the idea to expose the data via an API route
> 
> so would you change the opac-detail.tt file, or add the whole tab via the js?

I would just add the whole tab via the JS. That way, you don't have to modify
Koha at all, and all of your functionality is self-contained in the Koha
Plugin.

(I did send an email out yesterday that suggested the Koha Community modify
opac-detail.pl (or an underlying library function) to allow Koha Plugins to
modify the $template variable.)

(Alternatively, it would be interesting to modify opac-detail.pl and
opac-detail.tt to build the tabs using Javascript instead of Perl-generated
HTML. But that's a separate development all together.)

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list