How to Add a Condition to Bor-List Xsl Template Yoel Kortick

Total Page:16

File Type:pdf, Size:1020Kb

How to Add a Condition to Bor-List Xsl Template Yoel Kortick

Yoel Kortick

How to make a condition in the file bor-list.xsl

See also: http://www.w3schools.com/xsl/xsl_if.asp

In this example we will do as follows:

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.

ONE

Have several items on loan to one patron and have one item with status "Overnight"

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.

Replace this "out of the box" section

With this section

THREE

Do global patron > letter > list and print bor-list-00

FOUR

Now you have this. Only one specific record has both the due date and the due hour

FIVE

We can see that the item with both due date and due hour is the only one with "Overnight" status. :

Recommended publications