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

(-)a/Koha/Old/Biblio.pm (+14 lines)
Lines 25-30 use Koha::Biblioitem; Link Here
25
use Koha::Biblio::Metadata;
25
use Koha::Biblio::Metadata;
26
use Koha::Old::Biblio::Metadatas;
26
use Koha::Old::Biblio::Metadatas;
27
use Koha::Old::Biblioitems;
27
use Koha::Old::Biblioitems;
28
use Koha::Old::Items;
28
use Koha::SearchEngine::Indexer;
29
use Koha::SearchEngine::Indexer;
29
30
30
=head1 NAME
31
=head1 NAME
Lines 93-98 sub biblioitem { Link Here
93
    return Koha::Old::Biblioitems->find( { biblionumber => $self->biblionumber } );
94
    return Koha::Old::Biblioitems->find( { biblionumber => $self->biblionumber } );
94
}
95
}
95
96
97
=head3 items
98
99
my $items = $deleted_biblio->items;
100
101
Returns the related Koha::Old::Items for this deleted biblio
102
103
=cut
104
105
sub items {
106
    my ($self) = @_;
107
    return Koha::Old::Items->search( { biblionumber => $self->biblionumber } );
108
}
109
96
=head3 to_api
110
=head3 to_api
97
111
98
    my $json = $deleted_biblio->to_api;
112
    my $json = $deleted_biblio->to_api;
(-)a/api/v1/swagger/paths/deleted_biblios.yaml (-1 / +9 lines)
Lines 14-19 Link Here
14
      - $ref: "../swagger.yaml#/parameters/q_param"
14
      - $ref: "../swagger.yaml#/parameters/q_param"
15
      - $ref: "../swagger.yaml#/parameters/q_body"
15
      - $ref: "../swagger.yaml#/parameters/q_body"
16
      - $ref: "../swagger.yaml#/parameters/request_id_header"
16
      - $ref: "../swagger.yaml#/parameters/request_id_header"
17
      - name: x-koha-embed
18
        in: header
19
        required: false
20
        description: Embed list sent as a request header
21
        type: array
22
        items:
23
          type: string
24
          enum:
25
            - items
17
    produces:
26
    produces:
18
      - application/json
27
      - application/json
19
      - application/marcxml+xml
28
      - application/marcxml+xml
20
- 

Return to bug 17387