Closed ajtruckle closed 5 days ago
Additional sample templates:
We have made good progress with the development of a new XSL script. Minor changes had to be made the Meeting Editor, so anyone who wants to test will need a beta installer.
Here are the current XSL / CSS files:
Workbook-S-140-CLM Explorer.zip
[!Note] This version of the template does not currently support additional classrooms or special events.
Updated template:
Workbook-S-140-CLM Explorer.zip
Corrected code snippet:
<!-- Student Item -->
<xsl:template match="StudentItem">
<tr style="background-color: var(--bg-field)">
<td> </td>
<td>
<span class="box" style="color: var(--color-field)">
<xsl:value-of select="Time/@Duration"/>
</span>
</td>
<td colspan="2">
<xsl:value-of select="Type"/>
</td>
<td>
<xsl:value-of select="Students[@Class='1']/Student"/>
<xsl:if test="@IsTalk='0'">
<xsl:text> / </xsl:text>
<xsl:value-of select="Students[@Class='1']/Assistant"/>
</xsl:if>
</td>
</tr>
</xsl:template>
To handle 1 additional class in the TFGW section would be easy enough:
<!-- Bible Reading-->
<xsl:template match="BibleReadingItem">
<tr style="background-color: var(--bg-gems)">
<td> </td>
<td>
<span class="box" style="color: var(--color-gems)">
<xsl:value-of select="Time/@Duration"/>
</span>
</td>
<td>
<xsl:value-of select="Type"/>
</td>
<!-- Bible Reading - Class 1 -->
<td>
<xsl:value-of select="Readers/Reader[@Class='2']"/>
</td>
<!-- Bible Reading - Main Hall -->
<td>
<xsl:value-of select="Readers/Reader[@Class='1']"/>
</td>
</tr>
</xsl:template>
And similar changes can be made to support 1 additional class in the AYFM section:
<!-- Student Item -->
<xsl:template match="StudentItem">
<tr style="background-color: var(--bg-field)">
<td> </td>
<td>
<span class="box" style="color: var(--color-field)">
<xsl:value-of select="Time/@Duration"/>
</span>
</td>
<td>
<xsl:value-of select="Type"/>
</td>
<!-- Student Item - Class 1 -->
<td>
<xsl:value-of select="Students[@Class='2']/Student"/>
<xsl:if test="@IsTalk='0'">
<xsl:text> / </xsl:text>
<xsl:value-of select="Students[@Class='2']/Assistant"/>
</xsl:if>
</td>
<!-- Student Item - Main Hall -->
<td>
<xsl:value-of select="Students[@Class='1']/Student"/>
<xsl:if test="@IsTalk='0'">
<xsl:text> / </xsl:text>
<xsl:value-of select="Students[@Class='1']/Assistant"/>
</xsl:if>
</td>
</tr>
</xsl:template>
The template (for 1 additional class) that was sent to me looks like this:
The differences are:
We need to confirm if there is actually 1 extra class or not by examining the NumberClasses
attribute. And, there are three ways to make this work.
<xsl:choose>
<xsl:when test="AYFM/@NumberClasses = '2'">
<xsl:apply-templates select="AYFM/StudentItem" mode="OneExtraClass"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="AYFM/StudentItem"/>
</xsl:otherwise>
</xsl:choose>
Then, we have two versions of the StudentItem
template (the original and the new one with the mode specified).
StudentItem
template itself to conditionally add the extra class.There is no right or wrong way. 🤔
This version of the template has the following improvements:
This version of the template has better support for opening the HTML output in Microsoft Word.
This is considered as the final template for now:
it looks great 👍
Version 24.14.6 has now been released which includes this template:
https://www.publictalksoftware.co.uk/2024/11/msa-version-24-14-6-news/
@cengizu I received the following clarifications concerning CLM Explorer:
Under Preferences you can choose the report with Square Icons.
Under Congregation Special Dates you can make CO Visit and Special events.
Special Events looks like this on the Square Icons template in CLM Explorer:
@cengizu Minor changes have been made to MSA to add missing attributes to the Special Events database. You'll have to edit an existing special event to trigger the events database to update with the new attributes.
The templates have been updated to support midweek Memorial events.
it works nice for the Memorial.
Is your feature request related to a problem? Please describe. Is it possible to make a layout that looks like it from CLM Explorer?
Additional context Here is a sample template:
Template.docx