|
Lines 442-447
sub has_items_waiting_or_intransit {
Link Here
|
| 442 |
return 0; |
442 |
return 0; |
| 443 |
} |
443 |
} |
| 444 |
|
444 |
|
|
|
445 |
=head3 custom_cover_image_url |
| 446 |
|
| 447 |
my $image_url = $biblio->custom_cover_image_url |
| 448 |
|
| 449 |
Return the specific url of the cover image for this bibliographic record. |
| 450 |
It is built regaring the value of the system preference CustomCoverImagesURL |
| 451 |
|
| 452 |
=cut |
| 453 |
|
| 454 |
sub custom_cover_image_url { |
| 455 |
my ( $self ) = @_; |
| 456 |
my $url = C4::Context->preference('CustomCoverImagesURL'); |
| 457 |
if ( $url =~ m|%isbn%| ) { |
| 458 |
my $isbn = $self->biblioitem->isbn; |
| 459 |
$url =~ s|%isbn%|$isbn|g; |
| 460 |
} |
| 461 |
if ( $url =~ m|%issn%| ) { |
| 462 |
my $issn = $self->biblioitem->issn; |
| 463 |
$url =~ s|%issn%|$issn|g; |
| 464 |
} |
| 465 |
return $url; |
| 466 |
} |
| 467 |
|
| 445 |
=head3 type |
468 |
=head3 type |
| 446 |
|
469 |
|
| 447 |
=cut |
470 |
=cut |
| 448 |
- |
|
|