From 01f879211368dbd92a310449b7542420a1b8fe29 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Tue, 26 Sep 2017 10:09:15 -0300 Subject: [PATCH] add pdf and html link availability to item record --- ebsco/lib/EBSCOResponse.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ebsco/lib/EBSCOResponse.php b/ebsco/lib/EBSCOResponse.php index ef8e763..33d40e3 100644 --- a/ebsco/lib/EBSCOResponse.php +++ b/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;