From: Aleisha Amohia Date: Mon, 20 Feb 2023 23:17:56 +0000 (+0000) Subject: Bug 3150: Include host item entries in LIST and CART notices X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=cca354d0cea7a7b8ff1026a5882a0d7505186716;p=srvgit Bug 3150: Include host item entries in LIST and CART notices Incorporating fixes from Bug 16522 Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- diff --git a/installer/data/mysql/atomicupdate/bug_3150_-_add_LIST_and_CART_notices.pl b/installer/data/mysql/atomicupdate/bug_3150_-_add_LIST_and_CART_notices.pl index 9efc273178..d06071af8f 100755 --- a/installer/data/mysql/atomicupdate/bug_3150_-_add_LIST_and_CART_notices.pl +++ b/installer/data/mysql/atomicupdate/bug_3150_-_add_LIST_and_CART_notices.pl @@ -28,6 +28,7 @@ Please note that the attached file is a MARC bibliographic records file which ca [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %]
[% END %] [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %]
[% END %] [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %]
[% END %] +[% IF ( biblio.get_marc_host ) %]In: [% FOREACH entry IN biblio.get_marc_host %][% entry.title | html %][% IF ( entry.subtitle ) %][% FOREACH subtitle IN entry.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% entry.part_number | html %] [% entry.part_name | html %]
[% END %][% END %] [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %]
[% END %] View in online catalog [% IF ( biblio.items.count > 0 ) %]
Items:
    [% FOREACH item IN biblio.items %]
  • [% Branches.GetName( item.holdingbranch ) | html %] @@ -55,6 +56,7 @@ Please note that the attached file is a MARC bibliographic records file which ca [% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %]
    [% END %] [% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %]
    [% END %] [% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %]
    [% END %] +[% IF ( biblio.get_marc_host ) %]In: [% FOREACH entry IN biblio.get_marc_host %][% entry.title | html %][% IF ( entry.subtitle ) %][% FOREACH subtitle IN entry.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% entry.part_number | html %] [% entry.part_name | html %]
    [% END %][% END %] [% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %]
    [% END %] View in online catalog [% IF ( biblio.items.count > 0 ) %]
    Items:
      [% FOREACH item IN biblio.items %]
    • [% Branches.GetName( item.holdingbranch ) | html %] diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index c43023550b..e77f25fc6e 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -2318,6 +2318,7 @@ tables: - "[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %]
      [% END %]" - "[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %]
      [% END %]" - "[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %]
      [% END %]" + - "[% IF ( biblio.get_marc_host ) %]In: [% FOREACH entry IN biblio.get_marc_host %][% entry.title | html %][% IF ( entry.subtitle ) %][% FOREACH subtitle IN entry.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% entry.part_number | html %] [% entry.part_name | html %]
      [% END %][% END %]" - "[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %]
      [% END %]" - "[View in online catalog" - "[% IF ( biblio.items.count > 0 ) %]
      Items:
        [% FOREACH item IN biblio.items %]
      • [% Branches.GetName( item.holdingbranch ) | html %]" @@ -2352,6 +2353,7 @@ tables: - "[% IF ( biblio.unititle ) %]Unified title: [% biblio.unititle | html %]
        [% END %]" - "[% IF ( biblio.serial ) %]Serial: [% biblio.serial | html %]
        [% END %]" - "[% IF ( biblioitem.lccn ) %]LCCN: [% biblioitem.lccn | html %]
        [% END %]" + - "[% IF ( biblio.get_marc_host ) %]In: [% FOREACH entry IN biblio.get_marc_host %][% entry.title | html %][% IF ( entry.subtitle ) %][% FOREACH subtitle IN entry.subtitle.split(' | ') %][% subtitle | html %][% END %][% END %][% entry.part_number | html %] [% entry.part_name | html %]
        [% END %][% END %]" - "[% IF ( biblioitem.url ) %]URL: [% biblioitem.url | html %]
        [% END %]" - "View in online catalog" - "[% IF ( biblio.items.count > 0 ) %]
        Items:
          [% FOREACH item IN biblio.items %]
        • [% Branches.GetName( item.holdingbranch ) | html %]"