Browse Source

Bug 20212: Filter on publisher and notes

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 2 years ago
parent
commit
f0669a0c1a
  1. 5
      Koha/REST/V1/Acquisitions/Orders.pm
  2. 4
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt

5
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};
}

4
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 ) {

Loading…
Cancel
Save