[Koha] Template toolkin and MARC field/subfields
Josef Moravec
josef.moravec at gmail.com
Thu Sep 23 17:03:06 NZST 2021
Hello Mike,
I would try something like this:
https://gist.github.com/xmorave2/cd926ec245e34c4f42537de221016f5c
see especially this part (lines 6 to 10):
[% record = checkout.item.biblio.metadata.record %]
[% field787 = record.field('787') %]
[% IF field787 %].
[% field787.subfield('t') %] [% field787.subfield('g') %].
[% END %]
Best regards,
Josef
On Wed, Sep 22, 2021 at 9:39 PM Mike D. <black23 at gmail.com> wrote:
> Hello, community,
> does anyone have experience with using MARC fields in notices?
> Specifically, we would need to output the contents of some fields/sufields
> to text in e-mail notice using the template toolkit. For example, $t and $g
> in field 787. Is this possible? Does anyone have experience with this?
>
> Thanks
>
> Michal
> _______________________________________________
>
> Koha mailing list http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>
--
Josef Moravec
josef.moravec at gmail.com
More information about the Koha
mailing list