Author: scottbw
Date: Fri Jan 13 11:47:03 2012
New Revision: 1231022
URL: http://svn.apache.org/viewvc?rev=1231022&view=rev
Log:
Load the item summary template from an HTML template file, as per the detail
template, rather than inline in the properties file
Added:
incubator/wookie/trunk/widgets/templates/browse/item_summary_template.html
Modified:
incubator/wookie/trunk/widgets/templates/browse/default.widget.properties
incubator/wookie/trunk/widgets/templates/browse/template_build.xml
Modified:
incubator/wookie/trunk/widgets/templates/browse/default.widget.properties
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/browse/default.widget.properties?rev=1231022&r1=1231021&r2=1231022&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/templates/browse/default.widget.properties
(original)
+++ incubator/wookie/trunk/widgets/templates/browse/default.widget.properties
Fri Jan 13 11:47:03 2012
@@ -14,14 +14,6 @@ browse.index.url="http://localhost:8080/
browse.collection.template = "<div id='results'
data-role='collapsible-set'>${ITEMS}</div>"
#
-# The template string to use for item summaries, representing a single record
but before
-# the item detail has been retrieved
-#
-# type: string
-#
-browse.item.summary.template = <div class='result' data-role='collapsible'
wid='${ID}'><h3>${TITLE}</h3><div class='detail'></div></div>
-
-#
# The name of the XML element that represents a single item
# type: string
#
Added:
incubator/wookie/trunk/widgets/templates/browse/item_summary_template.html
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/browse/item_summary_template.html?rev=1231022&view=auto
==============================================================================
--- incubator/wookie/trunk/widgets/templates/browse/item_summary_template.html
(added)
+++ incubator/wookie/trunk/widgets/templates/browse/item_summary_template.html
Fri Jan 13 11:47:03 2012
@@ -0,0 +1 @@
+<div class='result' data-role='collapsible' wid='${ID}'><h3>${TITLE}</h3><div
class='detail'></div></div>
\ No newline at end of file
Modified: incubator/wookie/trunk/widgets/templates/browse/template_build.xml
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/browse/template_build.xml?rev=1231022&r1=1231021&r2=1231022&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/templates/browse/template_build.xml
(original)
+++ incubator/wookie/trunk/widgets/templates/browse/template_build.xml Fri Jan
13 11:47:03 2012
@@ -47,6 +47,30 @@
</filterchain>
</loadfile>
+ <loadfile property="browse.item.summary.template"
+ srcFile="item_summary_template.html"
+ failonerror="false">
+ <filterchain>
+ <striplinebreaks/>
+ </filterchain>
+ </loadfile>
+
+ <loadfile property="browse.item.summary.template"
+ srcFile="../common/item_summary_template.html"
+ failonerror="false">
+ <filterchain>
+ <striplinebreaks/>
+ </filterchain>
+ </loadfile>
+
+ <loadfile property="browse.item.summary.template"
+
srcFile="${template.dir}/${template.name}/item_summary_template.html"
+ failonerror="false">
+ <filterchain>
+ <striplinebreaks/>
+ </filterchain>
+ </loadfile>
+
<loadfile property="content.scripts"
srcFile="content_scripts.html"
failonerror="false">