|
Lines 350-358
sub article_requests_finished {
Link Here
|
| 350 |
|
350 |
|
| 351 |
=head3 items |
351 |
=head3 items |
| 352 |
|
352 |
|
|
|
353 |
my @items = $biblio->items(); |
| 353 |
my $items = $biblio->items(); |
354 |
my $items = $biblio->items(); |
| 354 |
|
355 |
|
| 355 |
Returns the related Koha::Items object for this biblio |
356 |
Returns the related Koha::Items object for this biblio in scalar context, |
|
|
357 |
or list of Koha::Item objects in list context. |
| 356 |
|
358 |
|
| 357 |
=cut |
359 |
=cut |
| 358 |
|
360 |
|
|
Lines 361-369
sub items {
Link Here
|
| 361 |
|
363 |
|
| 362 |
my $items_rs = $self->_result->items; |
364 |
my $items_rs = $self->_result->items; |
| 363 |
|
365 |
|
| 364 |
return Koha::Items->_new_from_dbic( $items_rs ); |
366 |
return |
|
|
367 |
wantarray |
| 368 |
? Koha::Items->_new_from_dbic($items_rs)->as_list |
| 369 |
: Koha::Items->_new_from_dbic($items_rs); |
| 365 |
} |
370 |
} |
| 366 |
|
371 |
|
|
|
372 |
|
| 367 |
=head3 itemtype |
373 |
=head3 itemtype |
| 368 |
|
374 |
|
| 369 |
my $itemtype = $biblio->itemtype(); |
375 |
my $itemtype = $biblio->itemtype(); |
| 370 |
- |
|
|