From 0ec206eff591606fec11a63085851c9cc75309c2 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Fri, 25 Feb 2011 11:32:17 +1300 Subject: [PATCH] MINOR: changed opensearch output to atom rather than rss --- templates/OpenSearchDescription.ss | 9 +++---- templates/OpenSearchResults.ss | 41 +++++++++++++++--------------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/templates/OpenSearchDescription.ss b/templates/OpenSearchDescription.ss index 3e11727..c75384e 100644 --- a/templates/OpenSearchDescription.ss +++ b/templates/OpenSearchDescription.ss @@ -6,8 +6,7 @@ <% if Tags %>$Tags<% end_if %> <% if Contact %>$Content<% end_if %> - <% if SearchPageLink %><% end_if %> - <% if SearchPageRss %><% end_if %> - <% if SearchPageJson %><% end_if %> - - + <% if SearchPageLink %><% end_if %> + <% if SearchPageAtom %><% end_if %> + <% if SearchPageJson %><% end_if %> + \ No newline at end of file diff --git a/templates/OpenSearchResults.ss b/templates/OpenSearchResults.ss index 507f8ce..d73fac4 100644 --- a/templates/OpenSearchResults.ss +++ b/templates/OpenSearchResults.ss @@ -1,23 +1,22 @@ - - + + $Title + $Link + + SilverStripe Ltd. + + + $Now + $TotalResults + $StartResult + $PageLength + + <% control Results %> + $Title - $Link - - $TotalResults - $StartResult - $PageLength - - - \ No newline at end of file + $Link + urn:uuid:$ID + $Content.LimitCharacters(200) + + <% end_control %> + \ No newline at end of file