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

(-)a/Koha/Biblio.pm (-1 / +16 lines)
Lines 1162-1167 sub get_marc_authors { Link Here
1162
    return [@first_authors, @other_authors];
1162
    return [@first_authors, @other_authors];
1163
}
1163
}
1164
1164
1165
=head3 public_read_list
1166
1167
This method returns the list of publicly readable database fields for both API and UI output purposes
1168
1169
=cut
1170
1171
sub public_read_list {
1172
    return [
1173
        'biblionumber',   'frameworkcode',   'author',
1174
        'title',          'medium',          'subtitle',
1175
        'part_number',    'part_name',       'unititle',
1176
        'notes',          'serial',          'seriestitle',
1177
        'copyrightdate',  'abstract'
1178
    ];
1179
}
1165
1180
1166
=head3 to_api
1181
=head3 to_api
1167
1182
Lines 1177-1183 sub to_api { Link Here
1177
    my ($self, $args) = @_;
1192
    my ($self, $args) = @_;
1178
1193
1179
    my $response = $self->SUPER::to_api( $args );
1194
    my $response = $self->SUPER::to_api( $args );
1180
    my $biblioitem = $self->biblioitem->to_api;
1195
    my $biblioitem = $self->biblioitem->to_api( $args );
1181
1196
1182
    return { %$response, %$biblioitem };
1197
    return { %$response, %$biblioitem };
1183
}
1198
}
(-)a/Koha/Biblioitem.pm (-2 / +20 lines)
Lines 30-35 Koha::Biblioitem - Koha Biblioitem Object class Link Here
30
30
31
=head2 Class methods
31
=head2 Class methods
32
32
33
=head3 public_read_list
34
35
This method returns the list of publicly readable database fields for both API and UI output purposes
36
37
=cut
38
39
sub public_read_list {
40
    return [
41
        'volume',           'number',                'isbn',
42
        'issn',             'ean',                   'publicationyear',
43
        'publishercode',    'volumedate',            'columedesc',
44
        'collectiontitle',  'collectionissn',        'collectionvolume',
45
        'editionstatement', 'editionresponsibility', 'pages',
46
        'place',            'lccn',                  'url',
47
        'cn_source',        'cn_class',              'cn)item',
48
        'cn_suffix',        'cn_sort',               'agerestriction',
49
        'totalissues'
50
    ];
51
}
52
33
=head3 to_api_mapping
53
=head3 to_api_mapping
34
54
35
This method returns the mapping for representing a Koha::Biblioitem object
55
This method returns the mapping for representing a Koha::Biblioitem object
Lines 57-63 sub to_api_mapping { Link Here
57
        totalissues      => 'serial_total_issues',
77
        totalissues      => 'serial_total_issues',
58
        volumedate       => 'volume_date',
78
        volumedate       => 'volume_date',
59
        volumedesc       => 'volume_description',
79
        volumedesc       => 'volume_description',
60
61
    };
80
    };
62
}
81
}
63
82
64
- 

Return to bug 32711