Add language in OPDS feed.
This commit is contained in:
parent
481d47027c
commit
5abcb05a90
|
@ -202,6 +202,13 @@ class OPDSRenderer
|
|||
self::getXmlStream ()->text (date ("Y-m-d", $entry->book->pubdate) . "T08:08:08Z");
|
||||
self::getXmlStream ()->endElement ();
|
||||
}
|
||||
|
||||
$lang = $entry->book->getLanguages ();
|
||||
if (!is_null ($lang)) {
|
||||
self::getXmlStream ()->startElement ("dcterms:language");
|
||||
self::getXmlStream ()->text ($lang);
|
||||
self::getXmlStream ()->endElement ();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue