Bugzilla – Attachment 115951 Details for
Bug 20212
Improve performance of acquisitions receive page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20212: Make all biblioitems.* fields searchable
Bug-20212-Make-all-biblioitems-fields-searchable.patch (text/plain), 3.46 KB, created by
Martin Renvoize (ashimema)
on 2021-01-28 15:32:57 UTC
(
hide
)
Description:
Bug 20212: Make all biblioitems.* fields searchable
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-01-28 15:32:57 UTC
Size:
3.46 KB
patch
obsolete
>From 7645a7f0474295e11fad2a0d6368818265648196 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 6 Nov 2020 16:44:25 -0300 >Subject: [PATCH] Bug 20212: Make all biblioitems.* fields searchable > >Prior to this bug, only a few bilbio fields were actually searchable through >the orders API. This patch adds all of them to the mapping, so other >pages can take advantage of them. > >My first approach was to add things as needed. But this is trivial to >make complete. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/REST/V1/Acquisitions/Orders.pm | 32 +++++++++++++++++++++++++---- > 1 file changed, 28 insertions(+), 4 deletions(-) > >diff --git a/Koha/REST/V1/Acquisitions/Orders.pm b/Koha/REST/V1/Acquisitions/Orders.pm >index 06e125e24a..ff8a8f77a0 100644 >--- a/Koha/REST/V1/Acquisitions/Orders.pm >+++ b/Koha/REST/V1/Acquisitions/Orders.pm >@@ -312,10 +312,34 @@ sub fix_query { > > my $query = $args->{query}; > my $biblioitem_fields = { >- 'biblio.isbn' => 'biblio.biblioitem.isbn', >- 'biblio.ean' => 'biblio.biblioitem.ean', >- 'biblio.publisher' => 'biblio.biblioitem.publisher', >- 'biblio.publication_year' => 'biblio.biblioitem.publication_year' >+ 'biblio.age_restriction' => 'biblio.biblioitem.age_restriction', >+ 'biblio.cn_class' => 'biblio.biblioitem.cn_class', >+ 'biblio.cn_item' => 'biblio.biblioitem.cn_item', >+ 'biblio.cn_sort' => 'biblio.biblioitem.cn_sort', >+ 'biblio.cn_source' => 'biblio.biblioitem.cn_source', >+ 'biblio.cn_suffix' => 'biblio.biblioitem.cn_suffix', >+ 'biblio.collection_issn' => 'biblio.biblioitem.collection_issn', >+ 'biblio.collection_title' => 'biblio.biblioitem.collection_title', >+ 'biblio.collection_volume' => 'biblio.biblioitem.collection_volume', >+ 'biblio.ean' => 'biblio.biblioitem.ean', >+ 'biblio.edition_statement' => 'biblio.biblioitem.edition_statement', >+ 'biblio.illustrations' => 'biblio.biblioitem.illustrations', >+ 'biblio.isbn' => 'biblio.biblioitem.isbn', >+ 'biblio.issn' => 'biblio.biblioitem.issn', >+ 'biblio.item_type' => 'biblio.biblioitem.item_type', >+ 'biblio.lc_control_number' => 'biblio.biblioitem.lc_control_number', >+ 'biblio.material_size' => 'biblio.biblioitem.material_size', >+ 'biblio.notes' => 'biblio.biblioitem.notes', >+ 'biblio.number' => 'biblio.biblioitem.number', >+ 'biblio.pages' => 'biblio.biblioitem.pages', >+ 'biblio.publication_place' => 'biblio.biblioitem.publication_place', >+ 'biblio.publication_year' => 'biblio.biblioitem.publication_year', >+ 'biblio.publisher' => 'biblio.biblioitem.publisher', >+ 'biblio.serial_total_issues' => 'biblio.biblioitem.serial_total_issues' >+ 'biblio.url' => 'biblio.biblioitem.url', >+ 'biblio.volume' => 'biblio.biblioitem.volume', >+ 'biblio.volume_date' => 'biblio.biblioitem.volume_date', >+ 'biblio.volume_description' => 'biblio.biblioitem.volume_description', > }; > > if ( ref($query) eq 'HASH' ) { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20212
:
97545
|
97546
|
97547
|
97629
|
97630
|
97633
|
97634
|
97635
|
97745
|
98226
|
98230
|
98241
|
99724
|
99725
|
99727
|
100142
|
100475
|
100476
|
100477
|
100478
|
100552
|
100553
|
100554
|
100555
|
100600
|
100601
|
100602
|
100603
|
100605
|
100606
|
100643
|
101320
|
103684
|
103685
|
103686
|
103687
|
103688
|
109861
|
109862
|
109863
|
109864
|
109866
|
109867
|
109868
|
109869
|
109870
|
109936
|
110229
|
110234
|
110478
|
110482
|
111568
|
111569
|
112310
|
112521
|
112522
|
112523
|
112524
|
112686
|
112695
|
112698
|
112699
|
112700
|
112702
|
112703
|
112704
|
112705
|
112706
|
112868
|
112882
|
112987
|
113278
|
113279
|
114607
|
114608
|
114609
|
114610
|
114611
|
114612
|
114613
|
114614
|
114615
|
114616
|
114617
|
114942
|
114953
|
114954
|
114956
|
114959
|
114963
|
115050
|
115056
|
115057
|
115060
|
115062
|
115107
|
115108
|
115109
|
115817
|
115818
|
115819
|
115820
|
115821
|
115822
|
115886
|
115887
|
115888
|
115889
|
115890
|
115891
|
115892
|
115893
|
115894
|
115895
|
115896
|
115897
|
115898
|
115899
|
115900
|
115901
|
115902
|
115903
|
115904
|
115905
|
115906
|
115920
|
115921
|
115940
|
115941
|
115943
|
115944
|
115945
|
115946
|
115947
|
115948
|
115949
|
115950
| 115951 |
115952
|
115953
|
115954
|
115955
|
115956
|
115957
|
115958
|
115959
|
115960
|
115961
|
115962
|
115963
|
115964
|
115965
|
116139