|
Lines 27-34
Koha::Old::Biblioitem - Koha Old::Biblioitem Object class
Link Here
|
| 27 |
|
27 |
|
| 28 |
=head2 Class methods |
28 |
=head2 Class methods |
| 29 |
|
29 |
|
|
|
30 |
=head3 public_read_list |
| 31 |
|
| 32 |
This method returns the list of publicly readable database fields for both API and UI output purposes |
| 33 |
|
| 34 |
=cut |
| 35 |
|
| 36 |
sub public_read_list { |
| 37 |
return [ |
| 38 |
'volume', 'number', 'isbn', |
| 39 |
'issn', 'ean', 'publicationyear', |
| 40 |
'publishercode', 'volumedate', 'columedesc', |
| 41 |
'collectiontitle', 'collectionissn', 'collectionvolume', |
| 42 |
'editionstatement', 'editionresponsibility', 'pages', |
| 43 |
'place', 'lccn', 'url', |
| 44 |
'cn_source', 'cn_class', 'cn)item', |
| 45 |
'cn_suffix', 'cn_sort', 'agerestriction', |
| 46 |
'totalissues' |
| 47 |
]; |
| 48 |
} |
| 49 |
|
| 50 |
=head3 to_api_mapping |
| 51 |
|
| 52 |
This method returns the mapping for representing a Koha::Biblioitem object |
| 53 |
on the API. |
| 54 |
|
| 30 |
=cut |
55 |
=cut |
| 31 |
|
56 |
|
|
|
57 |
sub to_api_mapping { |
| 58 |
return { |
| 59 |
agerestriction => 'age_restriction', |
| 60 |
biblionumber => 'biblio_id', |
| 61 |
biblioitemnumber => undef, # meaningless |
| 62 |
collectionissn => 'collection_issn', |
| 63 |
collectiontitle => 'collection_title', |
| 64 |
collectionvolume => 'collection_volume', |
| 65 |
editionresponsibility => undef, # obsolete, not mapped |
| 66 |
editionstatement => 'edition_statement', |
| 67 |
illus => 'illustrations', |
| 68 |
itemtype => 'item_type', |
| 69 |
lccn => 'lc_control_number', |
| 70 |
place => 'publication_place', |
| 71 |
publicationyear => 'publication_year', |
| 72 |
publishercode => 'publisher', |
| 73 |
size => 'material_size', |
| 74 |
totalissues => 'serial_total_issues', |
| 75 |
volumedate => 'volume_date', |
| 76 |
volumedesc => 'volume_description', |
| 77 |
}; |
| 78 |
} |
| 79 |
|
| 32 |
=head2 Internal methods |
80 |
=head2 Internal methods |
| 33 |
|
81 |
|
| 34 |
=head3 _type |
82 |
=head3 _type |
| 35 |
- |
|
|