mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 10:56:46 -04:00
Update AlternateTitle to parse dcterms:alternate
This commit is contained in:
parent
350f65532f
commit
29fc6f9ff2
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ class Ebook{
|
|||
|
||||
$this->FullTitle = $this->NullIfEmpty($xml->xpath('/package/metadata/dc:title[@id="fulltitle"]'));
|
||||
|
||||
$this->AlternateTitle = $this->NullIfEmpty($xml->xpath('/package/metadata/meta[@property="se:alternate-title"]'));
|
||||
$this->AlternateTitle = $this->NullIfEmpty($xml->xpath('/package/metadata/meta[@property="dcterms:alternate"][@refines="#title"]'));
|
||||
|
||||
$date = $xml->xpath('/package/metadata/dc:date') ?: [];
|
||||
if($date !== false && sizeof($date) > 0){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue