From f0669a0c1afd922db6f3a3c14ddafaf81fd7b52a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 Jan 2021 09:08:22 +0100 Subject: [PATCH] Bug 20212: Filter on publisher and notes Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- Koha/REST/V1/Acquisitions/Orders.pm | 5 +++-- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Koha/REST/V1/Acquisitions/Orders.pm b/Koha/REST/V1/Acquisitions/Orders.pm index 4a704e7b1c..e104ce5dea 100644 --- a/Koha/REST/V1/Acquisitions/Orders.pm +++ b/Koha/REST/V1/Acquisitions/Orders.pm @@ -127,8 +127,9 @@ sub list { # Instead we need a better and global solution in a Koha::*Biblio method for my $q ( qw( q query x-koha-query ) ) { next unless $reserved_params->{$q}; - $reserved_params->{$q} =~ s|"biblio.isbn":|"biblio.biblioitem.isbn":|g; - $reserved_params->{$q} =~ s|"biblio.ean":|"biblio.biblioitem.ean":|g; + for my $f ( qw( isbn ean publisher ) ) { + $reserved_params->{$q} =~ s|"biblio.$f":|"biblio.biblioitem.$f":|g; + } push @query_params_array, $reserved_params->{$q}; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index 606c61a4ef..208ac30253 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -430,7 +430,9 @@ } }, { - "data": [% IF Koha.Preference('marcflavour')=='UNIMARC' %]"biblio.author:biblio.title:biblio.isbn:biblio.ean"[% ELSE %]"biblio.author:biblio.title:biblio.isbn"[% END %], + [% SET summary_fields = "biblio.author:biblio.title:biblio.isbn:biblio.publisher:me.internal_note:me.vendor_note" %] + [% IF Koha.Preference('marcflavour')=='UNIMARC' %][% SET summary_fields = summary_fields _ ":biblio.ean" %][% END %] + "data": "[% summary_fields %]", "render": function(data, type, row, meta) { var result = ''; if ( row && row.biblio_id != null ) { -- 2.39.5