Notes IconHave a read of this help topic to get a basic understanding of what is involved with advanced customization.

Introduction

You can use the following templates to display the Bethel Speaker Service Talk event on your schedule. They are designed to complement the look and feel of default Workbook S-140 schedule.

Feel free to copy the template and customize it as you see fit and from herein it is assumed that you are already familiar with advanced customization.

Notes IconThe default template Workbook-S-140-PublicTalk-WatchtowerStudy-ServiceTalk-Videoconference supports this special event.

Quick Navigation


Underlying XML

The Bethel Speaker Service Talk event is included in the underlying XML file using the following syntax.

Notes IconLong lines have been word-wrapped for ease of reading.

<SpecialEvent>
    <Event>Saturday Service Talk</Event>
    <Location>Videoconferencing</Location>
    <Date Day="14" 

          DayShort="Sat" 

          DayFull="Saturday" 

          Month="5" 

          MonthShort="May" 

          MonthFull="May" 

          Year="2022" 

          Memorial="0" 

          AllDayEvent="0" 

          StartTime12="7:00" 

          StartTime24="19:00" 

          EndTime12="8:00" 

          EndTime24="20:00" MidweekEvent="0">14/05/2022</Date>
    <BethelSpeakerServiceTalk>
        <SongOpen Title="Jehovah’s Attributes" 

                  StartTime12="7:00" 

                  StartTime24="19:00" 

                  EndTime12="7:05" EndTime24="19:05" DurationShort="5 min.">1</SongOpen>
        <VideoConferenceHost>Name 1</VideoConferenceHost>
        <VideoConferenceCohost>Name 2</VideoConferenceCohost>
        <Chairman>Name 3</Chairman>
        <PrayerOpen>Name 4</PrayerOpen>
        <PrayerClose>Name 5</PrayerClose>
        <Speaker StartTime12="7:05" 

                 StartTime24="19:05" 

                 EndTime12="8:05" 

                 EndTime24="20:05" DurationShort="60 min.">Name 5</Speaker>
        <Theme>How Does Jehovah Help Us?</Theme>
        <SongEnd Title="Jehovah Is Your Name" 

                 StartTime12="8:05" 

                 StartTime24="20:05" 

                 EndTime12="8:10" 

                 EndTime24="20:10" DurationShort="5 min.">2</SongEnd>
    </BethelSpeakerServiceTalk>
</SpecialEvent>

Bethel Speaker Service Talk

Use this template to display the event on your schedule. Please note the following:

  • The special event Description is used as the Heading.
  • The Videoconference information is only included when both assignments have been provided.

<!-- Bethel Speaker Service Talk Event -->
<xsl:template match="BethelSpeakerServiceTalk">
       <table class="tableBethelSpeakerServiceTalk">
               <colgroup>
                       <col class="columnTime"/>
                       <col class="columnPublicTalk"/>
                       <col class="columnName"/>
               </colgroup>
               <!-- Row: Heading -->
               <tr>
                       <td class="cellWEEKEND" colspan="3">
                               <div class="textBethelSpeakerHeading">
                                       <xsl:value-of select="../Event"/>
                               </div>
                       </td>
               </tr>
               <!-- Date and Chairman -->
               <tr>
                       <td class="cellWEEKEND" colspan="2">
                               <div class="textBethelSpeakerDate">
                                       <xsl:value-of select="../Date/@DayFull"/>
                                       <xsl:text> </xsl:text>
                                       <xsl:value-of select="../Date/@Day"/>
                                       <xsl:text> | </xsl:text>
                                       <xsl:value-of select="../Date/@MonthFull"/>
                               </div>
                               <div class="floatRight textHeadingLabel">
                                       <xsl:value-of select="//Labels/PTS_Chairman"/>
                               </div>
                       </td>
                       <td class="cellName">
                               <xsl:value-of select="Chairman"/>
                       </td>
               </tr>
               <!-- Row: Host and Co-host (if both names provided) -->
               <xsl:if test="VideoConferenceHost != '' and VideoConferenceCohost != ''">
                       <tr>
                               <td colspan="2">
                                       <div class="floatRight">
                                               <xsl:value-of select="//Labels/VideoConferenceHost"/>
                                               <br/>
                                               <xsl:value-of select="//Labels/VideoConferenceCohost"/>
                                       </div>
                               </td>
                               <td class="cellName">
                                       <xsl:apply-templates select="VideoConferenceHost"/>
                                       <br/>
                                       <xsl:apply-templates select="VideoConferenceCohost"/>
                               </td>
                       </tr>
               </xsl:if>
               <!-- Row: Opening Song and Opening Prayer -->
               <tr>
                       <xsl:apply-templates select="SongOpen" mode="BethelSpeakerServiceTalk"/>
                       <xsl:apply-templates select="PrayerOpen" />
               </tr>
               <!-- Row: Service Talk Theme and Speaker -->
               <tr>
                       <td class="cellTime">
                               <xsl:value-of select="Speaker/@EndTime24"/>
                       </td>
                       <td class="cellTheme">
                               <span class="bulletBSST">
                                       <xsl:text>&#8226;</xsl:text>
                               </span>
                               <span class="textPTSLabel">
                                       <xsl:value-of select="//Labels/PTS_Theme"/>:
                               </span>
                               <xsl:text> </xsl:text>
                               <span class="textPTSValue">
                                       <xsl:value-of select="Theme"/>
                               </span>
                               <div class="floatRight">
                                       <xsl:value-of select="//Labels/PTS_Speaker"/>:
                               </div>
                       </td>
                       <td class="cellName">
                               <xsl:value-of select="Speaker"/>
                       </td>
               </tr>
               <!-- Row: Closing Song and Closing Prayer -->
               <tr>
                       <xsl:apply-templates select="SongEnd" mode="BethelSpeakerServiceTalk" />
                       <xsl:apply-templates select="Speaker" />
               </tr>
       </table>
</xsl:template>

Apply the above template when you want to display the special event on your schedule. For example:

<!-- Cater for Bethel Speaker Service Talk -->
<xsl:apply-templates select="SpecialEvent/BethelSpeakerServiceTalk"/>

There is an adjustment that you will need to make to to the existing script to ensure the Weekend Meeting continues to display on the schedule.

Notes IconLong lines have been word-wrapped for ease of reading.

<!-- Weekend Meeting -->
<xsl:if test="@SpecialEvent=0 
              or @CircuitVisit=1 
              or (SpecialEvent/Date/@MidweekEvent=1 and SpecialEvent/Date/@Memorial=1) 
              or count(SpecialEvent/BethelSpeakerServiceTalk) = 1">
       <!-- Possible options are: -->
       <!-- 1. Normal meeting -->
       <!-- 2. Circuit Visit -->
       <!-- 3. Midweek Memorial -->
       <!-- 4. Bethel Speaker Service Talk Weekend -->
       <xsl:apply-templates select="PUBLICTALK"/>
</xsl:if>

An extra clause was added to the test.

Song Titles

Use this template to display the two song numbers on the schedule.

<!--Displays the song information for Bethel Speaker Service Talk Event -->
<xsl:template match="SongOpen | SongEnd" mode="BethelSpeakerServiceTalk">
       <td class="cellTime">
               <xsl:value-of select="@EndTime24"/>
       </td>
       <td class="cellTheme">
               <xsl:if test=". != 0">
                       <span class="bulletBSST">
                               <xsl:text>&#8226;</xsl:text>
                       </span>
                       <span class="textSongLabel">
                               <xsl:value-of select="//Labels/Song"/>
                       </span>
                       <span class="textSongNumber">
                               <xsl:value-of select="."/>
                       </span>
                       <span class="textSongTitle">
                               <xsl:value-of select="@Title"/>
                       </span>
               </xsl:if>
               <div class="floatRight">
                       <xsl:value-of select="//Labels/Prayer"/>
               </div>
       </td>
</xsl:template>

Notes IconThe song information is not displayed when the song number has a value of 0. This value represents the first (blank) item in the drop-down list of song titles on the Bethel Speaker Service Talk window.

Stylesheet Classes

These classes have been provided for you to customize how the information is displayed. These can be found towards the end of the stylesheet:

.tableBethelSpeakerServiceTalk {
       margin-bottom: 2mm;
}

.textBethelSpeakerHeading {
       padding: 1mm;
       color: #fff;
       background-color: #FD00FF;
       width: 90mm;
       font-size: 12pt;
       font-weight: 700;
       text-transform: uppercase;
       vertical-align: middle;
}

.textBethelSpeakerDate {
       padding-left: 1mm;
       float: left;
       text-transform: uppercase;
       font-size: 11pt;
       font-weight: 700;
}

.bulletBSST {
       padding-right: 1mm;
       color: #FD00FF;
       font-weight: normal;
}

The tableBethelSpeakerServiceTalk class needs to be added to the print section of the CSS file too:

@media print {
    body {
        background: #FFF;
    }

    .containerPage, .containerMeeting, 

     .tableDATE, .tableHEADING, .tableTFGW, 

     .tableAYFM, .tableLAC, .tableWeekend, .tableBethelSpeakerServiceTalk {
        width: 99%;
        min-width: 99%;
        max-width: 99%;
        padding-left: 0;
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
}