conflict solved (i hope so)

git-svn-id: http://yolanda.mister-muffin.de/svn@199 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2007-12-15 22:00:14 +00:00
parent 226495b893
commit ee111baa67
3 changed files with 98 additions and 93 deletions

View file

View file

@ -68,16 +68,26 @@
<!-- results page--> <!-- results page-->
<string id="results_for_query">results for query</string> <string id="results_for_query">results for query</string>
<string id="ordered_by">ordered by </string> <string id="ordered_by">ordered by</string>
<string id="ascending"> ascending</string> <string id="ascending">ascending</string>
<string id="descending"> descending</string> <string id="descending">descending</string>
<string id="videos_oldest">oldest first</string>
<string id="videos_newest">most recent first</string>
<string id="videos_downloaded_least">least downloaded first</string>
<string id="videos_downloaded_most">most downloaded first</string>
<string id="videos_viewed_least">least viewed first</string>
<string id="videos_viewed_most">most viewed first</string>
<string id="videos_shortest">shortest first</string>
<string id="videos_lengthest">lenghtest first</string>
<string id="videos_smallest">smallest first</string>
<string id="videos_biggest">biggest first</string>
<string id="results_on">results on</string> <string id="results_on">results on</string>
<string id="pages">pages</string> <string id="pages">pages</string>
<string id="relevance">relevance</string> <string id="relevance">relevance</string>
<string id="duration">duration</string> <string id="duration">duration</string>
<string id="filesize">filesize</string> <string id="filesize">filesize</string>
<string id="viewcount">viewcount</string> <string id="viewcount">views</string>
<string id="downloadcount">downloadcount</string> <string id="downloadcount">downloads</string>
<string id="timestamp">timestamp</string> <string id="timestamp">timestamp</string>
<!-- search bar--> <!-- search bar-->

View file

@ -9,84 +9,77 @@
<xsl:template name="innerresults"> <xsl:template name="innerresults">
<table class="results"> <xsl:for-each select="//results/result">
<xsl:for-each select="//results/result"> <div>
<tr class="result"> <a>
<td> <xsl:attribute name="href">
<a> <xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
<xsl:attribute name="href"> </xsl:attribute>
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" /> <img>
</xsl:attribute> <xsl:attribute name="src">
<img> <xsl:value-of select="@thumbnail" />
<xsl:attribute name="src"> </xsl:attribute>
<xsl:value-of select="@thumbnail" /> <xsl:attribute name="alt">
</xsl:attribute> <xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
<xsl:attribute name="alt"> </xsl:attribute>
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" /> </img>
</xsl:attribute> </a>
</img> <br />
</a> <a>
</td> <xsl:attribute name="href">
<td> <xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
<div class="videotitle"> </xsl:attribute>
<a> <xsl:value-of select="rdf:RDF/cc:Work/dc:title" />
<xsl:attribute name="href"> <xsl:variable name="minutes" select="floor(@duration div 60)" />
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" /> <xsl:variable name="hours" select="floor(@duration div 3600)" />
</xsl:attribute> <xsl:variable name="seconds" select="@duration - $minutes*60 - $hours*3600" />
<xsl:value-of select="rdf:RDF/cc:Work/dc:title" /> <xsl:choose>
</a> <xsl:when test="$hours=0">
</div> (<xsl:value-of select="concat(format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
<br /> </xsl:when>
<xsl:value-of select="rdf:RDF/cc:Work/dc:description" /> <xsl:otherwise>
<table class="videometadata"> (<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" />)
<tr> </xsl:otherwise>
<td class="leftcell"> </xsl:choose>
<xsl:value-of select="$locale_strings[@id='duration']" />: </a>
</td> <br />
<td class="rightcell"> <xsl:choose>
<xsl:variable name="minutes" select="floor(@duration div 60)" /> <xsl:when test="@status=0">
<xsl:variable name="hours" select="floor(@duration div 3600)" /> processing, please wait....
<xsl:variable name="seconds" select="@duration - $minutes*60 - $hours*3600" /> </xsl:when>
<xsl:value-of select="concat($hours, ':', format-number($minutes, '00'), ':', format-number($seconds, '00'))" /> <xsl:when test="@status=2">
</td> invalid audio and/or video stream
</tr> </xsl:when>
</table> <xsl:when test="@status=3">
file not found - contact the admin
</xsl:when>
<xsl:when test="@status=4">
file is not a video
</xsl:when>
<xsl:when test="@status=5">
same video was already uploaded
</xsl:when>
</xsl:choose>
<br />
<xsl:value-of select="@viewcount" />
<xsl:value-of select="$locale_strings[@id='viewcount']" />
<xsl:if test="@edit='true'">
<a>
<xsl:attribute name="href">
<xsl:choose> <xsl:choose>
<xsl:when test="@status=0"> <xsl:when test="not(@status=1)">
processing, please wait.... <xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" />
</xsl:when>
<xsl:when test="@status=2">
invalid audio and/or video stream
</xsl:when>
<xsl:when test="@status=3">
file not found - contact the admin
</xsl:when>
<xsl:when test="@status=4">
file is not a video
</xsl:when>
<xsl:when test="@status=5">
same video was already uploaded
</xsl:when> </xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(rdf:RDF/cc:Work/dc:identifier, 'action=edit')" />
</xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:if test="@edit='true'"> </xsl:attribute>
<a> <img src="/images/tango/accessories-text-editor.png" style="border:0;vertical-align:bottom;" />edit
<xsl:attribute name="href"> </a>
<xsl:choose> </xsl:if>
<xsl:when test="not(@status=1)"> </div>
<xsl:value-of select="rdf:RDF/cc:Work/dc:identifier" /> </xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(rdf:RDF/cc:Work/dc:identifier, 'action=edit')" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<img src="/images/tango/accessories-text-editor.png" style="border:0;vertical-align:bottom;" />edit
</a>
</xsl:if>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template> </xsl:template>
<xsl:template name="results"> <xsl:template name="results">
@ -134,50 +127,50 @@
<xsl:when test="//results/@orderby='timestamp'"> <xsl:when test="//results/@orderby='timestamp'">
<xsl:choose> <xsl:choose>
<xsl:when test="//results/@sort='asc'"> <xsl:when test="//results/@sort='asc'">
the oldest videos <xsl:value-of select="$locale_strings[@id='videos_oldest']" />
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
the newest videos <xsl:value-of select="$locale_strings[@id='videos_newest']" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:when> </xsl:when>
<xsl:when test="//results/@orderby='downloadcount'"> <xsl:when test="//results/@orderby='downloadcount'">
<xsl:choose> <xsl:choose>
<xsl:when test="//results/@sort='asc'"> <xsl:when test="//results/@sort='asc'">
the least downloaded videos <xsl:value-of select="$locale_strings[@id='videos_downloaded_least']" />
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
the most downloaded videos <xsl:value-of select="$locale_strings[@id='videos_downloaded_most']" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:when> </xsl:when>
<xsl:when test="//results/@orderby='viewcount'"> <xsl:when test="//results/@orderby='viewcount'">
<xsl:choose> <xsl:choose>
<xsl:when test="//results/@sort='asc'"> <xsl:when test="//results/@sort='asc'">
the least viewed videos <xsl:value-of select="$locale_strings[@id='videos_viewed_least']" />
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
the most viewed videos <xsl:value-of select="$locale_strings[@id='videos_viewed_most']" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:when> </xsl:when>
<xsl:when test="//results/@orderby='duration'"> <xsl:when test="//results/@orderby='duration'">
<xsl:choose> <xsl:choose>
<xsl:when test="//results/@sort='asc'"> <xsl:when test="//results/@sort='asc'">
the shortest videos <xsl:value-of select="$locale_strings[@id='videos_shortest']" />
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
the lengthest videos <xsl:value-of select="$locale_strings[@id='videos_lengthest']" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:when> </xsl:when>
<xsl:when test="//results/@orderby='filesize'"> <xsl:when test="//results/@orderby='filesize'">
<xsl:choose> <xsl:choose>
<xsl:when test="//results/@sort='asc'"> <xsl:when test="//results/@sort='asc'">
the smallest videos <xsl:value-of select="$locale_strings[@id='videos_smallest']" />
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
the biggest videos <xsl:value-of select="$locale_strings[@id='videos_biggest']" />
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:when> </xsl:when>
@ -186,10 +179,12 @@
</xsl:choose> </xsl:choose>
</div> </div>
<div> <div>
<xsl:value-of select="//results/@resultcount" /> results on <xsl:value-of select="//results/@lastpage" /> pages <xsl:value-of select="//results/@resultcount" />&#160;
<xsl:value-of select="$locale_strings[@id='results_on']" />&#160;
<xsl:value-of select="//results/@lastpage" />&#160;
<xsl:value-of select="$locale_strings[@id='pages']" />
</div> </div>
<xsl:call-template name="pagination-arrows"/>
<xsl:call-template name="innerresults"/> <xsl:call-template name="innerresults"/>
<xsl:call-template name="pagination-arrows"/> <xsl:call-template name="pagination-arrows"/>
<xsl:call-template name="pagination-numbers"/> <xsl:call-template name="pagination-numbers"/>