Browse Source

add pdf and html link availability to item record

roblib
Paul Pound 7 years ago
parent
commit
01f8792113
  1. 2
      ebsco/lib/EBSCOResponse.php

2
ebsco/lib/EBSCOResponse.php

@ -183,6 +183,8 @@ class EBSCOResponse {
$result['AccessLevel'] = $record->Header->AccessLevel ? (string) $record->Header->AccessLevel : '';
$result['id'] = $result['An'] . '|' . $result['DbId'];
$result['PLink'] = $record->PLink ? (string) $record->PLink : '';
$result['PDF'] = $record->FullText->Links ? (string) $record->FullText->Links->Link->Type : '';
$result['HTML'] = $record->FullText->Text->Availability? (string) $record->FullText->Text->Availability : '';
if (!empty($record->ImageInfo->CoverArt)) {
foreach ($record->ImageInfo->CoverArt as $image) {
$size = (string) $image->Size;

Loading…
Cancel
Save