
<p>Yoel Kortick</p><p>How to make a condition in the file bor-list.xsl</p><p>See also: http://www.w3schools.com/xsl/xsl_if.asp</p><p>In this example we will do as follows:</p><p>In file bor-list-00 state that if the item status is "Overnight" then display the due date and the due hour. If the item status is not "Overnight" then leave it as it is and only display the Due Date.</p><p>ONE</p><p>Have several items on loan to one patron and have one item with status "Overnight"</p><p>TWO In file bor-list-00 state that if the item status is "Overnight" then display the due date and the due hour. If the item status is not "Overnight" then leave it as it is and only display the Due Date.</p><p>Replace this "out of the box" section</p><p><xsl:call-template name="display-grid-gen"> <xsl:with-param name="label" select="'Due Date'"/> <xsl:with-param name="value" select="./z36-due-date"/> <xsl:with-param name="header" select="$header"/> </xsl:call-template></p><p>With this section</p><p><xsl:if test='./z30-item-status="Overnight"'> <xsl:call-template name="display-grid-gen"> <xsl:with-param name="label" select="'Due Date and Hour'"/> <xsl:with-param name="value" select= 'concat( ./z36-due-date, " at ",./z36-due-hour)'/> <xsl:with-param name="header" select="$header"/> </xsl:call-template> </xsl:if> <xsl:if test='./z30-item-status!="Overnight"'> <xsl:call-template name="display-grid-gen"> <xsl:with-param name="label" select="'Due Date'"/> <xsl:with-param name="value" select="./z36-due-date"/> <xsl:with-param name="header" select="$header"/> </xsl:call-template> </xsl:if></p><p>THREE</p><p>Do global patron > letter > list and print bor-list-00</p><p>FOUR</p><p>Now you have this. Only one specific record has both the due date and the due hour</p><p>FIVE</p><p>We can see that the item with both due date and due hour is the only one with "Overnight" status. :</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages3 Page
-
File Size-