converted tabs to spaces in all xsl files
git-svn-id: http://yolanda.mister-muffin.de/svn@240 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
dfb29b7142
commit
e59c37e102
13 changed files with 1856 additions and 1856 deletions
|
@ -1,24 +1,24 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://xspf.org/ns/0/"
|
xmlns="http://xspf.org/ns/0/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:output
|
<xsl:output
|
||||||
encoding="utf8"
|
encoding="utf8"
|
||||||
indent="yes"
|
indent="yes"
|
||||||
method="xml"
|
method="xml"
|
||||||
media-type="application/xml"
|
media-type="application/xml"
|
||||||
omit-xml-declaration="no"
|
omit-xml-declaration="no"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<xsl:template match="@*|node()">
|
<xsl:template match="@*|node()">
|
||||||
<xsl:copy>
|
<xsl:copy>
|
||||||
<xsl:apply-templates select="@*|node()"/>
|
<xsl:apply-templates select="@*|node()"/>
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
xmlns="http://a9.com/-/spec/opensearch/1.1/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:output
|
<xsl:output
|
||||||
encoding="utf8"
|
encoding="utf8"
|
||||||
indent="yes"
|
indent="yes"
|
||||||
method="xml"
|
method="xml"
|
||||||
media-type="application/xml"
|
media-type="application/xml"
|
||||||
omit-xml-declaration="no"
|
omit-xml-declaration="no"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<xsl:variable name="locale">
|
<xsl:variable name="locale">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
|
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
|
||||||
<xsl:value-of select="//@locale" />
|
<xsl:value-of select="//@locale" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>en-us</xsl:otherwise>
|
<xsl:otherwise>en-us</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:variable name="site_strings" select="document('../site/main.xml')//strings/string" />
|
<xsl:variable name="site_strings" select="document('../site/main.xml')//strings/string" />
|
||||||
|
@ -29,36 +29,36 @@
|
||||||
|
|
||||||
<!-- kill xml, opensearch is the same everywhere -->
|
<!-- kill xml, opensearch is the same everywhere -->
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<OpenSearchDescription>
|
<OpenSearchDescription>
|
||||||
|
|
||||||
<Description>
|
<Description>
|
||||||
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
||||||
</Description>
|
</Description>
|
||||||
|
|
||||||
<Image
|
<Image
|
||||||
height="16"
|
height="16"
|
||||||
width="16"
|
width="16"
|
||||||
type="image/x-icon"
|
type="image/x-icon"
|
||||||
>
|
>
|
||||||
<xsl:value-of select="$site_strings[@id='path_root']" />images/favicon.ico
|
<xsl:value-of select="$site_strings[@id='path_root']" />images/favicon.ico
|
||||||
</Image>
|
</Image>
|
||||||
|
|
||||||
<Query
|
<Query
|
||||||
role="example"
|
role="example"
|
||||||
searchTerms="example"
|
searchTerms="example"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ShortName>
|
<ShortName>
|
||||||
<xsl:value-of select="$site_strings[@id='site_name']" />
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
||||||
</ShortName>
|
</ShortName>
|
||||||
|
|
||||||
<Url type="text/html">
|
<Url type="text/html">
|
||||||
<xsl:attribute name="template">
|
<xsl:attribute name="template">
|
||||||
<xsl:value-of select="$site_strings[@id='path_root']" />/search.pl?query={searchTerms}
|
<xsl:value-of select="$site_strings[@id='path_root']" />/search.pl?query={searchTerms}
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</Url>
|
</Url>
|
||||||
|
|
||||||
</OpenSearchDescription>
|
</OpenSearchDescription>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -1,78 +1,78 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://purl.org/rss/1.0/"
|
xmlns="http://purl.org/rss/1.0/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:output
|
<xsl:output
|
||||||
encoding="utf8"
|
encoding="utf8"
|
||||||
indent="yes"
|
indent="yes"
|
||||||
method="xml"
|
method="xml"
|
||||||
media-type="application/xml"
|
media-type="application/xml"
|
||||||
omit-xml-declaration="no"
|
omit-xml-declaration="no"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<xsl:variable name="locale">
|
<xsl:variable name="locale">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
|
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
|
||||||
<xsl:value-of select="//@locale" />
|
<xsl:value-of select="//@locale" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>en-us</xsl:otherwise>
|
<xsl:otherwise>en-us</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:variable name="site_strings" select="document('../site/main.xml')//strings/string" />
|
<xsl:variable name="site_strings" select="document('../site/main.xml')//strings/string" />
|
||||||
<xsl:variable name="locale_strings" select="document(concat('../locale/', $locale, '.xml'))//strings/string" />
|
<xsl:variable name="locale_strings" select="document(concat('../locale/', $locale, '.xml'))//strings/string" />
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="results">
|
<xsl:template match="results">
|
||||||
|
|
||||||
<rdf:RDF>
|
<rdf:RDF>
|
||||||
|
|
||||||
<channel>
|
<channel>
|
||||||
<xsl:attribute name="rdf:about">
|
<xsl:attribute name="rdf:about">
|
||||||
<xsl:value-of select="$site_strings[@id='path_root']" />
|
<xsl:value-of select="$site_strings[@id='path_root']" />
|
||||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||||
<xsl:value-of select="//results/@query" />&xslt=rss
|
<xsl:value-of select="//results/@query" />&xslt=rss
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<title>
|
<title>
|
||||||
<xsl:value-of select="$site_strings[@id='site_name']" />
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
||||||
<xsl:value-of select="$locale_strings[@id='rss_separator']" />
|
<xsl:value-of select="$locale_strings[@id='rss_separator']" />
|
||||||
<xsl:value-of select="//results/@query" />
|
<xsl:value-of select="//results/@query" />
|
||||||
</title>
|
</title>
|
||||||
<link>
|
<link>
|
||||||
<xsl:value-of select="$site_strings[@id='path_root']" />
|
<xsl:value-of select="$site_strings[@id='path_root']" />
|
||||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||||
<xsl:value-of select="//results/@query" />&
|
<xsl:value-of select="//results/@query" />&
|
||||||
</link>
|
</link>
|
||||||
<description>
|
<description>
|
||||||
<xsl:value-of select="$locale_strings[@id='rss_description_1']" />
|
<xsl:value-of select="$locale_strings[@id='rss_description_1']" />
|
||||||
<xsl:value-of select="//results/@query" />
|
<xsl:value-of select="//results/@query" />
|
||||||
<xsl:value-of select="$locale_strings[@id='rss_description_2']" />
|
<xsl:value-of select="$locale_strings[@id='rss_description_2']" />
|
||||||
</description>
|
</description>
|
||||||
</channel>
|
</channel>
|
||||||
|
|
||||||
<xsl:for-each select="result">
|
<xsl:for-each select="result">
|
||||||
<item>
|
<item>
|
||||||
<title>
|
<title>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
||||||
</title>
|
</title>
|
||||||
<description>
|
<description>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:description" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:description" />
|
||||||
</description>
|
</description>
|
||||||
<link>
|
<link>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/@rdf:about" />
|
<xsl:value-of select="rdf:RDF/cc:Work/@rdf:about" />
|
||||||
</link>
|
</link>
|
||||||
</item>
|
</item>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
||||||
</rdf:RDF>
|
</rdf:RDF>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:output
|
<xsl:output
|
||||||
doctype-public="-//W3C//DTD XHTML 1.1//EN"
|
doctype-public="-//W3C//DTD XHTML 1.1//EN"
|
||||||
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
|
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
|
||||||
encoding="UTF-8"
|
encoding="UTF-8"
|
||||||
indent="yes"
|
indent="yes"
|
||||||
method="xml"
|
method="xml"
|
||||||
media-type="application/xhtml+xml"
|
media-type="application/xhtml+xml"
|
||||||
omit-xml-declaration="no"
|
omit-xml-declaration="no"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<xsl:include href="./xhtml/frontpage.xsl"/>
|
<xsl:include href="./xhtml/frontpage.xsl"/>
|
||||||
|
@ -27,12 +27,12 @@
|
||||||
<xsl:include href="./xhtml/advancedsearch.xsl"/>
|
<xsl:include href="./xhtml/advancedsearch.xsl"/>
|
||||||
|
|
||||||
<xsl:variable name="locale">
|
<xsl:variable name="locale">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
|
<xsl:when test="document(concat('../locale/', //@locale, '.xml'))">
|
||||||
<xsl:value-of select="//@locale" />
|
<xsl:value-of select="//@locale" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>en-us</xsl:otherwise>
|
<xsl:otherwise>en-us</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:variable name="site_strings" select="document('../site/main.xml')//strings/string" />
|
<xsl:variable name="site_strings" select="document('../site/main.xml')//strings/string" />
|
||||||
|
@ -41,397 +41,397 @@
|
||||||
<!-- this kills 99% of the processed XML... sorry Tim Bray.... -->
|
<!-- this kills 99% of the processed XML... sorry Tim Bray.... -->
|
||||||
<!-- had to look up Bray in Wikipedia, 2 points off my geek score -->
|
<!-- had to look up Bray in Wikipedia, 2 points off my geek score -->
|
||||||
<xsl:template match="@*|node()">
|
<xsl:template match="@*|node()">
|
||||||
<xsl:if test="not(/)">
|
<xsl:if test="not(/)">
|
||||||
<xsl:copy>
|
<xsl:copy>
|
||||||
<xsl:apply-templates select="@*|node()" />
|
<xsl:apply-templates select="@*|node()" />
|
||||||
</xsl:copy>
|
</xsl:copy>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="not(//@embed='true')">
|
<xsl:when test="not(//@embed='true')">
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" />
|
<link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico" />
|
||||||
<link rel="stylesheet" type="text/css">
|
<link rel="stylesheet" type="text/css">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="//@stylesheet" />
|
<xsl:value-of select="//@stylesheet" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</link>
|
</link>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="//@embed='true'">
|
<xsl:when test="//@embed='true'">
|
||||||
<!--
|
<!--
|
||||||
embedded stylesheet should rather be done through URL like
|
embedded stylesheet should rather be done through URL like
|
||||||
"http://localhost/video/4chan%20city/3/embed=true+stylesheet=embedded.css"
|
"http://localhost/video/4chan%20city/3/embed=true+stylesheet=embedded.css"
|
||||||
-->
|
-->
|
||||||
<link rel="stylesheet" type="text/css">
|
<link rel="stylesheet" type="text/css">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
/style/embedded.css
|
/style/embedded.css
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</link>
|
</link>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
<xsl:if test="boolean(//results)">
|
<xsl:if test="boolean(//results)">
|
||||||
|
|
||||||
<link rel="alternate" type="application/rss+xml">
|
<link rel="alternate" type="application/rss+xml">
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
<xsl:value-of select="$locale_strings[@id='rss_title_results_this_page']" />
|
<xsl:value-of select="$locale_strings[@id='rss_title_results_this_page']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_root']" />
|
<xsl:value-of select="$site_strings[@id='path_root']" />
|
||||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||||
<xsl:value-of select="//results/@query" />
|
<xsl:value-of select="//results/@query" />
|
||||||
&pagesize=<xsl:value-of select="//results/@pagesize" />
|
&pagesize=<xsl:value-of select="//results/@pagesize" />
|
||||||
&page=<xsl:value-of select="//results/@page" />
|
&page=<xsl:value-of select="//results/@page" />
|
||||||
&xslt=rss
|
&xslt=rss
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</link>
|
</link>
|
||||||
|
|
||||||
<link rel="alternate" type="application/rss+xml">
|
<link rel="alternate" type="application/rss+xml">
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
<xsl:value-of select="$locale_strings[@id='rss_title_results_all_pages']" />
|
<xsl:value-of select="$locale_strings[@id='rss_title_results_all_pages']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_root']" />
|
<xsl:value-of select="$site_strings[@id='path_root']" />
|
||||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||||
<xsl:value-of select="//results/@query" />
|
<xsl:value-of select="//results/@query" />
|
||||||
&pagesize=99999
|
&pagesize=99999
|
||||||
&page=1
|
&page=1
|
||||||
&xslt=rss
|
&xslt=rss
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</link>
|
</link>
|
||||||
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<link
|
<link
|
||||||
rel="search"
|
rel="search"
|
||||||
type="application/opensearchdescription+xml"
|
type="application/opensearchdescription+xml"
|
||||||
>
|
>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_root']" />?xslt=opensearch
|
<xsl:value-of select="$site_strings[@id='path_root']" />?xslt=opensearch
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="title">
|
<xsl:attribute name="title">
|
||||||
<xsl:value-of select="$site_strings[@id='site_name']" />
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</link>
|
</link>
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="boolean(//frontpage)">
|
<xsl:when test="boolean(//frontpage)">
|
||||||
<xsl:value-of select="$site_strings[@id='site_name']" />
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
||||||
-
|
-
|
||||||
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="boolean(//resultspage)">
|
<xsl:when test="boolean(//resultspage)">
|
||||||
<xsl:value-of select="$site_strings[@id='site_name']" />
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
||||||
-
|
-
|
||||||
<xsl:value-of select="$locale_strings[@id='results_for_query']" />
|
<xsl:value-of select="$locale_strings[@id='results_for_query']" />
|
||||||
"<xsl:value-of select="//resultspage/@query" />"
|
"<xsl:value-of select="//resultspage/@query" />"
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<!--
|
<!--
|
||||||
this seems to be fail
|
this seems to be fail
|
||||||
should be fixed somehow
|
should be fixed somehow
|
||||||
-->
|
-->
|
||||||
<xsl:value-of select="$site_strings[@id='site_name']" />
|
<xsl:value-of select="$site_strings[@id='site_name']" />
|
||||||
-
|
-
|
||||||
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
<xsl:value-of select="$site_strings[@id='site_motto']" />
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</title>
|
</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<xsl:if test="not(//@embed='true')">
|
<xsl:if test="not(//@embed='true')">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<a href="/">
|
<a href="/">
|
||||||
<img class="logo-header" src="/images/logo-small.png" alt="Yolanda logo top (160x25)" />
|
<img class="logo-header" src="/images/logo-small.png" alt="Yolanda logo top (160x25)" />
|
||||||
</a>
|
</a>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
|
||||||
<a class="header latest-additions">
|
<a class="header latest-additions">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_query_latestadditions']" />
|
<xsl:value-of select="$site_strings[@id='path_query_latestadditions']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
|
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="header most-views">
|
<a class="header most-views">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_query_mostviews']" />
|
<xsl:value-of select="$site_strings[@id='path_query_mostviews']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='query_mostviews']" />
|
<xsl:value-of select="$locale_strings[@id='query_mostviews']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="header most-downloads">
|
<a class="header most-downloads">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_query_mostdownloads']" />
|
<xsl:value-of select="$site_strings[@id='path_query_mostdownloads']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='query_mostdownloads']" />
|
<xsl:value-of select="$locale_strings[@id='query_mostdownloads']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="string-length(//@username)=0">
|
<xsl:when test="string-length(//@username)=0">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<a class="header">
|
<a class="header">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_login']" />
|
<xsl:value-of select="$site_strings[@id='path_login']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='header_login-to-upload']" />
|
<xsl:value-of select="$locale_strings[@id='header_login-to-upload']" />
|
||||||
</a>
|
</a>
|
||||||
-->
|
-->
|
||||||
<a class="header register">
|
<a class="header register">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_register']" />
|
<xsl:value-of select="$site_strings[@id='path_register']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='register']" />
|
<xsl:value-of select="$locale_strings[@id='register']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="header login">
|
<a class="header login">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_login']" />
|
<xsl:value-of select="$site_strings[@id='path_login']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='login']" />
|
<xsl:value-of select="$locale_strings[@id='login']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="header login-openid">
|
<a class="header login-openid">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_login-openid']" />
|
<xsl:value-of select="$site_strings[@id='path_login-openid']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<img class="openid-icon" src="/images/openid-icon.png" alt="open id logo" />
|
<img class="openid-icon" src="/images/openid-icon.png" alt="open id logo" />
|
||||||
<xsl:value-of select="$locale_strings[@id='login_openid']" />
|
<xsl:value-of select="$locale_strings[@id='login_openid']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
|
|
||||||
<a class="header upload-video">
|
<a class="header upload-video">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='header_upload-video']" />
|
<xsl:value-of select="$locale_strings[@id='header_upload-video']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="header preferences">
|
<a class="header preferences">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_settings']" />
|
<xsl:value-of select="$site_strings[@id='path_settings']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='settings_details']" />
|
<xsl:value-of select="$locale_strings[@id='settings_details']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<xsl:value-of select="$locale_strings[@id='logged_in_as']" />
|
<xsl:value-of select="$locale_strings[@id='logged_in_as']" />
|
||||||
|
|
||||||
<a class="header">
|
<a class="header">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
user/<xsl:value-of select="//@username" />
|
user/<xsl:value-of select="//@username" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="//@username" />
|
<xsl:value-of select="//@username" />
|
||||||
</a>
|
</a>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<a class="header logout">
|
<a class="header logout">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_logout']" />
|
<xsl:value-of select="$site_strings[@id='path_logout']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='logout']" />
|
<xsl:value-of select="$locale_strings[@id='logout']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<xsl:if test="//message">
|
<xsl:if test="//message">
|
||||||
<xsl:call-template name="message"/>
|
<xsl:call-template name="message"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:if test="//search">
|
<xsl:if test="//search">
|
||||||
<xsl:call-template name="searchbar"/>
|
<xsl:call-template name="searchbar"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:if test="not(//frontpage)">
|
<xsl:if test="not(//frontpage)">
|
||||||
<xsl:call-template name="logo-small"/>
|
<xsl:call-template name="logo-small"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="//frontpage">
|
<xsl:when test="//frontpage">
|
||||||
<xsl:call-template name="frontpage"/>
|
<xsl:call-template name="frontpage"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="//registerform">
|
<xsl:when test="//registerform">
|
||||||
<xsl:call-template name="registerform"/>
|
<xsl:call-template name="registerform"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="//loginform">
|
<xsl:when test="//loginform">
|
||||||
<xsl:call-template name="loginform"/>
|
<xsl:call-template name="loginform"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="//uploadform">
|
<xsl:when test="//uploadform">
|
||||||
<xsl:call-template name="uploadform"/>
|
<xsl:call-template name="uploadform"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="//search">
|
<xsl:when test="//search">
|
||||||
<xsl:call-template name="results"/>
|
<xsl:call-template name="results"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="//advancedsearch">
|
<xsl:when test="//advancedsearch">
|
||||||
<xsl:call-template name="advancedsearch"/>
|
<xsl:call-template name="advancedsearch"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="//video">
|
<xsl:when test="//video">
|
||||||
<xsl:call-template name="video"/>
|
<xsl:call-template name="video"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="//settings">
|
<xsl:when test="//settings">
|
||||||
<xsl:call-template name="settings"/>
|
<xsl:call-template name="settings"/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
<xsl:if test="not(//@embed='true')">
|
<xsl:if test="not(//@embed='true')">
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
|
|
||||||
<a class="footer view-license">
|
<a class="footer view-license">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_license']" />
|
<xsl:value-of select="$site_strings[@id='path_license']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='footer_license']" />
|
<xsl:value-of select="$locale_strings[@id='footer_license']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="footer view-source-code">
|
<a class="footer view-source-code">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_source-code']" />
|
<xsl:value-of select="$site_strings[@id='path_source-code']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='footer_source_code']" />
|
<xsl:value-of select="$locale_strings[@id='footer_source_code']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="footer report-bug">
|
<a class="footer report-bug">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_report_bug']" />
|
<xsl:value-of select="$site_strings[@id='path_report_bug']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='footer_report_bug']" />
|
<xsl:value-of select="$locale_strings[@id='footer_report_bug']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="footer view-xml">
|
<a class="footer view-xml">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<!--
|
<!--
|
||||||
caveat: this currently does not work on root level
|
caveat: this currently does not work on root level
|
||||||
apache magic wanted
|
apache magic wanted
|
||||||
-->
|
-->
|
||||||
?xslt=null
|
?xslt=null
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='footer_view_xml']" />
|
<xsl:value-of select="$locale_strings[@id='footer_view_xml']" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<br />
|
<br />
|
||||||
<xsl:value-of select="$locale_strings[@id='footer_copyright']" />
|
<xsl:value-of select="$locale_strings[@id='footer_copyright']" />
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<span class="protip">
|
<span class="protip">
|
||||||
<xsl:value-of select="$locale_strings[@id='footer_warranty']" />
|
<xsl:value-of select="$locale_strings[@id='footer_warranty']" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="logo-small">
|
<xsl:template name="logo-small">
|
||||||
|
|
||||||
<!-- <a href="/">
|
<!-- <a href="/">
|
||||||
<img class="logo-small" src="/images/logo-small.png" alt="Yolanda logo top (160x25)" />
|
<img class="logo-small" src="/images/logo-small.png" alt="Yolanda logo top (160x25)" />
|
||||||
</a>-->
|
</a>-->
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="searchbar">
|
<xsl:template name="searchbar">
|
||||||
|
|
||||||
<div class="search-small">
|
<div class="search-small">
|
||||||
<form method="get" enctype="text/plain">
|
<form method="get" enctype="text/plain">
|
||||||
<xsl:attribute name="action">
|
<xsl:attribute name="action">
|
||||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<xsl:value-of select="$locale_strings[@id='search']" />:
|
<xsl:value-of select="$locale_strings[@id='search']" />:
|
||||||
<input type="text" name="query" size="15">
|
<input type="text" name="query" size="15">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:if test="//results/@argument='query'">
|
<xsl:if test="//results/@argument='query'">
|
||||||
<xsl:value-of select="//results/@value" />
|
<xsl:value-of select="//results/@value" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="message">
|
<xsl:template name="message">
|
||||||
|
|
||||||
<div class="messagebox">
|
<div class="messagebox">
|
||||||
<xsl:attribute name="id">
|
<xsl:attribute name="id">
|
||||||
<xsl:value-of select="/page/message/@type" />
|
<xsl:value-of select="/page/message/@type" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="/page/message/@type='error'">
|
<xsl:when test="/page/message/@type='error'">
|
||||||
<img src="/images/tango/dialog-error.png" />
|
<img src="/images/tango/dialog-error.png" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="/page/message/@type='information'">
|
<xsl:when test="/page/message/@type='information'">
|
||||||
<img src="/images/tango/dialog-information.png" />
|
<img src="/images/tango/dialog-information.png" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="/page/message/@type='warning'">
|
<xsl:when test="/page/message/@type='warning'">
|
||||||
<img src="/images/tango/dialog-warning.png" />
|
<img src="/images/tango/dialog-warning.png" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
<xsl:variable name="messagetext" select="/page/message/@text" />
|
<xsl:variable name="messagetext" select="/page/message/@text" />
|
||||||
<xsl:value-of select="$locale_strings[@id=$messagetext]" />
|
<xsl:value-of select="$locale_strings[@id=$messagetext]" />
|
||||||
<xsl:value-of select="/page/message/@value" />
|
<xsl:value-of select="/page/message/@value" />
|
||||||
<!-- probably one can do this on one line, dunno how -->
|
<!-- probably one can do this on one line, dunno how -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="tagcloud">
|
<xsl:template name="tagcloud">
|
||||||
<xsl:variable name="max" select="//tagcloud/tag/count[not(//tagcloud/tag/count > .)]" />
|
<xsl:variable name="max" select="//tagcloud/tag/count[not(//tagcloud/tag/count > .)]" />
|
||||||
<xsl:variable name="min" select="//tagcloud/tag/count[not(//tagcloud/tag/count < .)]" />
|
<xsl:variable name="min" select="//tagcloud/tag/count[not(//tagcloud/tag/count < .)]" />
|
||||||
<div class="tagcloud">
|
<div class="tagcloud">
|
||||||
<xsl:for-each select="//tagcloud/tag">
|
<xsl:for-each select="//tagcloud/tag">
|
||||||
<xsl:sort select="text" order="ascending" data-type="text" />
|
<xsl:sort select="text" order="ascending" data-type="text" />
|
||||||
<a class="tag">
|
<a class="tag">
|
||||||
<xsl:attribute name="style">
|
<xsl:attribute name="style">
|
||||||
<!--
|
<!--
|
||||||
scale *should* be logarihmic, but that's not widely supportet
|
scale *should* be logarihmic, but that's not widely supportet
|
||||||
-->
|
-->
|
||||||
font-size:<xsl:value-of select="round((32-12)*(number(count)-number($min))div (number($max)-number($min)))+12" />px
|
font-size:<xsl:value-of select="round((32-12)*(number(count)-number($min))div (number($max)-number($min)))+12" />px
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||||
tag:
|
tag:
|
||||||
<xsl:value-of select="text" />
|
<xsl:value-of select="text" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
|
|
||||||
<xsl:value-of select="text" />
|
<xsl:value-of select="text" />
|
||||||
<!--
|
<!--
|
||||||
unnecessary, except for debug purposes
|
unnecessary, except for debug purposes
|
||||||
(<xsl:value-of select="count" />)
|
(<xsl:value-of select="count" />)
|
||||||
-->
|
-->
|
||||||
</a>
|
</a>
|
||||||
‌
|
‌
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:template name="advancedsearch">
|
<xsl:template name="advancedsearch">
|
||||||
|
|
|
@ -1,66 +1,66 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:template name="frontpage">
|
<xsl:template name="frontpage">
|
||||||
|
|
||||||
<img class="logo-big" src="/images/logo-big.png" alt="Yolanda logo (320x100)" />
|
<img class="logo-big" src="/images/logo-big.png" alt="Yolanda logo (320x100)" />
|
||||||
|
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<form method="get" enctype="text/plain">
|
<form method="get" enctype="text/plain">
|
||||||
<xsl:attribute name="action">
|
<xsl:attribute name="action">
|
||||||
<xsl:value-of select="$site_strings[@id='path_results']" />
|
<xsl:value-of select="$site_strings[@id='path_results']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input type="text" name="query" size="40" /><br />
|
<input type="text" name="query" size="40" /><br />
|
||||||
<input type="submit">
|
<input type="submit">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="$locale_strings[@id='button_find']" />
|
<xsl:value-of select="$locale_strings[@id='button_find']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
<input type="submit" name="lucky">
|
<input type="submit" name="lucky">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="$locale_strings[@id='button_lucky']" />
|
<xsl:value-of select="$locale_strings[@id='button_lucky']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
<input type="submit" name="advanced">
|
<input type="submit" name="advanced">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="$locale_strings[@id='button_advanced']" />
|
<xsl:value-of select="$locale_strings[@id='button_advanced']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="toplists">
|
<div class="toplists">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_query_latestadditions']" />
|
<xsl:value-of select="$site_strings[@id='path_query_latestadditions']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
|
<xsl:value-of select="$locale_strings[@id='query_latestadditions']" />
|
||||||
</a>
|
</a>
|
||||||
<xsl:value-of select="$locale_strings[@id='separator']" />
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_query_mostdownloads']" />
|
<xsl:value-of select="$site_strings[@id='path_query_mostdownloads']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='query_mostdownloads']" />
|
<xsl:value-of select="$locale_strings[@id='query_mostdownloads']" />
|
||||||
</a>
|
</a>
|
||||||
<xsl:value-of select="$locale_strings[@id='separator']" />
|
<xsl:value-of select="$locale_strings[@id='separator']" />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_query_mostviews']" />
|
<xsl:value-of select="$site_strings[@id='path_query_mostviews']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='query_mostviews']" />
|
<xsl:value-of select="$locale_strings[@id='query_mostviews']" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<xsl:call-template name="tagcloud"/>
|
<xsl:call-template name="tagcloud"/>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
@ -1,75 +1,75 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:template name="loginform">
|
<xsl:template name="loginform">
|
||||||
<div class="loginform">
|
<div class="loginform">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="//loginform/@action='openid'">
|
<xsl:when test="//loginform/@action='openid'">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<xsl:attribute name="action">
|
<xsl:attribute name="action">
|
||||||
<xsl:value-of select="$site_strings[@id='path_login']" />
|
<xsl:value-of select="$site_strings[@id='path_login']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input name="action" type="hidden" value="openid" />
|
<input name="action" type="hidden" value="openid" />
|
||||||
OpenID:
|
OpenID:
|
||||||
<br />
|
<br />
|
||||||
<input name="user" type="text" style="background: url(http://stat.livejournal.com/img/openid-inputicon.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px;" />
|
<input name="user" type="text" style="background: url(http://stat.livejournal.com/img/openid-inputicon.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px;" />
|
||||||
<br />
|
<br />
|
||||||
e.g. http://username.myopenid.com
|
e.g. http://username.myopenid.com
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" name="login" >
|
<input type="submit" name="login" >
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="$locale_strings[@id='button_login']" />
|
<xsl:value-of select="$locale_strings[@id='button_login']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
<br />
|
<br />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_login']" />
|
<xsl:value-of select="$site_strings[@id='path_login']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
login with normal account
|
login with normal account
|
||||||
</a>
|
</a>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<xsl:attribute name="action">
|
<xsl:attribute name="action">
|
||||||
<xsl:value-of select="$site_strings[@id='path_login']" />
|
<xsl:value-of select="$site_strings[@id='path_login']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<input name="action" type="hidden" value="login" />
|
<input name="action" type="hidden" value="login" />
|
||||||
<xsl:value-of select="$locale_strings[@id='username']" />:
|
<xsl:value-of select="$locale_strings[@id='username']" />:
|
||||||
<br />
|
<br />
|
||||||
<input name="user" type="text" size="30" maxlength="30" />
|
<input name="user" type="text" size="30" maxlength="30" />
|
||||||
<br />
|
<br />
|
||||||
<xsl:value-of select="$locale_strings[@id='password']" />:
|
<xsl:value-of select="$locale_strings[@id='password']" />:
|
||||||
<br />
|
<br />
|
||||||
<input name="pass" type="password" size="30" maxlength="30" />
|
<input name="pass" type="password" size="30" maxlength="30" />
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" name="login" >
|
<input type="submit" name="login" >
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="$locale_strings[@id='button_login']" />
|
<xsl:value-of select="$locale_strings[@id='button_login']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
<br />
|
<br />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="$site_strings[@id='path_login-openid']" />
|
<xsl:value-of select="$site_strings[@id='path_login-openid']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
login with openid
|
login with openid
|
||||||
</a>
|
</a>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
@ -1,41 +1,41 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:template name="registerform">
|
<xsl:template name="registerform">
|
||||||
<div class="registerform">
|
<div class="registerform">
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<xsl:attribute name="action">
|
<xsl:attribute name="action">
|
||||||
<xsl:value-of select="$site_strings[@id='path_register']" />
|
<xsl:value-of select="$site_strings[@id='path_register']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<xsl:value-of select="$locale_strings[@id='username']" />:
|
<xsl:value-of select="$locale_strings[@id='username']" />:
|
||||||
<br />
|
<br />
|
||||||
<input name="user" type="text" size="30" maxlength="30" />
|
<input name="user" type="text" size="30" maxlength="30" />
|
||||||
<br />
|
<br />
|
||||||
<xsl:value-of select="$locale_strings[@id='password']" />:
|
<xsl:value-of select="$locale_strings[@id='password']" />:
|
||||||
<br />
|
<br />
|
||||||
<input name="pass" type="password" size="30" maxlength="30" />
|
<input name="pass" type="password" size="30" maxlength="30" />
|
||||||
<br />
|
<br />
|
||||||
<xsl:value-of select="$locale_strings[@id='password_repeat']" />:
|
<xsl:value-of select="$locale_strings[@id='password_repeat']" />:
|
||||||
<br />
|
<br />
|
||||||
<input name="pass_repeat" type="password" size="30" maxlength="30" />
|
<input name="pass_repeat" type="password" size="30" maxlength="30" />
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" name="register" >
|
<input type="submit" name="register" >
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="$locale_strings[@id='button_register']" />
|
<xsl:value-of select="$locale_strings[@id='button_register']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -1,135 +1,135 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:template name="innerresults">
|
<xsl:template name="innerresults">
|
||||||
|
|
||||||
<xsl:for-each select="//results/result">
|
<xsl:for-each select="//results/result">
|
||||||
<div class="result">
|
<div class="result">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<img>
|
<img>
|
||||||
<xsl:attribute name="src">
|
<xsl:attribute name="src">
|
||||||
<xsl:value-of select="@thumbnail" />
|
<xsl:value-of select="@thumbnail" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="alt">
|
<xsl:attribute name="alt">
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</img>
|
</img>
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
<xsl:variable name="hours" select="floor(@duration div 3600)" />
|
<xsl:variable name="hours" select="floor(@duration div 3600)" />
|
||||||
<xsl:variable name="minutes" select="floor((@duration - $hours*3600) div 60)" />
|
<xsl:variable name="minutes" select="floor((@duration - $hours*3600) div 60)" />
|
||||||
<xsl:variable name="seconds" select="@duration - $minutes*60 - $hours*3600" />
|
<xsl:variable name="seconds" select="@duration - $minutes*60 - $hours*3600" />
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$hours=0">
|
<xsl:when test="$hours=0">
|
||||||
(<xsl:value-of select="concat(format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
(<xsl:value-of select="concat(format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
(<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
(<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</div>
|
</div>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template name="results">
|
<xsl:template name="results">
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<span class="heading">
|
<span class="heading">
|
||||||
<xsl:value-of select="$locale_strings[@id='results_heading_1']" /> 
|
<xsl:value-of select="$locale_strings[@id='results_heading_1']" /> 
|
||||||
<xsl:value-of select="//results/@pagesize * (//results/@currentpage - 1) + 1" /> 
|
<xsl:value-of select="//results/@pagesize * (//results/@currentpage - 1) + 1" /> 
|
||||||
<xsl:value-of select="$locale_strings[@id='results_heading_2']" /> 
|
<xsl:value-of select="$locale_strings[@id='results_heading_2']" /> 
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="(//results/@pagesize * //results/@currentpage) < //results/@resultcount">
|
<xsl:when test="(//results/@pagesize * //results/@currentpage) < //results/@resultcount">
|
||||||
<xsl:value-of select="//results/@pagesize * //results/@currentpage" />
|
<xsl:value-of select="//results/@pagesize * //results/@currentpage" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="//results/@resultcount" />
|
<xsl:value-of select="//results/@resultcount" />
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose> 
|
</xsl:choose> 
|
||||||
<xsl:value-of select="$locale_strings[@id='results_heading_3']" /> 
|
<xsl:value-of select="$locale_strings[@id='results_heading_3']" /> 
|
||||||
<xsl:value-of select="//results/@resultcount" /> 
|
<xsl:value-of select="//results/@resultcount" /> 
|
||||||
<xsl:value-of select="$locale_strings[@id='results_heading_4']" />
|
<xsl:value-of select="$locale_strings[@id='results_heading_4']" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<xsl:call-template name="innerresults"/>
|
<xsl:call-template name="innerresults"/>
|
||||||
|
|
||||||
<xsl:if test="//results/@lastpage > 1">
|
<xsl:if test="//results/@lastpage > 1">
|
||||||
<xsl:call-template name="pagination-arrows"/>
|
<xsl:call-template name="pagination-arrows"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="pagination-arrows">
|
<xsl:template name="pagination-arrows">
|
||||||
<xsl:variable name="query_string" select="concat($site_strings[@id='path_results'], //results/@query, '&pagesize=', //results/@pagesize)" />
|
<xsl:variable name="query_string" select="concat($site_strings[@id='path_results'], //results/@query, '&pagesize=', //results/@pagesize)" />
|
||||||
<div>
|
<div>
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="concat($query_string, '&page=1')" />
|
<xsl:value-of select="concat($query_string, '&page=1')" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:if test="//results/@currentpage<=1">
|
<xsl:if test="//results/@currentpage<=1">
|
||||||
<xsl:attribute name="style">
|
<xsl:attribute name="style">
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<img src="./images/tango/go-first.png" />
|
<img src="./images/tango/go-first.png" />
|
||||||
</a>
|
</a>
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage - 1)" />
|
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage - 1)" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:if test="//results/@currentpage<=1">
|
<xsl:if test="//results/@currentpage<=1">
|
||||||
<xsl:attribute name="style">
|
<xsl:attribute name="style">
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<img src="./images/tango/go-previous.png" />
|
<img src="./images/tango/go-previous.png" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="page-number">
|
<div class="page-number">
|
||||||
<xsl:value-of select="//results/@currentpage" />
|
<xsl:value-of select="//results/@currentpage" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage + 1)" />
|
<xsl:value-of select="concat($query_string, '&page=', //results/@currentpage + 1)" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:if test="//results/@lastpage<=//results/@currentpage">
|
<xsl:if test="//results/@lastpage<=//results/@currentpage">
|
||||||
<xsl:attribute name="style">
|
<xsl:attribute name="style">
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<img src="./images/tango/go-next.png" />
|
<img src="./images/tango/go-next.png" />
|
||||||
</a>
|
</a>
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="concat($query_string, '&page=', //results/@lastpage)" />
|
<xsl:value-of select="concat($query_string, '&page=', //results/@lastpage)" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:if test="//results/@lastpage<=//results/@currentpage">
|
<xsl:if test="//results/@lastpage<=//results/@currentpage">
|
||||||
<xsl:attribute name="style">
|
<xsl:attribute name="style">
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<img src="./images/tango/go-last.png" />
|
<img src="./images/tango/go-last.png" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
@ -1,89 +1,89 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:template name="settings">
|
<xsl:template name="settings">
|
||||||
|
|
||||||
<div class="settingsform">
|
<div class="settingsform">
|
||||||
|
|
||||||
<span class="heading">
|
<span class="heading">
|
||||||
<xsl:value-of select="$locale_strings[@id='settings_heading']" />
|
<xsl:value-of select="$locale_strings[@id='settings_heading']" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<xsl:attribute name="action">
|
<xsl:attribute name="action">
|
||||||
<xsl:value-of select="$site_strings[@id='path_settings']" />
|
<xsl:value-of select="$site_strings[@id='path_settings']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
|
|
||||||
<xsl:value-of select="$locale_strings[@id='settings_instruction_locale']" />
|
<xsl:value-of select="$locale_strings[@id='settings_instruction_locale']" />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<select name="locale" size="2">
|
<select name="locale" size="2">
|
||||||
|
|
||||||
<option value="en-us">
|
<option value="en-us">
|
||||||
<xsl:if test="//settings/@locale='en-us'">
|
<xsl:if test="//settings/@locale='en-us'">
|
||||||
<xsl:attribute name="selected">
|
<xsl:attribute name="selected">
|
||||||
selected
|
selected
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:value-of select="$locale_strings[@id='language_en-us']" />
|
<xsl:value-of select="$locale_strings[@id='language_en-us']" />
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
<option value="de-de">
|
<option value="de-de">
|
||||||
<xsl:if test="//settings/@locale='de-de'">
|
<xsl:if test="//settings/@locale='de-de'">
|
||||||
<xsl:attribute name="selected">
|
<xsl:attribute name="selected">
|
||||||
selected
|
selected
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:value-of select="$locale_strings[@id='language_de-de']" />
|
<xsl:value-of select="$locale_strings[@id='language_de-de']" />
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<xsl:value-of select="$locale_strings[@id='settings_instruction_pagesize']" />
|
<xsl:value-of select="$locale_strings[@id='settings_instruction_pagesize']" />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<input name="pagesize" type="text" size="7">
|
<input name="pagesize" type="text" size="7">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="//settings/@pagesize" />
|
<xsl:value-of select="//settings/@pagesize" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<xsl:value-of select="$locale_strings[@id='settings_instruction_method']" />
|
<xsl:value-of select="$locale_strings[@id='settings_instruction_method']" />
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<input type="radio" name="cortado" value="true">
|
<input type="radio" name="cortado" value="true">
|
||||||
<xsl:if test="//settings/@cortado='true'">
|
<xsl:if test="//settings/@cortado='true'">
|
||||||
<xsl:attribute name="checked">
|
<xsl:attribute name="checked">
|
||||||
checked
|
checked
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</input>
|
</input>
|
||||||
|
|
||||||
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
|
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
|
||||||
<br />
|
<br />
|
||||||
<input type="radio" name="cortado" value="false">
|
<input type="radio" name="cortado" value="false">
|
||||||
<xsl:if test="//settings/@cortado='false'">
|
<xsl:if test="//settings/@cortado='false'">
|
||||||
<xsl:attribute name="checked">
|
<xsl:attribute name="checked">
|
||||||
checked
|
checked
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</input>
|
</input>
|
||||||
|
|
||||||
<xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
|
<xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
|
||||||
<br />
|
<br />
|
||||||
<input name="submit" type="submit" />
|
<input name="submit" type="submit" />
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,409 +1,409 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:template name="video">
|
<xsl:template name="video">
|
||||||
|
|
||||||
<xsl:if test="not(//@embed='true')">
|
<xsl:if test="not(//@embed='true')">
|
||||||
<div class="videotitle">
|
<div class="videotitle">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:title" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:title" />
|
||||||
<xsl:variable name="hours" select="floor(//video/@duration div 3600)" />
|
<xsl:variable name="hours" select="floor(//video/@duration div 3600)" />
|
||||||
<xsl:variable name="minutes" select="floor((//video/@duration - $hours*3600) div 60)" />
|
<xsl:variable name="minutes" select="floor((//video/@duration - $hours*3600) div 60)" />
|
||||||
<xsl:variable name="seconds" select="//video/@duration - $minutes*60 - $hours*3600" />
|
<xsl:variable name="seconds" select="//video/@duration - $minutes*60 - $hours*3600" />
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="$hours=0">
|
<xsl:when test="$hours=0">
|
||||||
(<xsl:value-of select="concat(format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
(<xsl:value-of select="concat(format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
(<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
(<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</div>
|
</div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<div class="video">
|
<div class="video">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="//video/@cortado='true'">
|
<xsl:when test="//video/@cortado='true'">
|
||||||
<applet
|
<applet
|
||||||
code="com.fluendo.player.Cortado.class"
|
code="com.fluendo.player.Cortado.class"
|
||||||
archive="/java/cortado-ovt-stripped-0.2.2.jar"
|
archive="/java/cortado-ovt-stripped-0.2.2.jar"
|
||||||
>
|
>
|
||||||
<xsl:attribute name="width">
|
<xsl:attribute name="width">
|
||||||
<xsl:value-of select="//video/@width" />
|
<xsl:value-of select="//video/@width" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="height">
|
<xsl:attribute name="height">
|
||||||
<xsl:value-of select="//video/@height" />
|
<xsl:value-of select="//video/@height" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<param name="url">
|
<param name="url">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
|
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</param>
|
</param>
|
||||||
<param name="seekable" value="true"/>
|
<param name="seekable" value="true"/>
|
||||||
<param name="duration">
|
<param name="duration">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="//video/@duration" />
|
<xsl:value-of select="//video/@duration" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</param>
|
</param>
|
||||||
<param name="keepAspect" value="true"/>
|
<param name="keepAspect" value="true"/>
|
||||||
<param name="video" value="true"/>
|
<param name="video" value="true"/>
|
||||||
<param name="audio" value="true"/>
|
<param name="audio" value="true"/>
|
||||||
<param name="statusHeight" value="24"/>
|
<param name="statusHeight" value="24"/>
|
||||||
<param name="autoPlay" value="true"/>
|
<param name="autoPlay" value="true"/>
|
||||||
<param name="showStatus" value="show"/>
|
<param name="showStatus" value="show"/>
|
||||||
<param name="bufferSize" value="200"/>
|
<param name="bufferSize" value="200"/>
|
||||||
</applet>
|
</applet>
|
||||||
<div class="watch-browserplugin">
|
<div class="watch-browserplugin">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="//@embed='true'">
|
<xsl:when test="//@embed='true'">
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=false&embed=true')" />
|
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=false&embed=true')" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=false')" />
|
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=false')" />
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
|
<xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<object type="application/ogg">
|
<object type="application/ogg">
|
||||||
<xsl:attribute name="width">
|
<xsl:attribute name="width">
|
||||||
<xsl:value-of select="//video/@width" />
|
<xsl:value-of select="//video/@width" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="height">
|
<xsl:attribute name="height">
|
||||||
<xsl:value-of select="//video/@height + 16" />
|
<xsl:value-of select="//video/@height + 16" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:attribute name="data">
|
<xsl:attribute name="data">
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
|
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/@rdf:about,'view=true')" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<img src="/images/flash-sucks.png"/><br />
|
<img src="/images/flash-sucks.png"/><br />
|
||||||
<img src="/images/vlc.png"/>
|
<img src="/images/vlc.png"/>
|
||||||
<img src="/images/mplayer.png"/>
|
<img src="/images/mplayer.png"/>
|
||||||
</object>
|
</object>
|
||||||
<div class="watch-cortadoapplet">
|
<div class="watch-cortadoapplet">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="//@embed='true'">
|
<xsl:when test="//@embed='true'">
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=true&embed=true')" />
|
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=true&embed=true')" />
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=true')" />
|
<xsl:value-of select="concat(//video/rdf:RDF/cc:Work/dc:identifier, 'cortado=true')" />
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
|
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<xsl:if test="//@embed='true'">
|
<xsl:if test="//@embed='true'">
|
||||||
<div class="embedded-backlink">
|
<div class="embedded-backlink">
|
||||||
<a target="_blank">
|
<a target="_blank">
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:identifier" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:identifier" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='backlink']" />
|
<xsl:value-of select="$locale_strings[@id='backlink']" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:if test="not(//@embed='true')">
|
<xsl:if test="not(//@embed='true')">
|
||||||
|
|
||||||
<xsl:call-template name="videometadata"/>
|
<xsl:call-template name="videometadata"/>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div class="button-download">
|
<div class="button-download">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/@rdf:about" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/@rdf:about" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<img src="/images/tango/document-save.png" />
|
<img src="/images/tango/document-save.png" />
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/@rdf:about" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/@rdf:about" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='download_video']" />
|
<xsl:value-of select="$locale_strings[@id='download_video']" />
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
(<xsl:value-of select="format-number(number(round(//video/@filesize) div 1048576), '0.0#')" /> <xsl:value-of select="$locale_strings[@id='megabytes']" />)
|
(<xsl:value-of select="format-number(number(round(//video/@filesize) div 1048576), '0.0#')" /> <xsl:value-of select="$locale_strings[@id='megabytes']" />)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
not implemented right now
|
not implemented right now
|
||||||
|
|
||||||
<div class="button-junk">
|
<div class="button-junk">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=junk')" />
|
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=junk')" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<img src="/images/tango/mail-mark-junk.png" />
|
<img src="/images/tango/mail-mark-junk.png" />
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=junk')" />
|
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=junk')" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='junk_video']" />
|
<xsl:value-of select="$locale_strings[@id='junk_video']" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="button-edit">
|
<div class="button-edit">
|
||||||
<xsl:if test="//@edit='true'">
|
<xsl:if test="//@edit='true'">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=edit')" />
|
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=edit')" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<img src="/images/tango/accessories-text-editor.png" />
|
<img src="/images/tango/accessories-text-editor.png" />
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=edit')" />
|
<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'action=edit')" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='edit_video']" />
|
<xsl:value-of select="$locale_strings[@id='edit_video']" />
|
||||||
</a>
|
</a>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:call-template name="cclicense"/>
|
<xsl:call-template name="cclicense"/>
|
||||||
|
|
||||||
<div class="videostuff">
|
<div class="videostuff">
|
||||||
<span class="protip-embed">
|
<span class="protip-embed">
|
||||||
<xsl:value-of select="$locale_strings[@id='protip_embed']" />
|
<xsl:value-of select="$locale_strings[@id='protip_embed']" />
|
||||||
<br />
|
<br />
|
||||||
<span class="code">
|
<span class="code">
|
||||||
<object data="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'embed=true')" />"
|
<object data="<xsl:value-of select="concat(//rdf:RDF/cc:Work/dc:identifier, 'embed=true')" />"
|
||||||
type="application/xml"
|
type="application/xml"
|
||||||
width=<xsl:value-of select="//video/@width + 24" />
|
width=<xsl:value-of select="//video/@width + 24" />
|
||||||
height=<xsl:value-of select="//video/@height + 48" />
|
height=<xsl:value-of select="//video/@height + 48" />
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<xsl:call-template name="commentform"/>
|
<xsl:call-template name="commentform"/>
|
||||||
<xsl:call-template name="comments"/>
|
<xsl:call-template name="comments"/>
|
||||||
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="comments">
|
<xsl:template name="comments">
|
||||||
|
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
<xsl:for-each select="//comments/comment">
|
<xsl:for-each select="//comments/comment">
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
/user/<xsl:value-of select="@username" />
|
/user/<xsl:value-of select="@username" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="@username" />
|
<xsl:value-of select="@username" />
|
||||||
</a>:
|
</a>:
|
||||||
<br />
|
<br />
|
||||||
<xsl:value-of select="." />
|
<xsl:value-of select="." />
|
||||||
</div>
|
</div>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="commentform">
|
<xsl:template name="commentform">
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="not(//@username='')">
|
<xsl:when test="not(//@username='')">
|
||||||
<div class="commentform">
|
<div class="commentform">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<xsl:attribute name="action">
|
<xsl:attribute name="action">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:identifier" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:identifier" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<br />
|
<br />
|
||||||
<textarea name="comment" cols="30" rows="3" />
|
<textarea name="comment" cols="30" rows="3" />
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" name="send">
|
<input type="submit" name="send">
|
||||||
<xsl:attribute name="value">
|
<xsl:attribute name="value">
|
||||||
<xsl:value-of select="$locale_strings[@id='comment_post']" />
|
<xsl:value-of select="$locale_strings[@id='comment_post']" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
</input>
|
</input>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<div class="commentform">
|
<div class="commentform">
|
||||||
<span class="protip">
|
<span class="protip">
|
||||||
<xsl:value-of select="$locale_strings[@id='login_to_comment']" />
|
<xsl:value-of select="$locale_strings[@id='login_to_comment']" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="cclicense">
|
<xsl:template name="cclicense">
|
||||||
|
|
||||||
<div class="videoccdata">
|
<div class="videoccdata">
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" />
|
<xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<xsl:value-of select="$locale_strings[@id='license_conditions']" />:
|
<xsl:value-of select="$locale_strings[@id='license_conditions']" />:
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
<a>
|
<a>
|
||||||
<xsl:attribute name="href">
|
<xsl:attribute name="href">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" />
|
<xsl:value-of select="//video/rdf:RDF/cc:License/@rdf:about" />
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
<!--
|
<!--
|
||||||
unfinished bizness
|
unfinished bizness
|
||||||
<xsl:value-of select="@rdf:about" />
|
<xsl:value-of select="@rdf:about" />
|
||||||
<xsl:if test="true()">
|
<xsl:if test="true()">
|
||||||
<img src="./images/cc/somerights.png" />
|
<img src="./images/cc/somerights.png" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
-->
|
-->
|
||||||
<xsl:for-each select="//video/rdf:RDF/cc:License/cc:permits">
|
<xsl:for-each select="//video/rdf:RDF/cc:License/cc:permits">
|
||||||
<!--
|
<!--
|
||||||
since we are talking about digital media here, distribution actually /is/ reproduction
|
since we are talking about digital media here, distribution actually /is/ reproduction
|
||||||
(also, i was too stupid to figure out how to test for both conditions).
|
(also, i was too stupid to figure out how to test for both conditions).
|
||||||
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Reproduction'">
|
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Reproduction'">
|
||||||
<img src="./images/cc/cc-share.png" />
|
<img src="./images/cc/cc-share.png" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
-->
|
-->
|
||||||
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Distribution'">
|
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Distribution'">
|
||||||
<img src="./images/cc/cc-share.png" />
|
<img src="./images/cc/cc-share.png" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'">
|
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'">
|
||||||
<img src="./images/cc/cc-remix.png" />
|
<img src="./images/cc/cc-remix.png" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
<xsl:for-each select="rdf:RDF/cc:License/cc:requires">
|
<xsl:for-each select="rdf:RDF/cc:License/cc:requires">
|
||||||
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Notice'">
|
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/Notice'">
|
||||||
<img src="./images/cc/cc-by.png" />
|
<img src="./images/cc/cc-by.png" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/ShareAlike'">
|
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/ShareAlike'">
|
||||||
<img src="./images/cc/cc-sharealike.png" />
|
<img src="./images/cc/cc-sharealike.png" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<!--
|
<!--
|
||||||
source code doesn't make much sense in video context.
|
source code doesn't make much sense in video context.
|
||||||
still, this is preserved for potential future use.
|
still, this is preserved for potential future use.
|
||||||
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/SourceCode'">
|
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/SourceCode'">
|
||||||
SOURCE
|
SOURCE
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
-->
|
-->
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
<xsl:for-each select="rdf:RDF/cc:License/cc:prohibits">
|
<xsl:for-each select="rdf:RDF/cc:License/cc:prohibits">
|
||||||
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/CommercialUse'">
|
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/CommercialUse'">
|
||||||
<img src="./images/cc/cc-noncommercial.png" />
|
<img src="./images/cc/cc-noncommercial.png" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'">
|
<xsl:if test="@rdf:resource = 'http://web.resource.org/cc/DerivativeWorks'">
|
||||||
<img src="./images/cc/cc-noderivatives.png" />
|
<img src="./images/cc/cc-noderivatives.png" />
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="videometadata">
|
<xsl:template name="videometadata">
|
||||||
|
|
||||||
<div class="video-metadata">
|
<div class="video-metadata">
|
||||||
|
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:description" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:description" />
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<table class="metadata">
|
<table class="metadata">
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="metadata-title">
|
<td class="metadata-title">
|
||||||
<xsl:value-of select="$locale_strings[@id='DC.Creator']" />:
|
<xsl:value-of select="$locale_strings[@id='DC.Creator']" />:
|
||||||
</td>
|
</td>
|
||||||
<td class="metadata-content">
|
<td class="metadata-content">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:creator" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:creator" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
dc:contributor is not in upload interface
|
dc:contributor is not in upload interface
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="metadata-title">
|
<td class="metadata-title">
|
||||||
<xsl:value-of select="$locale_strings[@id='DC.Contributor']" />:
|
<xsl:value-of select="$locale_strings[@id='DC.Contributor']" />:
|
||||||
</td>
|
</td>
|
||||||
<td class="metadata-content">
|
<td class="metadata-content">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:contributor" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:contributor" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="metadata-title">
|
<td class="metadata-title">
|
||||||
<xsl:value-of select="$locale_strings[@id='DC.Coverage']" />:
|
<xsl:value-of select="$locale_strings[@id='DC.Coverage']" />:
|
||||||
</td>
|
</td>
|
||||||
<td class="metadata-content">
|
<td class="metadata-content">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:coverage" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:coverage" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="metadata-title">
|
<td class="metadata-title">
|
||||||
<xsl:value-of select="$locale_strings[@id='DC.Rights']" />:
|
<xsl:value-of select="$locale_strings[@id='DC.Rights']" />:
|
||||||
</td>
|
</td>
|
||||||
<td class="metadata-content">
|
<td class="metadata-content">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:rights" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:rights" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<table class="metadata">
|
<table class="metadata">
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="metadata-title">
|
<td class="metadata-title">
|
||||||
<xsl:value-of select="$locale_strings[@id='DC.Publisher']" />:
|
<xsl:value-of select="$locale_strings[@id='DC.Publisher']" />:
|
||||||
</td>
|
</td>
|
||||||
<td class="metadata-content">
|
<td class="metadata-content">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:publisher" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:publisher" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="metadata-title">
|
<td class="metadata-title">
|
||||||
<xsl:value-of select="$locale_strings[@id='DC.Date']" />:
|
<xsl:value-of select="$locale_strings[@id='DC.Date']" />:
|
||||||
</td>
|
</td>
|
||||||
<td class="metadata-content">
|
<td class="metadata-content">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:date" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:date" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="metadata-title">
|
<td class="metadata-title">
|
||||||
<xsl:value-of select="$locale_strings[@id='DC.Source']" />:
|
<xsl:value-of select="$locale_strings[@id='DC.Source']" />:
|
||||||
</td>
|
</td>
|
||||||
<td class="metadata-content">
|
<td class="metadata-content">
|
||||||
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:source" />
|
<xsl:value-of select="//video/rdf:RDF/cc:Work/dc:source" />
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
|
@ -1,52 +1,52 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<xsl:stylesheet version="1.0"
|
<xsl:stylesheet version="1.0"
|
||||||
xmlns="http://xspf.org/ns/0/"
|
xmlns="http://xspf.org/ns/0/"
|
||||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
xmlns:cc="http://web.resource.org/cc/"
|
xmlns:cc="http://web.resource.org/cc/"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
>
|
>
|
||||||
|
|
||||||
<xsl:output
|
<xsl:output
|
||||||
encoding="utf8"
|
encoding="utf8"
|
||||||
indent="yes"
|
indent="yes"
|
||||||
method="xml"
|
method="xml"
|
||||||
media-type="application/xml"
|
media-type="application/xml"
|
||||||
omit-xml-declaration="no"
|
omit-xml-declaration="no"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
<xsl:apply-templates />
|
<xsl:apply-templates />
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="results">
|
<xsl:template match="results">
|
||||||
|
|
||||||
<playlist version="0">
|
<playlist version="0">
|
||||||
<trackList>
|
<trackList>
|
||||||
<xsl:for-each select="result">
|
<xsl:for-each select="result">
|
||||||
<track>
|
<track>
|
||||||
<location>
|
<location>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/@rdf:about" />
|
<xsl:value-of select="rdf:RDF/cc:Work/@rdf:about" />
|
||||||
</location>
|
</location>
|
||||||
<title>
|
<title>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
|
||||||
</title>
|
</title>
|
||||||
<creator>
|
<creator>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:creator" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:creator" />
|
||||||
</creator>
|
</creator>
|
||||||
<annotation>
|
<annotation>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:description" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:description" />
|
||||||
</annotation>
|
</annotation>
|
||||||
<info>
|
<info>
|
||||||
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
|
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
|
||||||
</info>
|
</info>
|
||||||
<image>
|
<image>
|
||||||
<xsl:value-of select="thumbnail" />
|
<xsl:value-of select="thumbnail" />
|
||||||
</image>
|
</image>
|
||||||
</track>
|
</track>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</trackList>
|
</trackList>
|
||||||
</playlist>
|
</playlist>
|
||||||
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue