Add ability to parse se:role epub property

This commit is contained in:
Alex Cabal 2021-03-23 20:07:44 -05:00
parent 61a42e273c
commit 94a6330576

View file

@ -267,7 +267,7 @@ class Ebook{
$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(
(string)$contributor,
$this->NullIfEmpty($xml->xpath('/package/metadata/meta[@property="file-as"][@refines="#' . $id . '"]')),