mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 09:32:24 -04:00
Add ability to parse se:role epub property
This commit is contained in:
parent
61a42e273c
commit
94a6330576
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ class Ebook{
|
||||||
$id = $contributor->attributes()->id;
|
$id = $contributor->attributes()->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($xml->xpath('/package/metadata/meta[@property="role"][@refines="#' . $id . '"]') ?: [] as $role){
|
foreach($xml->xpath('/package/metadata/meta[ (@property="role" or @property="se:role") and @refines="#' . $id . '"]') ?: [] as $role){
|
||||||
$c = new Contributor(
|
$c = new Contributor(
|
||||||
(string)$contributor,
|
(string)$contributor,
|
||||||
$this->NullIfEmpty($xml->xpath('/package/metadata/meta[@property="file-as"][@refines="#' . $id . '"]')),
|
$this->NullIfEmpty($xml->xpath('/package/metadata/meta[@property="file-as"][@refines="#' . $id . '"]')),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue