[Bug 42704] New: Add additional content record display plugin hook
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42704 Bug ID: 42704 Summary: Add additional content record display plugin hook Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Plugin architecture Assignee: koha-bugs@lists.koha-community.org Reporter: pasi.kallinen@koha-suomi.fi QA Contact: testopia@bugs.koha-community.org CC: kyle@bywatersolutions.com, martin.renvoize@openfifth.co.uk, tomascohen@gmail.com Allow Koha plugins to hook into the additional content record display template processing so plugins can add new, often-used variables and functions into the templating language. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42704 paxed <pasi.kallinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |pasi.kallinen@koha-suomi.fi |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42704 --- Comment #1 from paxed <pasi.kallinen@koha-suomi.fi> --- Created attachment 199603 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199603&action=edit Add additional_content_record_display plugin hook -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42704 paxed <pasi.kallinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #199603|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42704 --- Comment #2 from paxed <pasi.kallinen@koha-suomi.fi> --- Created attachment 199641 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199641&action=edit Bug 42704: Additional content record display plugin hook Extend the additional content record display template processing, by adding a new plugin hook "additional_content_record_display", which allows the Koha plugins to add variables and functions to the template namespace. This allows plugins to extend the template language with new functions and variables without needing to create similar code using the slower templating language. Test plan: 1) Enable plugins in koha-conf.xml 2) Install the Test Bug42704 -plugin from https://github.com/paxed/koha-plugin-test-bug42704 3) Enable the plugin in Koha admin. 4) In Tools > Record display customizations, add a New entry for StaffDetailPage, and enter the following as the Content: [% getrecordfield(record, "245a", "Test title") %] [% foo %] 5) Save the data. 6) View a biblio in the staff interface, check the detail-page; it should show the biblio's title as an additional entry, with the label "Test title:", and under it should have "BARBARBAR" in bold text. 7) Disable the plugin in Koha admin. 8) View the biblio data in the staff interface, check the detail-page; it should show normally, without the Test title or the bold BARBARBAR. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42704 paxed <pasi.kallinen@koha-suomi.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org