- Based on the Bedework Calendar |
+ Based on the Bedework Calendar System |
show XML |
refresh XSLT
Index: trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl
===================================================================
--- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl (revision 1871)
+++ trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl (revision 1874)
@@ -870,23 +870,4 @@
-
-
-
Event Link:
-
-
-
- optional
-
-
-
-
-
Cost:
-
-
-
-
- optional
-
-
@@ -907,4 +888,35 @@
cancelled
+
+
+
+
+
Cost:
+
+
+
+
+ optional: if any, and place to purchase tickets
+
+
+
+
+
Event URL:
+
+
+
+
+ optional: for more information about the event
+
+
+
+
+
Image URL:
+
+
+
+
+
+ optional: to include an image with the event description
Index: trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js
===================================================================
--- trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js (revision 1852)
+++ trunk/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js (revision 1874)
@@ -44,5 +44,5 @@
/* An rdate
-/* date: String: internal date
+ * date: String: internal date
* time: String
* tzid timezone id or null
@@ -274,16 +274,27 @@
// Set application x-properties here.
- // Sumbission comments as x-properties
- bwXProps.update(bwXPropertyLocation,
+ // Submission comments as x-properties
+ // Only return those comments that contain non-empty values;
+ // throw out the subfields if main field has no value.
+
+ if (formObj["commentLocationAddress"].value != "") {
+ bwXProps.update(bwXPropertyLocation,
[[bwXParamSubAddress,formObj["commentLocationSubaddress"].value],
[bwXParamURL,formObj["commentLocationURL"].value]],
formObj["commentLocationAddress"].value,true);
- bwXProps.update(bwXPropertyContact,
+ }
+ if (formObj["commentContactName"].value != "") {
+ bwXProps.update(bwXPropertyContact,
[[bwXParamPhone,formObj["commentContactPhone"].value],
[bwXParamURL,formObj["commentContactURL"].value],
[bwXParamEmail,formObj["commentContactEmail"].value]],
formObj["commentContactName"].value,true);
- bwXProps.update(bwXPropertyCategories,[],formObj["commentCategories"].value,true);
- bwXProps.update(bwXPropertySubmitComment,[],formObj["commentNotes"].value,true);
+ }
+ if (formObj["commentCategories"].value) {
+ bwXProps.update(bwXPropertyCategories,[],formObj["commentCategories"].value,true);
+ }
+ if (formObj["commentNotes"].value) {
+ bwXProps.update(bwXPropertySubmitComment,[],formObj["commentNotes"].value,true);
+ }
// X-BEDEWORK-IMAGE and its parameters: