Skip to content
Snippets Groups Projects
Commit 0ef3b0c4 authored by Julian Maurice's avatar Julian Maurice
Browse files

hotline #13167 OPDS: Do not consider <link> with rel="start"

Atramenta OPDS catalogue entries have two links. The one with
rel="start" links to the root element so we have to ignore it.
parent a3446d92
Branches
Tags
6 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!78Master,!77Hotline 6.41,!70Hotline/13167,!69Hotline/13167,!67Hotline/13167
......@@ -118,6 +118,10 @@ class Class_WebService_OPDS_CatalogReader {
return;
}
if (array_key_exists('REL', $attributes) && $attributes['REL'] == 'start') {
return;
}
if (false === strpos($attributes['TYPE'], 'application/atom+xml'))
return;
......@@ -201,4 +205,4 @@ class Class_WebService_OPDS_CatalogReader {
return $normalized . dirname($urlInfos['path']) . $url;
}
}
?>
\ No newline at end of file
?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment