~slub.team/goobi-indexserver/3.x

« back to all changes in this revision

Viewing changes to lucene/src/site/src/documentation/skins/common/xslt/fo/footerinfo.xsl

  • Committer: Sebastian Meyer
  • Date: 2012-08-03 09:12:40 UTC
  • Revision ID: sebastian.meyer@slub-dresden.de-20120803091240-x6861b0vabq1xror
Remove Lucene and Solr source code and add patches instead
Fix Bug #985487: Auto-suggestion for the search interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!--
3
 
  Licensed to the Apache Software Foundation (ASF) under one or more
4
 
  contributor license agreements.  See the NOTICE file distributed with
5
 
  this work for additional information regarding copyright ownership.
6
 
  The ASF licenses this file to You under the Apache License, Version 2.0
7
 
  (the "License"); you may not use this file except in compliance with
8
 
  the License.  You may obtain a copy of the License at
9
 
 
10
 
      http://www.apache.org/licenses/LICENSE-2.0
11
 
 
12
 
  Unless required by applicable law or agreed to in writing, software
13
 
  distributed under the License is distributed on an "AS IS" BASIS,
14
 
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 
  See the License for the specific language governing permissions and
16
 
  limitations under the License.
17
 
-->
18
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
19
 
                xmlns:fo="http://www.w3.org/1999/XSL/Format"
20
 
                version="1.0">
21
 
<!--
22
 
Named template to generate a short message in the PDF footer, from text in
23
 
skinconf.xml.  By default, the message is a copyright statement.  If a credit
24
 
with @role='pdf' is present, that is used instead.  Eg:
25
 
 
26
 
<credit role="pdf">
27
 
  <name>Generated by Apache FOP 1.0-dev</name>
28
 
  <url>http://xml.apache.org/fop/dev/</url>
29
 
</credit>
30
 
-->
31
 
  <xsl:template name="info">
32
 
    <xsl:variable name="disable-copyright-footer" select="//skinconfig/pdf/disable-copyright-footer"/>
33
 
    <xsl:variable name="pdfcredit" select="//skinconfig/credits/credit[@role = 'pdf']"/>
34
 
    <xsl:variable name="text">
35
 
      <xsl:if test="$pdfcredit">
36
 
        <xsl:value-of select="$pdfcredit/name"/>
37
 
      </xsl:if>
38
 
      <xsl:if test="not($pdfcredit) and not($disable-copyright-footer = 'true')">
39
 
<xsl:text>Copyright &#169; </xsl:text>
40
 
        <xsl:value-of select="//skinconfig/year"/>&#160;<xsl:value-of
41
 
          select="//skinconfig/vendor"/>
42
 
<xsl:text> All rights reserved.</xsl:text>
43
 
      </xsl:if>
44
 
    </xsl:variable>
45
 
    <xsl:variable name="url" select="$pdfcredit/url"/>
46
 
    <fo:block-container font-style="italic" absolute-position="absolute"
47
 
      left="0pt" top="0pt" right="6.25in" bottom="150pt"
48
 
      font-size="10pt">
49
 
      <xsl:if test="not($url)">
50
 
        <fo:block text-align="center" color="lightgrey">
51
 
          <xsl:value-of select="$text"/>
52
 
        </fo:block>
53
 
      </xsl:if>
54
 
      <xsl:if test="$url">
55
 
        <fo:block text-align="center">
56
 
          <fo:basic-link color="lightgrey"
57
 
            external-destination="{$url}">
58
 
            <xsl:value-of select="$text"/>
59
 
          </fo:basic-link>
60
 
        </fo:block>
61
 
        <fo:block text-align="center">
62
 
          <fo:basic-link color="lightgrey"
63
 
            external-destination="{$url}">
64
 
            <xsl:value-of select="$url"/>
65
 
          </fo:basic-link>
66
 
        </fo:block>
67
 
      </xsl:if>
68
 
    </fo:block-container>
69
 
  </xsl:template>
70
 
</xsl:stylesheet>