intermeadiary xforms upload commit, also added *stuff*
git-svn-id: http://yolanda.mister-muffin.de/svn@340 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
e6ec120e8a
commit
86aea64126
15 changed files with 361 additions and 824 deletions
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
BIN
trunk/images/tango/128x128/actions/document-send.png
Normal file
BIN
trunk/images/tango/128x128/actions/document-send.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
@ -1,5 +1,9 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns=""
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
||||
>
|
||||
|
||||
<strings>
|
||||
|
||||
|
@ -8,14 +12,14 @@
|
|||
<!-- header -->
|
||||
<string id="header_login-to-upload">to upload videos, log in first.</string>
|
||||
|
||||
<string id="register">register</string>
|
||||
<string id="login">login</string>
|
||||
<string id="register">Register</string>
|
||||
<string id="login">Login</string>
|
||||
|
||||
<string id="header_upload-video">upload video</string>
|
||||
<string id="settings_details">settings details</string>
|
||||
<string id="header_upload-video">Upload video</string>
|
||||
<string id="settings_details">Settings</string>
|
||||
|
||||
<string id="logged_in_as">logged in as </string>
|
||||
<string id="logout">logout</string>
|
||||
<string id="logout">Logout</string>
|
||||
|
||||
<!-- footer -->
|
||||
<string id="footer_copyright">© 2007 - 2008 Yolanda Team</string>
|
||||
|
@ -120,10 +124,10 @@
|
|||
<string id="timestamp">timestamp</string>
|
||||
|
||||
<!-- search bar-->
|
||||
<string id="search">search</string>
|
||||
<string id="search">Search</string>
|
||||
|
||||
<!-- login / register page -->
|
||||
<string id="username">username</string>
|
||||
<string id="username">Username</string>
|
||||
<string id="username_or_openid">Username or OpenID</string>
|
||||
<string id="password">Password</string>
|
||||
<string id="password_repeat">repeat password</string>
|
||||
|
@ -133,8 +137,8 @@
|
|||
|
||||
<!-- upload page -->
|
||||
<string id="file">file</string>
|
||||
<string id="button_next_page">continue</string>
|
||||
<string id="button_upload">upload</string>
|
||||
<string id="button_next_page">Continue</string>
|
||||
<string id="button_upload_send_file">Upload</string>
|
||||
<string id="title_page_1">Basic Information</string>
|
||||
<string id="title_page_2">Similar Videos</string>
|
||||
<string id="title_page_3">Additional Metainformation</string>
|
||||
|
@ -157,10 +161,15 @@
|
|||
<string id="instruction_rights">Specify the copyright owner of the video.</string>
|
||||
<string id="instruction_license">Specify the license, preferably by URL.</string>
|
||||
<string id="instruction_license_cc">Optionally, choose Creative Commons licensing.</string>
|
||||
<string id="instruction_license_cc_remix">Permit modification.</string>
|
||||
<string id="instruction_license_cc_sharealike">Permit modification, derivatives must use the same license.</string>
|
||||
<string id="instruction_license_cc_noderivatives">Prohibit modification.</string>
|
||||
<string id="instruction_license_cc_noncommercial">Prohibit commercial use.</string>
|
||||
<string id="instruction_license_cc_remix">Modification is <xhtml:em>allowed</xhtml:em>.</string>
|
||||
<string id="instruction_license_cc_sharealike">Modification is <xhtml:em>allowed</xhtml:em>, as long as derivatives use the same license.</string>
|
||||
<string id="instruction_license_cc_noderivatives">Modification is <xhtml:em>not allowed</xhtml:em>.</string>
|
||||
<string id="instruction_license_cc_commercial">
|
||||
Commercial use is <xhtml:em>allowed</xhtml:em>.
|
||||
</string>
|
||||
<string id="instruction_license_cc_noncommercial">
|
||||
Commercial use is <xhtml:em>not allowed</xhtml:em>.
|
||||
</string>
|
||||
<string id="this_is_page_1">This is page 1 of 5.</string>
|
||||
<string id="this_is_page_2">This is page 2 of 5.</string>
|
||||
<string id="this_is_page_3">This is page 3 of 5.</string>
|
||||
|
@ -177,8 +186,6 @@
|
|||
<!-- video page -->
|
||||
<string id="video_download">Download</string>
|
||||
<string id="video_playback">Plackback</string>
|
||||
<string id="junk_video">mark as junk</string>
|
||||
<string id="edit_video">edit</string>
|
||||
<string id="watch_browserplugin">use browser plugin</string>
|
||||
<string id="watch_cortadoapplet">use java applet</string>
|
||||
<string id="license_conditions">license conditions</string>
|
||||
|
@ -186,6 +193,62 @@
|
|||
<string id="login_to_comment">Login to comment</string>
|
||||
<string id="comment_post">Post</string>
|
||||
|
||||
<string id="video_plugin_help">
|
||||
<h1>Common Questions</h1>
|
||||
|
||||
<h2>Why Not Use Flash ?</h2>
|
||||
<p>
|
||||
Many video sharing sites use the <a href="http://www.adobe.com/de/products/flashplayer/"><em>Adobe Flash Plugin</em></a> to play embedded video.
|
||||
We disapprove of that because <em>Flash</em> is <em>proprietary</em> (not <a href="http://www.gnu.org/philosophy/free-sw.html"><em>free software</em></a>).
|
||||
</p>
|
||||
<p>
|
||||
Additionally, well-known video formats like <a href="http://en.wikipedia.org/wiki/Divx"><em>DivX</em></a> or <a href="http://en.wikipedia.org/wiki/H264"><em>H.264</em></a> are <a href="http://en.wikipedia.org/wiki/H264#Patent_licensing">patent-encumbered</a> in many countries.
|
||||
Because license fees have to be paid for usage, it might be a legal risk to include them in free software:
|
||||
<a href="http://www.gnu.org/"><em>GNU</em></a>/<a href="http://kernel.org/"><em>Linux</em></a> distributions like <a href="http://www.debian.org/"><em>Debian</em></a> or <a href="http://www.ubuntu.com/"><em>Ubuntu</em></a> do not include them in their default installation.
|
||||
</p>
|
||||
<p>
|
||||
Therefore, Yolanda uses the <a href="http://en.wikipedia.org/wiki/Ogg"><em>Ogg</em></a> container format containing the codecs <a href="http://www.theora.org/"><em>Theora</em></a> and <a href="http://www.vorbis.com/"><em>Vorbis</em></a>, which are maintained by <a href="http://www.xiph.org/"><em>Xiph.org</em></a>.
|
||||
As of 2008, <em>Ogg</em> and <em>Vorbis</em> are free of patent claims and all known patents regarding <em>Theora</em> have been donated to the public.
|
||||
</p>
|
||||
|
||||
<h2>Which Plugins Do I Have to Download ?</h2>
|
||||
<p>
|
||||
Each media player plugin that can play <em>Ogg Theora + Vorbis</em> can be used.
|
||||
While there are several plugins that qualify, this section will only focus on three of them, that are also <em>free software</em>.
|
||||
</p>
|
||||
|
||||
<h3>VLC Media Player</h3>
|
||||
<p>
|
||||
<img class="icon-mediaplayer" src="/images/vlc.png"/>
|
||||
The <em>VLC Media Player</em>, started by students of <em>École Centrale Paris</em> plays almost any video format on a wide range of platforms.
|
||||
Be sure to install the <em>Mozilla</em> plugin or you will die a horrible, agonizing death.
|
||||
</p>
|
||||
<p>
|
||||
Downloads can be found on the <a href="http://www.videolan.org/vlc/">Videolan web page</a>.
|
||||
Be sure to check your operating systems software repository before downloading untrusted binaries from questionable sources.
|
||||
</p>
|
||||
|
||||
<h3>Mplayer</h3>
|
||||
<p>
|
||||
<img class="icon-mediaplayer" src="/images/mplayer.png"/>
|
||||
<em>Mplayer</em>, the media player for <em>EXPERT PROGRAMMERS</em>, is only available for <em>real</em> operating systems.
|
||||
It does work with both <em>Mozilla</em> and <em>Konqueror</em>.
|
||||
</p>
|
||||
<p>
|
||||
Downloads can be found on the <a href="http://www.mplayerhq.hu/design7/dload.html">Mplayer web page</a>.
|
||||
Be sure to check your operating systems software repository before downloading untrusted binaries from questionable sources.
|
||||
</p>
|
||||
|
||||
<h3>Totem</h3>
|
||||
<p>
|
||||
<img class="icon-mediaplayer" src="/images/totem.png"/>
|
||||
<em>Totem</em> is the default media player in <a href="http://www.gnome.org/"><em>GNOME</em></a> and therefore only used by <em>SPIDER EXPERTS</em> like <em>Miguel de Icaza</em>.
|
||||
</p>
|
||||
<p>
|
||||
Downloads can and should not be found, go ask <em>Miguel</em> for the <em>OOXML</em> specification instead.
|
||||
</p>
|
||||
</string>
|
||||
|
||||
<!-- embedded video page-->
|
||||
<string id="backlink">backlink</string>
|
||||
|
||||
|
|
|
@ -53,31 +53,6 @@ div
|
|||
border-color: #555753;
|
||||
}
|
||||
|
||||
div.cc-license
|
||||
{
|
||||
}
|
||||
|
||||
div.cc-license img
|
||||
{
|
||||
}
|
||||
|
||||
div.loginbox
|
||||
{
|
||||
}
|
||||
|
||||
div.loginbox form
|
||||
{
|
||||
}
|
||||
|
||||
div.loginbox form fieldset
|
||||
{
|
||||
}
|
||||
|
||||
div.loginbox form fieldset input:after
|
||||
{
|
||||
content: url(../../images/openid-icon.png);
|
||||
}
|
||||
|
||||
div.messagebox
|
||||
{
|
||||
}
|
||||
|
@ -115,7 +90,13 @@ div.loginbox
|
|||
/* "Aluminium 5" */
|
||||
border-color: #555753;
|
||||
}
|
||||
|
||||
|
||||
fieldset
|
||||
{
|
||||
/* "Aluminium 5" */
|
||||
border-color: #555753;
|
||||
}
|
||||
|
||||
/* TODO: make images configureable (maybe via symlinks?) */
|
||||
li#search_custom_one
|
||||
{
|
||||
|
|
|
@ -51,15 +51,9 @@ div
|
|||
border-style: solid;
|
||||
border-width: 1px;
|
||||
margin: 0.5em;
|
||||
padding: 0.5em;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
div.button-download
|
||||
{
|
||||
/* TODO: find out /why we do this/ (see div.searchbar) ! */
|
||||
margin-top: 0em;
|
||||
}
|
||||
|
||||
div.description
|
||||
{
|
||||
/* TODO: find out /why we do this/ (see div.searchbar) ! */
|
||||
|
@ -100,12 +94,11 @@ div
|
|||
div.settingsform,
|
||||
div.uploadform
|
||||
{
|
||||
line-height: 2.5em;
|
||||
/* correct spacing to avoid overlapping with float:right elements */
|
||||
margin-right: 22em;
|
||||
}
|
||||
|
||||
div.loginbox
|
||||
#loginbox
|
||||
{
|
||||
/* TODO: find out /why we do this/ (see div.searchbar) ! */
|
||||
margin-top: 0em;
|
||||
|
@ -193,7 +186,7 @@ div#preview
|
|||
border-width: 1px;
|
||||
}
|
||||
|
||||
div.searchbar
|
||||
#searchbar
|
||||
{
|
||||
/* TODO: find out /why we do this/ !
|
||||
does float make zero top margin really necessary or is it a bug ?
|
||||
|
@ -220,19 +213,14 @@ div#preview
|
|||
{
|
||||
}
|
||||
|
||||
form
|
||||
fieldset
|
||||
{
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
margin: 0.5em;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
form fieldset
|
||||
{
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
form fieldset input[type="text"]
|
||||
{
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
font-weight: normal;
|
||||
|
@ -256,11 +244,14 @@ li
|
|||
{
|
||||
}
|
||||
|
||||
input
|
||||
input,
|
||||
textarea
|
||||
{
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
|
||||
img
|
||||
{
|
||||
border-width: 0px
|
||||
|
@ -309,6 +300,11 @@ span
|
|||
content: "( ";
|
||||
}
|
||||
|
||||
table
|
||||
{
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
ul#header
|
||||
{
|
||||
/* don't overlapt with the site logo */
|
||||
|
|
|
@ -44,7 +44,7 @@ div
|
|||
{
|
||||
clear: right;
|
||||
float: right;
|
||||
width: 20em;
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
div.cc-license img
|
||||
|
@ -59,14 +59,14 @@ div
|
|||
{
|
||||
clear: right;
|
||||
float: right;
|
||||
width: 20em;
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
div.loginbox
|
||||
#loginbox
|
||||
{
|
||||
clear: right;
|
||||
float: right;
|
||||
width: 20em;
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
div.messagebox
|
||||
|
@ -82,7 +82,7 @@ div
|
|||
{
|
||||
clear: right;
|
||||
float: right;
|
||||
width: 20em;
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
div.page-number
|
||||
|
@ -157,10 +157,10 @@ div
|
|||
margin-right: -34px;
|
||||
}
|
||||
|
||||
div.searchbar
|
||||
#searchbar
|
||||
{
|
||||
float: right;
|
||||
width: 20em;
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
div.splashbox
|
||||
|
@ -171,7 +171,7 @@ div
|
|||
{
|
||||
clear: right;
|
||||
float: right;
|
||||
width: 20em;
|
||||
width: 18em;
|
||||
}
|
||||
|
||||
div.video
|
||||
|
@ -204,9 +204,11 @@ form
|
|||
{
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
}
|
||||
form fieldset button[name="upload"]
|
||||
{
|
||||
width: 15em;
|
||||
height: 15em;
|
||||
}
|
||||
|
||||
img
|
||||
{
|
||||
|
@ -215,6 +217,7 @@ img
|
|||
img#logo
|
||||
{
|
||||
float: left;
|
||||
height: 3em;
|
||||
}
|
||||
|
||||
img.icon-mediaplayer
|
||||
|
|
|
@ -30,25 +30,28 @@ sub getElementDC
|
|||
return $node;
|
||||
}
|
||||
|
||||
$video->appendChild( getElementDC( "abstract", "xsd:string") );
|
||||
$video->appendChild( getElementDC( "title", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "alternative", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "abstract", "xsd:string") );
|
||||
$video->appendChild( getElementDC( "spatial", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "subject", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "temporal", "xsd:date") );
|
||||
$video->appendChild( getElementDC( "language", "xsd:language") );
|
||||
|
||||
$video->appendChild( getElementDC( "creator", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "contributor", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "created", "xsd:date") );
|
||||
$video->appendChild( getElementDC( "creator", "xsd:normalizedString") );
|
||||
|
||||
$video->appendChild( getElementDC( "hasFormat", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "hasPart", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "isFormatOf", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "isPartOf", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "language", "xsd:language") );
|
||||
$video->appendChild( getElementDC( "license", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "references", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "replaces", "xsd:normalizedString") );
|
||||
|
||||
$video->appendChild( getElementDC( "rightsHolder", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "source", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "spatial", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "subject", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "temporal", "xsd:date") );
|
||||
$video->appendChild( getElementDC( "title", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "license", "xsd:normalizedString") );
|
||||
$video->appendChild( getElementDC( "data", "xsd:base64Binary") );
|
||||
|
||||
$instance->appendChild($video);
|
||||
|
|
|
@ -9,48 +9,48 @@
|
|||
|
||||
<xsl:template name="loginbox">
|
||||
|
||||
<div class="loginbox">
|
||||
<form method="post">
|
||||
|
||||
<form method="post">
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_login']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_login']" />
|
||||
</xsl:attribute>
|
||||
<fieldset id="loginbox">
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
<xsl:value-of select="$lang_strings[@id='login']" />
|
||||
</legend>
|
||||
|
||||
<label for="user">
|
||||
<xsl:value-of select="$lang_strings[@id='username_or_openid']" />:
|
||||
</label>
|
||||
<br />
|
||||
<input id="username" name="user" onkeyup="check_openid();" type="text" />
|
||||
<br />
|
||||
<label for="user">
|
||||
<xsl:value-of select="$lang_strings[@id='username_or_openid']" />:
|
||||
</label>
|
||||
<br />
|
||||
<input id="username" name="user" onkeyup="check_openid();" type="text" />
|
||||
<br />
|
||||
|
||||
<label for="pass">
|
||||
<xsl:value-of select="$lang_strings[@id='password']" />:
|
||||
</label>
|
||||
<br />
|
||||
<input id="password" name="pass" type="password" />
|
||||
<label for="pass">
|
||||
<xsl:value-of select="$lang_strings[@id='password']" />:
|
||||
</label>
|
||||
<br />
|
||||
<input id="password" name="pass" type="password" />
|
||||
|
||||
<input type="submit" name="login" >
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_login']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<input type="submit" name="login" >
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_login']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
<!--
|
||||
this looks awfully ugly, but nevertheless generates javascript inside _valid_ XHTML
|
||||
kudos to toby white who details the solution on http://scispace.net/tow21/weblog/718.html
|
||||
-->
|
||||
|
||||
|
||||
<xsl:text disable-output-escaping="yes"><![CDATA[
|
||||
<![CDATA[
|
||||
|
||||
|
|
|
@ -9,63 +9,11 @@
|
|||
|
||||
<xsl:template name="pluginhelp">
|
||||
|
||||
<div class="pluginhelp" style="margin-right:22em;">
|
||||
<fieldset class="pluginhelp">
|
||||
|
||||
<h1>Common Questions</h1>
|
||||
<xsl:copy-of select="$lang_strings[@id='video_plugin_help']/node()" />
|
||||
|
||||
<h2>Why Not Use Flash ?</h2>
|
||||
<p>
|
||||
Many video sharing sites use the <a href="http://www.adobe.com/de/products/flashplayer/"><em>Adobe Flash Plugin</em></a> to play embedded video.
|
||||
We disapprove of that because <em>Flash</em> is <em>proprietary</em> (not <a href="http://www.gnu.org/philosophy/free-sw.html"><em>free software</em></a>).
|
||||
</p>
|
||||
<p>
|
||||
Additionally, well-known video formats like <a href="http://en.wikipedia.org/wiki/Divx"><em>DivX</em></a> or <a href="http://en.wikipedia.org/wiki/H264"><em>H.264</em></a> are <a href="http://en.wikipedia.org/wiki/H264#Patent_licensing">patent-encumbered</a> in many countries.
|
||||
Because license fees have to be paid for usage, it might be a legal risk to include them in free software:
|
||||
<a href="http://www.gnu.org/"><em>GNU</em></a>/<a href="http://kernel.org/"><em>Linux</em></a> distributions like <a href="http://www.debian.org/"><em>Debian</em></a> or <a href="http://www.ubuntu.com/"><em>Ubuntu</em></a> do not include them in their default installation.
|
||||
</p>
|
||||
<p>
|
||||
Therefore, Yolanda uses the <a href="http://en.wikipedia.org/wiki/Ogg"><em>Ogg</em></a> container format containing the codecs <a href="http://www.theora.org/"><em>Theora</em></a> and <a href="http://www.vorbis.com/"><em>Vorbis</em></a>, which are maintained by <a href="http://www.xiph.org/"><em>Xiph.org</em></a>.
|
||||
As of 2008, <em>Ogg</em> and <em>Vorbis</em> are free of patent claims and all known patents regarding <em>Theora</em> have been donated to the public.
|
||||
</p>
|
||||
|
||||
<h2>Which Plugins Do I Have to Download ?</h2>
|
||||
<p>
|
||||
Each media player plugin that can play <em>Ogg Theora + Vorbis</em> can be used.
|
||||
While there are several plugins that qualify, this section will only focus on three of them, that are also <em>free software</em>.
|
||||
</p>
|
||||
|
||||
<h3>VLC Media Player</h3>
|
||||
<p>
|
||||
<img class="icon-mediaplayer" src="/images/vlc.png"/>
|
||||
The <em>VLC Media Player</em>, started by students of <em>École Centrale Paris</em> plays almost any video format on a wide range of platforms.
|
||||
Be sure to install the <em>Mozilla</em> plugin or you will die a horrible, agonizing death.
|
||||
</p>
|
||||
<p>
|
||||
Downloads can be found on the <a href="http://www.videolan.org/vlc/">Videolan web page</a>.
|
||||
Be sure to check your operating systems software repository before downloading untrusted binaries from questionable sources.
|
||||
</p>
|
||||
|
||||
<h3>Mplayer</h3>
|
||||
<p>
|
||||
<img class="icon-mediaplayer" src="/images/mplayer.png"/>
|
||||
<em>Mplayer</em>, the media player for <em>EXPERT PROGRAMMERS</em>, is only available for <em>real</em> operating systems.
|
||||
It does work with both <em>Mozilla</em> and <em>Konqueror</em>.
|
||||
</p>
|
||||
<p>
|
||||
Downloads can be found on the <a href="http://www.mplayerhq.hu/design7/dload.html">Mplayer web page</a>.
|
||||
Be sure to check your operating systems software repository before downloading untrusted binaries from questionable sources.
|
||||
</p>
|
||||
|
||||
<h3>Totem</h3>
|
||||
<p>
|
||||
<img class="icon-mediaplayer" src="/images/totem.png"/>
|
||||
<em>Totem</em> is the default media player in <a href="http://www.gnome.org/"><em>GNOME</em></a> and therefore only used by <em>SPIDER EXPERTS</em> like <em>Miguel de Icaza</em>.
|
||||
</p>
|
||||
<p>
|
||||
Downloads can and should not be found, go ask <em>Miguel</em> for the <em>OOXML</em> specification instead.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
|
|
@ -9,63 +9,64 @@
|
|||
|
||||
<xsl:template name="searchbar">
|
||||
|
||||
<div class="searchbar">
|
||||
<form method="get" enctype="application/x-www-form-urlencoded">
|
||||
|
||||
<form method="get" enctype="application/x-www-form-urlencoded">
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_search']" />
|
||||
</xsl:attribute>
|
||||
<fieldset>
|
||||
<label for="query">
|
||||
<xsl:value-of select="$lang_strings[@id='search']" />:<br />
|
||||
</label>
|
||||
<input type="text" name="query">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:if test="//results/@argument='query'">
|
||||
<xsl:value-of select="//results/@value" />
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<input type="submit">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_find']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
</fieldset>
|
||||
</form>
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_search']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<ul id="queries" role="navigation">
|
||||
<fieldset id="searchbar">
|
||||
|
||||
<li id="search_custom_one">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_custom_one']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$lang_strings[@id='search_custom_one']" />
|
||||
</a>
|
||||
</li>
|
||||
<legend>
|
||||
<xsl:value-of select="$lang_strings[@id='search']" />
|
||||
</legend>
|
||||
|
||||
<li id="search_custom_two">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_custom_two']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$lang_strings[@id='search_custom_two']" />
|
||||
</a>
|
||||
</li>
|
||||
<input type="text" name="query">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:if test="//results/@argument='query'">
|
||||
<xsl:value-of select="//results/@value" />
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<input type="submit">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_find']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
|
||||
<li id="search_custom_three">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_custom_three']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$lang_strings[@id='search_custom_three']" />
|
||||
</a>
|
||||
</li>
|
||||
<ul id="queries" role="navigation">
|
||||
|
||||
</ul>
|
||||
<li id="search_custom_one">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_custom_one']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$lang_strings[@id='search_custom_one']" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</div>
|
||||
<li id="search_custom_two">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_custom_two']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$lang_strings[@id='search_custom_two']" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li id="search_custom_three">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_query_custom_three']" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$lang_strings[@id='search_custom_three']" />
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
|
|
@ -10,633 +10,172 @@
|
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
>
|
||||
<xsl:template name="uploadform">
|
||||
<div class="uploadform">
|
||||
|
||||
<form method="post">
|
||||
<xsl:for-each select="/page/xforms:instance/*/*">
|
||||
<form method="post">
|
||||
|
||||
<label>
|
||||
<xsl:attribute name="for">
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</label>
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<br />
|
||||
<fieldset>
|
||||
<table>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:for-each select="/page/xforms:instance/*/*">
|
||||
|
||||
<xsl:when test="@xsi:type='xsd:base64Binary'">
|
||||
<input type="file">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="local-name()"/>
|
||||
<tr>
|
||||
<td>
|
||||
<label>
|
||||
<xsl:attribute name="for">
|
||||
<xsl:value-of select="name()"/>
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
</xsl:when>
|
||||
<xsl:value-of select="name()"/>
|
||||
</label>
|
||||
</td>
|
||||
|
||||
<xsl:when test="@xsi:type='xsd:normalizedString'">
|
||||
<input type="text">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
</xsl:when>
|
||||
<td>
|
||||
<xsl:choose>
|
||||
|
||||
<xsl:when test="@xsi:type='xsd:string'">
|
||||
<textarea>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</xsl:attribute>
|
||||
</textarea>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="@xsi:type='xsd:date'">
|
||||
<select>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</xsl:attribute>
|
||||
<option>
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1</xsl:with-param>
|
||||
<xsl:with-param name="end">31</xsl:with-param>
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
<select>
|
||||
<option>
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1</xsl:with-param>
|
||||
<xsl:with-param name="end">12</xsl:with-param>
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
<select>
|
||||
<option>
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1890</xsl:with-param>
|
||||
<xsl:with-param name="end">2008</xsl:with-param>
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="@xsi:type='xsd:language'">
|
||||
<select>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</xsl:attribute>
|
||||
<option>
|
||||
<xsl:value-of select="local-name()"/>
|
||||
</option>
|
||||
|
||||
<xsl:variable name="language" select="//@locale" />
|
||||
|
||||
<xsl:for-each select="$language_strings">
|
||||
|
||||
<option>
|
||||
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="short" />
|
||||
<xsl:when test="@xsi:type='xsd:base64Binary'">
|
||||
<input type="file">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="name()"/>
|
||||
</xsl:attribute>
|
||||
<!--
|
||||
<xsl:if test="$short=$language">
|
||||
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||
</xsl:if>
|
||||
-->
|
||||
<xsl:value-of select="name[@lang='en']" /><!-- language hardcoded to en - this will be solved through simple if/else -->
|
||||
<xsl:value-of select="name[@lang=$language]" />
|
||||
<xsl:value-of select="$language" /><!-- debug debug debug -->
|
||||
</option>
|
||||
</input>
|
||||
</xsl:when>
|
||||
|
||||
</xsl:for-each>
|
||||
<xsl:when test="@xsi:type='xsd:normalizedString'">
|
||||
<input type="text">
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="name()"/>
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
</xsl:when>
|
||||
|
||||
</select>
|
||||
</xsl:when>
|
||||
<xsl:when test="@xsi:type='xsd:string'">
|
||||
<textarea>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="name()"/>
|
||||
</xsl:attribute>
|
||||
</textarea>
|
||||
</xsl:when>
|
||||
|
||||
</xsl:choose>
|
||||
<xsl:when test="@xsi:type='xsd:date'">
|
||||
<select>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="name()"/>
|
||||
</xsl:attribute>
|
||||
<option>
|
||||
<xsl:value-of select="$lang_strings[@id='unit_day']"/>
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1</xsl:with-param>
|
||||
<xsl:with-param name="end">31</xsl:with-param>
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
<select>
|
||||
<option>
|
||||
<xsl:value-of select="$lang_strings[@id='unit_month']"/>
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1</xsl:with-param>
|
||||
<xsl:with-param name="end">12</xsl:with-param>
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
<select>
|
||||
<option>
|
||||
<xsl:value-of select="$lang_strings[@id='unit_year']"/>
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1890</xsl:with-param>
|
||||
<xsl:with-param name="end">2008</xsl:with-param>
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
</xsl:when>
|
||||
|
||||
<br />
|
||||
<xsl:when test="@xsi:type='xsd:language'">
|
||||
<select>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="name()"/>
|
||||
</xsl:attribute>
|
||||
<option>
|
||||
<xsl:value-of select="name()"/>
|
||||
</option>
|
||||
|
||||
</xsl:for-each>
|
||||
<xsl:variable name="language" select="//@locale" />
|
||||
|
||||
<button type="submit" name="submit">
|
||||
<xsl:for-each select="$language_strings">
|
||||
|
||||
<option>
|
||||
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="short" />
|
||||
</xsl:attribute>
|
||||
<!--
|
||||
<xsl:if test="$short=$language">
|
||||
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||
</xsl:if>
|
||||
-->
|
||||
<xsl:value-of select="name[@lang='en']" /><!-- language hardcoded to en - this will be solved through simple if/else -->
|
||||
<xsl:value-of select="name[@lang=$language]" />
|
||||
<xsl:value-of select="$language" /><!-- debug debug debug -->
|
||||
</option>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
</select>
|
||||
</xsl:when>
|
||||
|
||||
</xsl:choose>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<input type="radio" name="modification" value="remix" />
|
||||
<xsl:copy-of select="$lang_strings[@id='instruction_license_cc_remix']/node()" />
|
||||
<br />
|
||||
<input type="radio" name="modification" value="sharealike" />
|
||||
<xsl:copy-of select="$lang_strings[@id='instruction_license_cc_sharealike']/node()" />
|
||||
<br />
|
||||
<input type="radio" name="modification" value="noderivatives" />
|
||||
<xsl:copy-of select="$lang_strings[@id='instruction_license_cc_noderivatives']/node()" />
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
allow commercial use ?
|
||||
</legend>
|
||||
<input type="radio" name="commercial" value="true" />
|
||||
<xsl:copy-of select="$lang_strings[@id='instruction_license_cc_commercial']/node()" />
|
||||
<br />
|
||||
<input type="radio" name="commercial" value="false" />
|
||||
<xsl:copy-of select="$lang_strings[@id='instruction_license_cc_noncommercial']/node()" />
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
|
||||
<button name="upload" type="submit">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||
</xsl:attribute>
|
||||
<img src="/images/tango/32x32/actions/go-next.png">
|
||||
<img src="/images/tango/128x128/actions/document-send.png">
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||
<xsl:value-of select="$lang_strings[@id='button_upload_send_file']" />
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</button>
|
||||
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
<!--
|
||||
information below this line won't match anything anytime soon.
|
||||
this code will be removed in furute revisions but is kept for reference reasons.
|
||||
-->
|
||||
|
||||
<xsl:choose>
|
||||
|
||||
<xsl:when test="//uploadform/@page=1">
|
||||
|
||||
<h1>
|
||||
<xsl:value-of select="$lang_strings[@id='title_page_1']" />
|
||||
</h1>
|
||||
<br />
|
||||
|
||||
<span class="instruction">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_page_1']" />
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<form method="post">
|
||||
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<fieldset>
|
||||
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_title']" />
|
||||
<br />
|
||||
|
||||
<input name="DC.Title" type="text">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="//uploadform/@DC.Title" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_subject']" />
|
||||
<br />
|
||||
|
||||
<input name="DC.Subject" type="text">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="//uploadform/@DC.Subject" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_description']" />
|
||||
<br />
|
||||
|
||||
<textarea name="DC.Description">
|
||||
<xsl:value-of select="//uploadform/@DC.Description" />
|
||||
</textarea>
|
||||
<br />
|
||||
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_coverage']" />
|
||||
<br />
|
||||
|
||||
<select name="DC.Coverage.day"><!-- DC.Coverage.day is NOT an official qualifier -->
|
||||
<option>
|
||||
<xsl:value-of select="$lang_strings[@id='unit_day']" />
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1</xsl:with-param>
|
||||
<xsl:with-param name="end">32</xsl:with-param>
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
|
||||
<select name="DC.Coverage.month"><!-- DC.Coverage.month is NOT an official qualifier -->
|
||||
<option>
|
||||
<xsl:value-of select="$lang_strings[@id='unit_month']" />
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1</xsl:with-param>
|
||||
<xsl:with-param name="end">12</xsl:with-param>
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
|
||||
<select name="DC.Coverage.year"><!-- DC.Coverage.year is NOT an official qualifier -->
|
||||
<option>
|
||||
<xsl:value-of select="$lang_strings[@id='unit_year']" />
|
||||
</option>
|
||||
<xsl:call-template name="for-loop">
|
||||
<xsl:with-param name="start">1890</xsl:with-param><!-- Monkeyshines, No. 1 -->
|
||||
<xsl:with-param name="end">2008</xsl:with-param><!-- present day, present time -->
|
||||
<xsl:with-param name="element">option</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</select>
|
||||
<br />
|
||||
|
||||
<input name="DC.Coverage.placeName" type="text" size="30">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="//uploadform/@DC.Coverage.placeName" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_language']" />
|
||||
<br />
|
||||
|
||||
<!-- one cannot access DC.Language from inside the for-each... -->
|
||||
<xsl:variable name="language" select="//@locale" />
|
||||
<!--
|
||||
<xsl:variable name="language" select="//uploadform/@DC.Language" />
|
||||
<option>
|
||||
<xsl:if test="not($language)">
|
||||
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="value"></xsl:attribute>
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_language_choose']" />
|
||||
</option>
|
||||
-->
|
||||
<select name="DC.Language" size="1">
|
||||
|
||||
<xsl:for-each select="$language_strings">
|
||||
|
||||
<option>
|
||||
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="short" />
|
||||
</xsl:attribute>
|
||||
<!--
|
||||
<xsl:if test="$short=$language">
|
||||
<xsl:attribute name="selected">selected</xsl:attribute>
|
||||
</xsl:if>
|
||||
-->
|
||||
<xsl:value-of select="name[@lang='en']" /><!-- language hardcoded to en - this will be solved through simple if/else -->
|
||||
<xsl:value-of select="name[@lang=$language]" />
|
||||
<xsl:value-of select="$language" /><!-- debug debug debug -->
|
||||
</option>
|
||||
|
||||
</xsl:for-each>
|
||||
|
||||
</select>
|
||||
<br />
|
||||
|
||||
<button type="submit" name="2">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||
</xsl:attribute>
|
||||
<img src="/images/tango/32x32/actions/go-next.png">
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</button>
|
||||
<br />
|
||||
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='this_is_page_1']" />
|
||||
</span>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</xsl:when>
|
||||
|
||||
|
||||
<!--
|
||||
visual blockade between section that is being worked on (↑↑) and those that isn't (↓↓)
|
||||
-->
|
||||
|
||||
<xsl:when test="//uploadform/@page=2">
|
||||
|
||||
<span class="heading">
|
||||
<xsl:value-of select="$lang_strings[@id='title_page_2']" />
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<span class="instruction">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_page_2']" />
|
||||
</span>
|
||||
|
||||
<form method="post">
|
||||
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<fieldset>
|
||||
|
||||
<input type="submit" name="3">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='this_is_page_2']" />
|
||||
</span>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<xsl:call-template name="results-listing"/>
|
||||
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="//uploadform/@page=3">
|
||||
|
||||
<span class="heading">
|
||||
<xsl:value-of select="$lang_strings[@id='title_page_3']" />
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<span class="instruction">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_page_3']" />
|
||||
</span>
|
||||
|
||||
<form method="post">
|
||||
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<fieldset>
|
||||
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_creator']" />
|
||||
<br />
|
||||
|
||||
<input name="DC.Creator" type="text" size="30">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="//uploadform/@DC.Creator" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_source']" />
|
||||
<br />
|
||||
|
||||
<input name="DC.Source" type="text" size="30">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="//uploadform/@DC.Source" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
|
||||
<input type="submit" name="4">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='this_is_page_3']" />
|
||||
</span>
|
||||
</fieldset>
|
||||
</form>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="//uploadform/@page=4">
|
||||
<span class="heading">
|
||||
<xsl:value-of select="$lang_strings[@id='title_page_4']" />
|
||||
</span>
|
||||
<br />
|
||||
<span class="instruction">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_page_4']" />
|
||||
</span>
|
||||
<form method="post">
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<fieldset>
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_rights']" />
|
||||
<br />
|
||||
<input name="DC.Rights" type="text" size="30">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="//uploadform/@DC.Rights" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_license']" />
|
||||
<br />
|
||||
<input name="DC.License" type="text" size="30">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="//uploadform/@DC.License" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_license_cc']" />
|
||||
<br />
|
||||
|
||||
<div class="cc-license-chooser">
|
||||
|
||||
<img src="./images/cc/cc-remix.png" />
|
||||
<input type="radio" name="modification" value="remix">
|
||||
<xsl:if test="//uploadform/@remix='true'">
|
||||
<xsl:attribute name="checked">
|
||||
checked
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</input>
|
||||
<br />
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_license_cc_remix']" />
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<img src="./images/cc/cc-sharealike.png" />
|
||||
<input type="radio" name="modification" value="sharealike">
|
||||
<xsl:if test="//uploadform/@sharealike='true'">
|
||||
<xsl:attribute name="checked">
|
||||
checked
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</input>
|
||||
<br />
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_license_cc_sharealike']" />
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<img src="./images/cc/cc-noderivatives.png" />
|
||||
<input type="radio" name="modification" value="noderivatives">
|
||||
<xsl:if test="//uploadform/@noderivatives='true'">
|
||||
<xsl:attribute name="checked">
|
||||
checked
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</input>
|
||||
<br />
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_license_cc_noderivatives']" />
|
||||
</span>
|
||||
<br />
|
||||
|
||||
<img src="./images/cc/cc-noncommercial.png" />
|
||||
<input type="checkbox" name="noncommercial" value="CommercialUse">
|
||||
<xsl:if test="//uploadform/@noncommercial='true'">
|
||||
<xsl:attribute name="checked">
|
||||
checked
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</input>
|
||||
<br />
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_license_cc_noncommercial']" />
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<input type="submit" name="5">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_next_page']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='this_is_page_4']" />
|
||||
</span>
|
||||
</fieldset>
|
||||
</form>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="//uploadform/@page=5">
|
||||
<span class="heading">
|
||||
<xsl:value-of select="$lang_strings[@id='title_page_5']" />
|
||||
</span>
|
||||
<br />
|
||||
<span class="instruction">
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_page_5']" />
|
||||
</span>
|
||||
<form method="post">
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_upload']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<fieldset>
|
||||
|
||||
<table class="metadata-upload">
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.Title']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.Title" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.Subject']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.Subject" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.Description']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.Description" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="1">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_page_1']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
|
||||
<table class="metadata-upload">
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.Creator']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.Creator" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.Source']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.Source" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.Language']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.Language" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.Coverage']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.Coverage" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="3">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_page_3']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
|
||||
<table class="metadata-upload">
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.Rights']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.Rights" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="metadata-title">
|
||||
<xsl:value-of select="$lang_strings[@id='DC.License']" />:
|
||||
</td>
|
||||
<td class="metadata-content">
|
||||
<xsl:value-of select="//uploadform/@DC.License" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="4">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_page_4']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<xsl:attribute name="action">
|
||||
<xsl:value-of select="$site_strings[@id='path_uploader']" />
|
||||
</xsl:attribute>
|
||||
|
||||
<fieldset>
|
||||
<xsl:value-of select="$lang_strings[@id='instruction_file']" />
|
||||
<br />
|
||||
<input name="file" type="file" size="13" />
|
||||
<br />
|
||||
<input type="submit">
|
||||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='button_upload']" />
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
<br />
|
||||
<span class="protip">
|
||||
<xsl:value-of select="$lang_strings[@id='this_is_page_5']" />
|
||||
</span>
|
||||
</fieldset>
|
||||
</form>
|
||||
</xsl:when>
|
||||
|
||||
</xsl:choose>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
|
|
@ -400,7 +400,7 @@
|
|||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='video_playback']" />
|
||||
</xsl:attribute>
|
||||
<img src="/images/tango/128x128/player_play.png">
|
||||
<img src="/images/tango/128x128/actions/player_play.png">
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="$lang_strings[@id='video_playback']" />
|
||||
</xsl:attribute>
|
||||
|
@ -413,7 +413,7 @@
|
|||
<xsl:attribute name="value">
|
||||
<xsl:value-of select="$lang_strings[@id='video_download']" />
|
||||
</xsl:attribute>
|
||||
<img src="/images/tango/128x128/document-save.png">
|
||||
<img src="/images/tango/128x128/actions/document-save.png">
|
||||
<xsl:attribute name="alt">
|
||||
<xsl:value-of select="$lang_strings[@id='video_download']" />
|
||||
</xsl:attribute>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<body>
|
||||
|
||||
<xsl:if test="//video">
|
||||
<xsl:if test="/page/video">
|
||||
<xsl:attribute name="onload">
|
||||
hide_movie()
|
||||
</xsl:attribute>
|
||||
|
|
|
@ -39,9 +39,12 @@
|
|||
<xsl:value-of select="$site_strings[@id='site_name']" />
|
||||
</xsl:attribute>
|
||||
</link>
|
||||
|
||||
<!-- TODO: get server root from config file-->
|
||||
<link rel="pingback" href="http://localhost/pingback.pl" />
|
||||
|
||||
<link rel="pingback">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="$site_strings[@id='path_root']" />pingback.pl
|
||||
</xsl:attribute>
|
||||
</link>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="//frontpage">
|
||||
|
@ -54,7 +57,7 @@
|
|||
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="//page/video">
|
||||
<xsl:when test="/page/video">
|
||||
|
||||
<title>
|
||||
<xsl:value-of select="$site_strings[@id='site_name']" />
|
||||
|
@ -64,7 +67,7 @@
|
|||
|
||||
</xsl:when>
|
||||
|
||||
<xsl:when test="//page//results">
|
||||
<xsl:when test="/page/results">
|
||||
|
||||
<link
|
||||
rel="alternate"
|
||||
|
|
Loading…
Reference in a new issue