mirror of https://github.com/kiwix/libkiwix.git
34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
{{#with_xml_header}}<?xml version="1.0" encoding="UTF-8"?>
|
|
{{/with_xml_header}} <entry>
|
|
<id>urn:uuid:{{id}}</id>
|
|
<title>{{title}}</title>
|
|
<updated>{{updated}}</updated>
|
|
{{#dump_partial_entries}}
|
|
<link rel="alternate"
|
|
href="{{endpoint_root}}/entry/{{{id}}}"
|
|
type="application/atom+xml;type=entry;profile=opds-catalog"/>
|
|
{{/dump_partial_entries}}{{^dump_partial_entries}} <summary>{{description}}</summary>
|
|
<language>{{language}}</language>
|
|
<name>{{name}}</name>
|
|
<flavour>{{flavour}}</flavour>
|
|
<category>{{category}}</category>
|
|
<tags>{{tags}}</tags>
|
|
<articleCount>{{article_count}}</articleCount>
|
|
<mediaCount>{{media_count}}</mediaCount>
|
|
{{#icons}}<link rel="http://opds-spec.org/image/thumbnail"
|
|
href="{{root}}/catalog/v2/illustration/{{{id}}}/?size={{icon_size}}"
|
|
type="{{icon_mimetype}};width={{icon_size}};height={{icon_size}};scale=1"/>
|
|
{{/icons}}<link type="text/html" href="{{root}}/content/{{{content_id}}}" />
|
|
<author>
|
|
<name>{{author_name}}</name>
|
|
</author>
|
|
<publisher>
|
|
<name>{{publisher_name}}</name>
|
|
</publisher>
|
|
<dc:issued>{{book_date}}</dc:issued>
|
|
{{#url}}
|
|
<link rel="http://opds-spec.org/acquisition/open-access" type="application/x-zim" href="{{{url}}}" length="{{{size}}}" />
|
|
{{/url}}
|
|
{{/dump_partial_entries}}
|
|
</entry>
|