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

--- Comment #2 from paxed <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to