ajtruckle / meeting-schedule-assistant-support

Get support for Meeting Schedule Assistant.
https://www.publictalksoftware.co.uk/meeting-schedule-assistant/
5 stars 0 forks source link

Layout Meeting Schedule #111

Closed ajtruckle closed 5 days ago

ajtruckle commented 2 weeks ago

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

ajtruckle commented 2 weeks ago

Additional sample templates:

ajtruckle commented 2 weeks ago

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.

ajtruckle commented 2 weeks ago

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>

Handling 1 Extra Class

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:

image

The differences are:

ajtruckle commented 2 weeks ago

Handling 1 Extra Class - Correction

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).

There is no right or wrong way. 🤔

ajtruckle commented 2 weeks ago

This version of the template has the following improvements:

Workbook-S-140-CLM Explorer.zip

ajtruckle commented 2 weeks ago

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:

Workbook-S-140-CLM Explorer.zip

cengizu commented 2 weeks ago

image it looks great 👍

ajtruckle commented 1 week ago

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/

ajtruckle commented 1 week ago

@cengizu I received the following clarifications concerning CLM Explorer:

Template Settings

Under Preferences you can choose the report with Square Icons.

image

Special Events

Under Congregation Special Dates you can make CO Visit and Special events.

ajtruckle commented 1 week ago

Special Events

Special Events looks like this on the Square Icons template in CLM Explorer:

image

ajtruckle commented 1 week ago

@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.

Workbook-S-140-CLM Explorer.zip

cengizu commented 1 week ago

image

it works nice for the Memorial.