Bugzilla – Attachment 188788 Details for
Bug 17387
Add an undelete feature for items/biblios
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17387: add pagination headers and support comma-delimited Accept headers
Bug-17387-add-pagination-headers-and-support-comma.patch (text/plain), 2.39 KB, created by
Biblibre Sandboxes
on 2025-10-31 09:51:02 UTC
(
hide
)
Description:
Bug 17387: add pagination headers and support comma-delimited Accept headers
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2025-10-31 09:51:02 UTC
Size:
2.39 KB
patch
obsolete
>From 423bed9a45c9c974dc8ba8af79e4f1fc341bb423 Mon Sep 17 00:00:00 2001 >From: Jacob O'Mara <Jacob.omara@openfifth.co.uk> >Date: Thu, 30 Oct 2025 11:02:35 +0000 >Subject: [PATCH] Bug 17387: add pagination headers and support comma-delimited > Accept headers > >Signed-off-by: Michaela <michaela.sieber@kit.edu> >--- > Koha/REST/V1/DeletedBiblios.pm | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git a/Koha/REST/V1/DeletedBiblios.pm b/Koha/REST/V1/DeletedBiblios.pm >index 74c62a8d6a..6e8f03d1a9 100644 >--- a/Koha/REST/V1/DeletedBiblios.pm >+++ b/Koha/REST/V1/DeletedBiblios.pm >@@ -122,30 +122,31 @@ sub list { > > return try { > >- if ( $c->req->headers->accept =~ m/application\/json(;.*)?$/ ) { >+ if ( $c->req->headers->accept =~ m/application\/json([;,].*)?$/ ) { >+ $c->add_pagination_headers(); > return $c->render( > status => 200, > json => $c->objects->to_api($biblios), > ); >- } elsif ( $c->req->headers->accept =~ m/application\/marcxml\+xml(;.*)?$/ ) { >+ } elsif ( $c->req->headers->accept =~ m/application\/marcxml\+xml([;,].*)?$/ ) { > $c->res->headers->add( 'Content-Type', 'application/marcxml+xml' ); > return $c->render( > status => 200, > text => $biblios->print_collection('marcxml') > ); >- } elsif ( $c->req->headers->accept =~ m/application\/marc-in-json(;.*)?$/ ) { >+ } elsif ( $c->req->headers->accept =~ m/application\/marc-in-json([;,].*)?$/ ) { > $c->res->headers->add( 'Content-Type', 'application/marc-in-json' ); > return $c->render( > status => 200, > data => $biblios->print_collection('mij') > ); >- } elsif ( $c->req->headers->accept =~ m/application\/marc(;.*)?$/ ) { >+ } elsif ( $c->req->headers->accept =~ m/application\/marc([;,].*)?$/ ) { > $c->res->headers->add( 'Content-Type', 'application/marc' ); > return $c->render( > status => 200, > text => $biblios->print_collection('marc') > ); >- } elsif ( $c->req->headers->accept =~ m/text\/plain(;.*)?$/ ) { >+ } elsif ( $c->req->headers->accept =~ m/text\/plain([;,].*)?$/ ) { > return $c->render( > status => 200, > text => $biblios->print_collection('txt') >-- >2.39.5
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 17387
:
188670
|
188671
|
188672
|
188673
|
188674
|
188675
|
188676
|
188677
|
188678
|
188679
|
188680
|
188681
|
188682
|
188683
|
188684
|
188685
|
188686
|
188687
|
188688
|
188689
|
188690
|
188691
|
188692
|
188693
|
188694
|
188695
|
188696
|
188697
|
188698
|
188699
|
188700
|
188701
|
188780
|
188781
|
188782
|
188783
|
188784
|
188785
|
188786
|
188787
|
188788
|
188789
|
188790
|
188791
|
188792
|
188793
|
188794
|
188795
|
189046
|
189047
|
189048
|
189049
|
189050
|
189051
|
189052
|
189053
|
189054
|
189055
|
189056
|
189057
|
189058
|
189059
|
189060
|
189061
|
189062
|
189082
|
189083
|
189084
|
189085
|
189086
|
189087
|
189088
|
189089
|
189090
|
189091
|
189092
|
189093
|
189094
|
189095
|
189096
|
189097
|
189098
|
189099
|
189100
|
189101
|
189102
|
189103
|
189104
|
189105
|
189106
|
189107
|
189108
|
189109
|
189110
|
189111
|
189112
|
189113
|
189114
|
189115
|
189116
|
189117
|
189118
|
189119