|
Navigation: BookCAT FAQ > Upgrading to the latest version > Version 8 > Version 8.20 uses a new XSLT transformation engine |
|
BookCAT version 8.20 uses a new XSLT transformation engine. Unfortunately, this means that some of the old xsl templates will not work properly.
If you have not customized the xsl templates
To reinstall all xsl templates, download and run bookcat_setup_xsl.exe.
Note: This will overwrite all existing xsl templates.
If you have customized the xsl templates
This means that you will have to manually update the xsl templates.
First, you need to update all calls to the add-pagelinks function. There are at least 12 files you need to update (all located in the \Explorer Templates folder):
BookList.xsl
BookList_Acquired.xsl
BookList_Series.xsl
BookLoanList.xsl
BorrowerList.xsl
CategoryList.xsl
ContentsList.xsl
ContentsList_Series.xsl
KeywordList.xsl
LoanList.xsl
PersonList.xsl
PublisherList.xsl
Change the following two lines (add "/data" - highlighted in red):
<xsl:with-param name="totalpages" select="recordset/totalpages"/>
<xsl:with-param name="pageno" select="recordset/pageno"/>
to
<xsl:with-param name="totalpages" select="data/recordset/totalpages"/>
<xsl:with-param name="pageno" select="data/recordset/pageno"/>
In addition, you need to modify these files:
Book.xsl
Change
sellingprice/@integer> or
to
sellingprice/@integer>0 or
and
<xsl:if test="value/@integer>0 or value/@fraction>">
to
<xsl:if test="value/@integer>0 or value/@fraction>0">
and
<xsl:if test="sellingprice/@integer>0 or or sellingprice/@fraction>0">
to
<xsl:if test="sellingprice/@integer>0 or sellingprice/@fraction>0">
and
<xsl:if test="pages>0">
to
<xsl:if test="pages/@unformatted>0">
and
<xsl:if test="releaseno!=0">
to
<xsl:if test="releaseno/@unformatted!=0">
BookBrowse.xsl
Change
<xsl:if test="pages>0">
to
<xsl:if test="pages/@unformatted>0">
and
<xsl:if test="releaseno!=0">
to
<xsl:if test="releaseno/@unformatted!=0">
BookBrowse_Vert.xsl
Change
<xsl:if test="pages>0">
to
<xsl:if test="pages/@unformatted>0">
and
<xsl:if test="releaseno!=0">
to
<xsl:if test="releaseno/@unformatted!=0">
In the \HTML Export folder, you need to modify 3 files:
BookList.xsl
Remove:
<xsl:variable name="prevauthor">
<xsl:value-of select="preceding::authors/@sort"/>
</xsl:variable>
And change
<xsl:if test="not($prevauthor=authors/@sort)">
to
<xsl:if test="preceding::bookdata[1]/authors/@sort!=authors/@sort or not(preceding::bookdata[1])">
BookListDetails.xsl
Remove:
<xsl:variable name="prevauthor">
<xsl:value-of select="preceding::authors/@sort"/>
</xsl:variable>
And change
<xsl:if test="not($prevauthor=authors/@sort)">
to
<xsl:if test="preceding::bookdata[1]/authors/@sort!=authors/@sort or not(preceding::bookdata[1])">
and change
<xsl:if test="pages > 0">
to
<xsl:if test="pages/@unformatted > 0">
IndexMainOverview.xsl
Change
translate(substring(preceding::sortby, 1, 1), 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'))">
to
translate(substring(preceding::record[1]/sortby, 1, 1), 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'))">