Add language in OPDS feed.

This commit is contained in:
Sébastien Lucas 2012-12-23 15:10:07 +01:00
parent 481d47027c
commit 5abcb05a90

View file

@ -203,6 +203,13 @@ class OPDSRenderer
self::getXmlStream ()->endElement (); self::getXmlStream ()->endElement ();
} }
$lang = $entry->book->getLanguages ();
if (!is_null ($lang)) {
self::getXmlStream ()->startElement ("dcterms:language");
self::getXmlStream ()->text ($lang);
self::getXmlStream ()->endElement ();
}
} }
public function render ($page) { public function render ($page) {