Changeset 2330
- Timestamp:
- 08/12/09 13:30:03
- Files:
-
- branches/douglm/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (13 diffs)
- branches/douglm/deployment/webadmin/webapp/resources/resources/bedework.js (modified) (1 diff)
- branches/douglm/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js (modified) (1 diff)
- branches/douglm/projects/indexer (added)
- branches/douglm/projects/indexer/README (added)
- branches/douglm/projects/indexer/build (added)
- branches/douglm/projects/indexer/build.properties (added)
- branches/douglm/projects/indexer/build.xml (added)
- branches/douglm/projects/indexer/build/buildjar.xml (added)
- branches/douglm/projects/indexer/build/getJar.xml (added)
- branches/douglm/projects/indexer/src (added)
- branches/douglm/projects/indexer/src/org (added)
- branches/douglm/projects/indexer/src/org/bedework (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/douglm/deployment/webadmin/webapp/resources/default/default/default.xsl
r2259 r2330 391 391 <body> 392 392 <xsl:choose> 393 <xsl:when test=" (/bedework/page='modEvent' or /bedework/page='modEventPending') and /bedework/formElements/recurrenceId=''">393 <xsl:when test="/bedework/page='modEvent' or /bedework/page='modEventPending'"> 394 394 <xsl:attribute name="onload">initRXDates();initXProperties();focusFirstElement();bwSetupDatePickers();</xsl:attribute> 395 395 </xsl:when> … … 2566 2566 <td> 2567 2567 <ul class="aliasTree"> 2568 <xsl:apply-templates select="form/subscriptions/calsuite/calendars/calendar " mode="showEventFormAliases">2569 <xsl:with-param name="root"> true</xsl:with-param>2568 <xsl:apply-templates select="form/subscriptions/calsuite/calendars/calendar/calendar[isTopicalArea = 'true']" mode="showEventFormAliases"> 2569 <xsl:with-param name="root">false</xsl:with-param> 2570 2570 </xsl:apply-templates> 2571 2571 </ul> … … 2744 2744 </xsl:if> 2745 2745 </table> 2746 <xsl:if test="not(starts-with(form/calendar/ path,$submissionsRootUnencoded))">2746 <xsl:if test="not(starts-with(form/calendar/event/path,$submissionsRootUnencoded))"> 2747 2747 <!-- don't create two instances of the submit buttons on pending events; 2748 2748 the publishing buttons require numerous unique ids --> … … 2791 2791 </xsl:if> 2792 2792 2793 <xsl:if test="calendar[isSubscription = 'true' or calType = '0']"> 2793 <!-- Return topical areas and all underlying calendars. 2794 Check for topical areas only if the subscription is owned by the calendar suite: 2795 If the subscription points out to a calendar or folder in another tree, 2796 return the branch regardless of the topical area setting. --> 2797 <xsl:if test="calendar[(isSubscription = 'true' or calType = '0') and ((isTopicalArea = 'true' and starts-with(path,/bedework/currentCalSuite/resourcesHome)) or not(starts-with(path,/bedework/currentCalSuite/resourcesHome)))]"> 2794 2798 <ul> 2795 <xsl:apply-templates select="calendar[ isSubscription = 'true' or calType = '0']" mode="showEventFormAliases"/>2799 <xsl:apply-templates select="calendar[(isSubscription = 'true' or calType = '0') and ((isTopicalArea = 'true' and starts-with(path,/bedework/currentCalSuite/resourcesHome)) or not(starts-with(path,/bedework/currentCalSuite/resourcesHome)))]" mode="showEventFormAliases"/> 2796 2800 </ul> 2797 2801 </xsl:if> … … 3919 3923 <xsl:template match="currentCalendar" mode="addCalendar"> 3920 3924 <h3>Add Calendar, Folder, or Subscription</h3> 3921 <form name="addCalForm" method="post" action="{$calendar-update}" onsubmit="setCalendarAlias(this)"> 3925 <p class="note">Note: Access may be set on a calendar after it is created.</p> 3926 <form name="addCalForm" method="post" action="{$calendar-update}" onsubmit="setCatFilters(this);return setCalendarAlias(this);"> 3922 3927 <table class="common"> 3923 3928 <tr> … … 4025 4030 </tr> 4026 4031 </table> 4027 <div class="submitButtons"> 4028 <input type="submit" name="addCalendar" value="Add"/> 4029 <input type="submit" name="cancelled" value="cancel"/> 4030 </div> 4032 4031 4033 <div id="subscriptionTypes" class="invisible"> 4032 4034 <h4>Subscription URL</h4> 4035 <input type="hidden" value="publicTree" name="subType" id="bwSubType"/> 4033 4036 <div id="subscriptionTypeExternal"> 4034 4037 <table class="common" id="subscriptionTypes"> … … 4059 4062 </div> 4060 4063 4061 < div id="sharingBox">4064 <!-- div id="sharingBox"> 4062 4065 <h3>Current Access:</h3> 4063 4066 <div id="bwCurrentAccessWidget"> </div> … … 4068 4071 <xsl:with-param name="outputId">bwCurrentAccessWidget</xsl:with-param> 4069 4072 </xsl:call-template> 4070 </div >4073 </div--> 4071 4074 4072 4075 <div class="submitButtons"> … … 4075 4078 </div> 4076 4079 </form> 4077 4078 <!-- div id="sharingBox">4079 <h3>Current Access:</h3>4080 Sharing may be added to a calendar once created.4081 </div-->4082 4080 </xsl:template> 4083 4081 … … 4917 4915 <xsl:template match="currentCalendar" mode="addSubscription"> 4918 4916 <h3>Add Subscription</h3> 4917 <p class="note">Note: Access may be set on a subscription after it is created.</p> 4919 4918 <form name="addCalForm" method="post" action="{$subscriptions-update}" onsubmit="setCatFilters(this);return setCalendarAlias(this);"> 4920 4919 <table class="common"> … … 4931 4930 <xsl:variable name="curCalSummary" select="summary"/> 4932 4931 <input type="text" name="calendar.summary" value="{$curCalSummary}" size="40"/> 4932 </td> 4933 </tr> 4934 <tr> 4935 <th>Topical Area:</th> 4936 <td> 4937 <input type="radio" name="calendar.isTopicalArea" value="true" checked="checked"/> true 4938 <input type="radio" name="calendar.isTopicalArea" value="false"/> false 4933 4939 </td> 4934 4940 </tr> … … 5063 5069 </tr> 5064 5070 </table> 5065 5066 <div id="sharingBox"> 5071 <!-- div id="sharingBox"> 5067 5072 <h3>Current Access:</h3> 5068 5073 <div id="bwCurrentAccessWidget"> </div> … … 5073 5078 <xsl:with-param name="outputId">bwCurrentAccessWidget</xsl:with-param> 5074 5079 </xsl:call-template> 5075 </div >5080 </div--> 5076 5081 5077 5082 <div class="submitButtons"> branches/douglm/deployment/webadmin/webapp/resources/resources/bedework.js
r2157 r2330 191 191 } else if (formObj.type.value == "subscription") { 192 192 switch (formObj.subType.value) { 193 case "publicTree": 194 // do nothing: when adding a subscription to the public tree, we set the fields directly. 195 break; 193 196 case "public": 194 197 formObj.aliasUri.value = "bwcal://" + formObj.publicAliasHolder.value; branches/douglm/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js
r2225 r2330 284 284 output += '</table>'; 285 285 } 286 // categories: deprecated - there will be no categories because the topical 287 // areas selected by the submitter are only suggestions 288 /*if (this.category != "") { 289 output += '<p><strong>Type of Event:</strong> (if Topical Areas weren\'t sufficient)<br/>'; 286 if (this.category != "") { 287 output += '<p><strong>Suggested Type of Event:</strong><br/>'; 290 288 output += this.category; 291 289 output += '</p>'; 292 } */290 } 293 291 output += '<p>'; 294 292 if (this.notes != "") {
