forked from daniel-dgi/UofM_gsearch_config
-
Notifications
You must be signed in to change notification settings - Fork 4
/
updateIndexToResultPage.xslt
39 lines (26 loc) · 1.12 KB
/
updateIndexToResultPage.xslt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:zs="http://www.loc.gov/zing/srw/"
xmlns:foxml="info:fedora/fedora-system:def/foxml#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<!-- This xslt stylesheet generates the resultPage
from a Solr updateIndex.
-->
<xsl:output method="xml" indent="yes" encoding="UTF-8" omit-xml-declaration="yes"/>
<xsl:template match="solrUpdateIndex">
<xsl:variable name="INDEXNAME" select="@indexName"/>
<xsl:variable name="INSERTTOTAL" select="counts/@insertTotal"/>
<xsl:variable name="UPDATETOTAL" select="counts/@updateTotal"/>
<xsl:variable name="DELETETOTAL" select="counts/@deleteTotal"/>
<xsl:variable name="DOCCOUNT" select="counts/@docCount"/>
<xsl:variable name="WARNCOUNT" select="counts/@warnCount"/>
<updateIndex indexName="{$INDEXNAME}"
insertTotal="{$INSERTTOTAL}"
updateTotal="{$UPDATETOTAL}"
deleteTotal="{$DELETETOTAL}"
docCount="{$DOCCOUNT}"
warnCount="{$WARNCOUNT}">
</updateIndex>
</xsl:template>
</xsl:stylesheet>