aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-27 04:38:33 -0700
committerFriendika <info@friendika.com>2011-10-27 04:38:33 -0700
commitea0ab6fbac0dc317eb2e81abedbd3855c08a14c5 (patch)
tree7d05e4a1ad6e318f4e89d902db3c9fd8225f1901 /view
parentabe96155b42f0f824d05d08126d0ced0d3c5ab38 (diff)
downloadvolse-hubzilla-ea0ab6fbac0dc317eb2e81abedbd3855c08a14c5.tar.gz
volse-hubzilla-ea0ab6fbac0dc317eb2e81abedbd3855c08a14c5.tar.bz2
volse-hubzilla-ea0ab6fbac0dc317eb2e81abedbd3855c08a14c5.zip
poco should now be spec compliant
Diffstat (limited to 'view')
-rw-r--r--view/poco_entry_xml.tpl4
-rw-r--r--view/poco_xml.tpl12
2 files changed, 10 insertions, 6 deletions
diff --git a/view/poco_entry_xml.tpl b/view/poco_entry_xml.tpl
index 71ca2d13e..8d5515152 100644
--- a/view/poco_entry_xml.tpl
+++ b/view/poco_entry_xml.tpl
@@ -1,7 +1,7 @@
<entry>
{{ if $entry.id }}<id>$entry.id</id>{{ endif }}
{{ if $entry.displayName }}<displayName>$entry.displayName</displayName>{{ endif }}
-{{ if $entry.preferredName }}<preferredName>$entry.preferredName</preferredName>{{ endif }}
+{{ if $entry.preferredUsername }}<preferredUsername>$entry.preferredUsername</preferredUsername>{{ endif }}
{{ if $entry.urls }}<urls><value>$entry.urls.value</value><type>$entry.urls.type</type></urls>{{ endif }}
-{{ if $entry.photos }}<photos><value>$entry.photos.value</value><type><$entry.photos.type></type></photos>{{ endif }}
+{{ if $entry.photos }}<photos><value>$entry.photos.value</value><type>$entry.photos.type</type></photos>{{ endif }}
</entry>
diff --git a/view/poco_xml.tpl b/view/poco_xml.tpl
index 218c97c5c..9549b695d 100644
--- a/view/poco_xml.tpl
+++ b/view/poco_xml.tpl
@@ -3,12 +3,16 @@
{{ if $response.sorted }}<sorted>$response.sorted</sorted>{{ endif }}
{{ if $response.filtered }}<filtered>$response.filtered</filtered>{{ endif }}
{{ if $response.updatedSince }}<updatedSince>$response.updatedSince</updatedSince>{{ endif }}
-{{ if $response.startIndex }}<startIndex>$response.startIndex</startIndex>{{ endif }}
-{{ if $response.itemsPerPage }}<itemsPerPage>$response.itemsPerPage</itemsPerPage>{{ endif }}
-{{ if $response.totalResults }}<totalResults>$response.totalResults</totalResults>{{ endif }}
+<startIndex>$response.startIndex</startIndex>
+<itemsPerPage>$response.itemsPerPage</itemsPerPage>
+<totalResults>$response.totalResults</totalResults>
+
+{{ if $response.totalResults }}
{{ for $response.entry as $entry }}
{{ inc poco_entry_xml.tpl }}{{ endinc }}
{{ endfor }}
-
+{{ else }}
+<entry></entry>
+{{ endif }}
</response>