View | Details | Raw Unified | Return to bug 37791
Collapse All | Expand All

(-)a/Koha/REST/V1/Biblios/ItemGroups.pm (-2 / +2 lines)
Lines 97-103 sub add { Link Here
97
    return try {
97
    return try {
98
98
99
        my $biblio = Koha::Biblios->find( $c->param('biblio_id') );
99
        my $biblio = Koha::Biblios->find( $c->param('biblio_id') );
100
        return $c->render_resource_not_found("Biblio")
100
        return $c->render_resource_not_found("Bibliographic record")
101
            unless $biblio;
101
            unless $biblio;
102
102
103
        my $item_group_data = $c->req->json;
103
        my $item_group_data = $c->req->json;
Lines 121-127 sub add { Link Here
121
            if (    $_->isa('Koha::Exceptions::Object::FKConstraint')
121
            if (    $_->isa('Koha::Exceptions::Object::FKConstraint')
122
                and $_->broken_fk eq 'biblio_id' )
122
                and $_->broken_fk eq 'biblio_id' )
123
            {
123
            {
124
                return $c->render_resource_not_found("Biblio");
124
                return $c->render_resource_not_found("Bibliographic record");
125
            }
125
            }
126
        }
126
        }
127
127
(-)a/Koha/REST/V1/DeletedBiblios.pm (-1 / +1 lines)
Lines 51-57 sub get { Link Here
51
51
52
    my $biblio = Koha::Old::Biblios->find( { biblionumber => $c->param('biblio_id') }, $attributes );
52
    my $biblio = Koha::Old::Biblios->find( { biblionumber => $c->param('biblio_id') }, $attributes );
53
53
54
    return $c->render_resource_not_found("Biblio")
54
    return $c->render_resource_not_found("Bibliographic record")
55
        unless $biblio;
55
        unless $biblio;
56
56
57
    return try {
57
    return try {
(-)a/Koha/REST/V1/Holds.pm (-1 / +1 lines)
Lines 133-139 sub add { Link Here
133
        unless ($biblio) {
133
        unless ($biblio) {
134
            return $c->render(
134
            return $c->render(
135
                status  => 400,
135
                status  => 400,
136
                openapi => "Biblio not found."
136
                openapi => "Bibliographic record not found"
137
            );
137
            );
138
        }
138
        }
139
139
(-)a/api/v1/swagger/paths/biblios.yaml (-11 / +11 lines)
Lines 100-106 Link Here
100
        schema:
100
        schema:
101
          $ref: "../swagger.yaml#/definitions/error"
101
          $ref: "../swagger.yaml#/definitions/error"
102
      "404":
102
      "404":
103
        description: Biblio not found
103
        description: Bibliographic record not found
104
        schema:
104
        schema:
105
          $ref: "../swagger.yaml#/definitions/error"
105
          $ref: "../swagger.yaml#/definitions/error"
106
      "406":
106
      "406":
Lines 155-161 Link Here
155
        schema:
155
        schema:
156
          $ref: "../swagger.yaml#/definitions/error"
156
          $ref: "../swagger.yaml#/definitions/error"
157
      "404":
157
      "404":
158
        description: Biblio not found
158
        description: Bibliographic record not found
159
        schema:
159
        schema:
160
          $ref: "../swagger.yaml#/definitions/error"
160
          $ref: "../swagger.yaml#/definitions/error"
161
      "406":
161
      "406":
Lines 207-213 Link Here
207
        schema:
207
        schema:
208
          $ref: "../swagger.yaml#/definitions/error"
208
          $ref: "../swagger.yaml#/definitions/error"
209
      "404":
209
      "404":
210
        description: Biblio not found
210
        description: Bibliographic record not found
211
        schema:
211
        schema:
212
          $ref: "../swagger.yaml#/definitions/error"
212
          $ref: "../swagger.yaml#/definitions/error"
213
      "409":
213
      "409":
Lines 266-272 Link Here
266
        schema:
266
        schema:
267
          $ref: "../swagger.yaml#/definitions/error"
267
          $ref: "../swagger.yaml#/definitions/error"
268
      "404":
268
      "404":
269
        description: Biblio not found
269
        description: Bibliographic record not found
270
        schema:
270
        schema:
271
          $ref: "../swagger.yaml#/definitions/error"
271
          $ref: "../swagger.yaml#/definitions/error"
272
      "406":
272
      "406":
Lines 344-350 Link Here
344
        schema:
344
        schema:
345
          $ref: ../swagger.yaml#/definitions/error
345
          $ref: ../swagger.yaml#/definitions/error
346
      "404":
346
      "404":
347
        description: Biblio not found
347
        description: Bibliographic record not found
348
        schema:
348
        schema:
349
          $ref: ../swagger.yaml#/definitions/error
349
          $ref: ../swagger.yaml#/definitions/error
350
      "406":
350
      "406":
Lines 419-425 Link Here
419
        schema:
419
        schema:
420
          $ref: "../swagger.yaml#/definitions/error"
420
          $ref: "../swagger.yaml#/definitions/error"
421
      "404":
421
      "404":
422
        description: Biblio not found
422
        description: Bibliographic record not found
423
        schema:
423
        schema:
424
          $ref: "../swagger.yaml#/definitions/error"
424
          $ref: "../swagger.yaml#/definitions/error"
425
      "500":
425
      "500":
Lines 519-525 Link Here
519
        schema:
519
        schema:
520
          $ref: "../swagger.yaml#/definitions/error"
520
          $ref: "../swagger.yaml#/definitions/error"
521
      "404":
521
      "404":
522
        description: Biblio not found
522
        description: Bibliographic record not found
523
        schema:
523
        schema:
524
          $ref: "../swagger.yaml#/definitions/error"
524
          $ref: "../swagger.yaml#/definitions/error"
525
      "406":
525
      "406":
Lines 702-708 Link Here
702
        schema:
702
        schema:
703
          $ref: "../swagger.yaml#/definitions/error"
703
          $ref: "../swagger.yaml#/definitions/error"
704
      "404":
704
      "404":
705
        description: Biblio not found
705
        description: Bibliographic record not found
706
        schema:
706
        schema:
707
          $ref: "../swagger.yaml#/definitions/error"
707
          $ref: "../swagger.yaml#/definitions/error"
708
      "500":
708
      "500":
Lines 749-755 Link Here
749
        schema:
749
        schema:
750
          $ref: "../swagger.yaml#/definitions/error"
750
          $ref: "../swagger.yaml#/definitions/error"
751
      "404":
751
      "404":
752
        description: Biblio not found
752
        description: Bibliographic record not found
753
        schema:
753
        schema:
754
          $ref: "../swagger.yaml#/definitions/error"
754
          $ref: "../swagger.yaml#/definitions/error"
755
      "406":
755
      "406":
Lines 822-828 Link Here
822
        schema:
822
        schema:
823
          $ref: "../swagger.yaml#/definitions/error"
823
          $ref: "../swagger.yaml#/definitions/error"
824
      "404":
824
      "404":
825
        description: Biblio not found
825
        description: Bibliographic record not found
826
        schema:
826
        schema:
827
          $ref: "../swagger.yaml#/definitions/error"
827
          $ref: "../swagger.yaml#/definitions/error"
828
      "406":
828
      "406":
Lines 899-905 Link Here
899
        schema:
899
        schema:
900
          $ref: "../swagger.yaml#/definitions/error"
900
          $ref: "../swagger.yaml#/definitions/error"
901
      "404":
901
      "404":
902
        description: Biblio not found
902
        description: Bibliographic record not found
903
        schema:
903
        schema:
904
          $ref: "../swagger.yaml#/definitions/error"
904
          $ref: "../swagger.yaml#/definitions/error"
905
      "500":
905
      "500":
(-)a/api/v1/swagger/paths/biblios_merge.yaml (-1 / +1 lines)
Lines 29-35 Link Here
29
        schema:
29
        schema:
30
          $ref: "../swagger.yaml#/definitions/error"
30
          $ref: "../swagger.yaml#/definitions/error"
31
      '404':
31
      '404':
32
        description: Biblio not found
32
        description: Bibliographic record not found
33
        schema:
33
        schema:
34
          "$ref": "../swagger.yaml#/definitions/error"
34
          "$ref": "../swagger.yaml#/definitions/error"
35
      '401':
35
      '401':
(-)a/api/v1/swagger/paths/deleted_biblios.yaml (-2 / +2 lines)
Lines 39-45 Link Here
39
        schema:
39
        schema:
40
          $ref: "../swagger.yaml#/definitions/error"
40
          $ref: "../swagger.yaml#/definitions/error"
41
      "404":
41
      "404":
42
        description: Biblio not found
42
        description: Bibliographic record not found
43
        schema:
43
        schema:
44
          $ref: "../swagger.yaml#/definitions/error"
44
          $ref: "../swagger.yaml#/definitions/error"
45
      "406":
45
      "406":
Lines 94-100 Link Here
94
        schema:
94
        schema:
95
          $ref: "../swagger.yaml#/definitions/error"
95
          $ref: "../swagger.yaml#/definitions/error"
96
      "404":
96
      "404":
97
        description: Biblio not found
97
        description: Bibliographic record not found
98
        schema:
98
        schema:
99
          $ref: "../swagger.yaml#/definitions/error"
99
          $ref: "../swagger.yaml#/definitions/error"
100
      "406":
100
      "406":
(-)a/api/v1/swagger/paths/holds.yaml (-1 / +1 lines)
Lines 485-491 Link Here
485
        schema:
485
        schema:
486
          $ref: "../swagger.yaml#/definitions/error"
486
          $ref: "../swagger.yaml#/definitions/error"
487
      "404":
487
      "404":
488
        description: Biblio not found
488
        description: Bibliographic record not found
489
        schema:
489
        schema:
490
          $ref: "../swagger.yaml#/definitions/error"
490
          $ref: "../swagger.yaml#/definitions/error"
491
      "409":
491
      "409":
(-)a/api/v1/swagger/paths/items.yaml (-1 / +1 lines)
Lines 454-460 Link Here
454
        schema:
454
        schema:
455
          $ref: "../swagger.yaml#/definitions/error"
455
          $ref: "../swagger.yaml#/definitions/error"
456
      "404":
456
      "404":
457
        description: Biblio not found
457
        description: Bibliographic record not found
458
        schema:
458
        schema:
459
          $ref: "../swagger.yaml#/definitions/error"
459
          $ref: "../swagger.yaml#/definitions/error"
460
      "500":
460
      "500":
(-)a/t/db_dependent/api/v1/deleted_biblios.t (-2 / +1 lines)
Lines 103-109 subtest 'get() tests' => sub { Link Here
103
    my $biblio_exist = $builder->build_sample_biblio();
103
    my $biblio_exist = $builder->build_sample_biblio();
104
    $t->get_ok( "//$userid:$password@/api/v1/deleted/biblios/"
104
    $t->get_ok( "//$userid:$password@/api/v1/deleted/biblios/"
105
            . $biblio_exist->biblionumber => { Accept => 'application/marc' } )->status_is(404)
105
            . $biblio_exist->biblionumber => { Accept => 'application/marc' } )->status_is(404)
106
        ->json_is( '/error', 'Biblio not found' );
106
        ->json_is( '/error', 'Bibliographic record not found' );
107
107
108
    subtest 'marc-in-json encoding tests' => sub {
108
    subtest 'marc-in-json encoding tests' => sub {
109
109
110
- 

Return to bug 37791