Bugzilla – Attachment 146422 Details for
Bug 32923
x-koha-embed must a header of collectionFormat csv
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32923: Some fixes in ERM specs
Bug-32923-Some-fixes-in-ERM-specs.patch (text/plain), 3.01 KB, created by
Jonathan Druart
on 2023-02-09 09:56:11 UTC
(
hide
)
Description:
Bug 32923: Some fixes in ERM specs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-02-09 09:56:11 UTC
Size:
3.01 KB
patch
obsolete
>From 65cec898854bc91f3a8fafab9d08ed70737c7470 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 9 Feb 2023 10:55:56 +0100 >Subject: [PATCH] Bug 32923: Some fixes in ERM specs > >--- > api/v1/swagger/paths/erm_eholdings_packages.yaml | 9 ++++++--- > .../swagger/paths/erm_eholdings_packages_resources.yaml | 2 +- > api/v1/swagger/paths/erm_licenses.yaml | 1 + > t/db_dependent/api/v1/erm_eholdings_packages.t | 4 ++-- > 4 files changed, 10 insertions(+), 6 deletions(-) > >diff --git a/api/v1/swagger/paths/erm_eholdings_packages.yaml b/api/v1/swagger/paths/erm_eholdings_packages.yaml >index 702e720e2e2..a326dc58435 100644 >--- a/api/v1/swagger/paths/erm_eholdings_packages.yaml >+++ b/api/v1/swagger/paths/erm_eholdings_packages.yaml >@@ -69,8 +69,9 @@ > items: > type: string > enum: >- - vendors >+ - vendor.name > - resources+count >+ - resources > collectionFormat: csv > responses: > 200: >@@ -180,8 +181,10 @@ > items: > type: string > enum: >- - agreements >- - resources >+ - package_agreements >+ - package_agreements.agreement >+ - resources+count >+ - vendor > collectionFormat: csv > responses: > 200: >diff --git a/api/v1/swagger/paths/erm_eholdings_packages_resources.yaml b/api/v1/swagger/paths/erm_eholdings_packages_resources.yaml >index 7ade1c7bc06..696f4958572 100644 >--- a/api/v1/swagger/paths/erm_eholdings_packages_resources.yaml >+++ b/api/v1/swagger/paths/erm_eholdings_packages_resources.yaml >@@ -50,7 +50,7 @@ > items: > type: string > enum: >- - title.publication_title >+ - title > collectionFormat: csv > responses: > 200: >diff --git a/api/v1/swagger/paths/erm_licenses.yaml b/api/v1/swagger/paths/erm_licenses.yaml >index d9f3efb1eb9..0abc7cf4247 100644 >--- a/api/v1/swagger/paths/erm_licenses.yaml >+++ b/api/v1/swagger/paths/erm_licenses.yaml >@@ -160,6 +160,7 @@ > enum: > - user_roles > - user_roles.patron >+ - vendor > - documents > collectionFormat: csv > responses: >diff --git a/t/db_dependent/api/v1/erm_eholdings_packages.t b/t/db_dependent/api/v1/erm_eholdings_packages.t >index ecb4dc9f768..090ba879a88 100755 >--- a/t/db_dependent/api/v1/erm_eholdings_packages.t >+++ b/t/db_dependent/api/v1/erm_eholdings_packages.t >@@ -182,8 +182,8 @@ subtest 'get() tests' => sub { > # Return one EHoldings package with embed > $t->get_ok( "//$userid:$password@/api/v1/erm/eholdings/local/packages/" > . $ehpackage->package_id => >- { 'x-koha-embed' => 'resources,resources.package' } )->status_is(200) >- ->json_is( { %{ $ehpackage->to_api }, resources => [] } ); >+ { 'x-koha-embed' => 'resources+count' } )->status_is(200) >+ ->json_is( { %{ $ehpackage->to_api }, resources_count => 0 } ); > > # Unauthorized access > $t->get_ok( >-- >2.25.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 32923
:
146421
|
146422
|
146425
|
146443
|
146632
|
146633
|
146748
|
146749
|
146836
|
146837
|
146838
|
146839
|
147292
|
147293
|
147294
|
147295
|
148349
|
148413
|
148507