Skip to content

Commit

Permalink
Movies: adding IMDB links.
Browse files Browse the repository at this point in the history
  • Loading branch information
akoprow committed Jun 25, 2010
1 parent c931c66 commit 5f1f12d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion todo.txt
@@ -1,7 +1,6 @@
=== Movies:
TODO Strip double quotes from titles (beg & end)
TODO Normalize poster sizes (some are too wide)
TODO Add IMDB ratings

=== Books:
TODO Sort authors by surname, not name
Expand Down Expand Up @@ -44,6 +43,8 @@ TODO Add automatic data on when page was last updated
TODO Split papers/talks data to one-file-per-entry to have proper last modification date?

=== Done:
TODO Movies: Add IMDB links
TODO Movies: Add IMDB ratings
TODO Books: Fix problems with special characters in author's names
TODO Books: Authors' cloud: put in a jQuery-like panel (consistency with by author & date)
TODO Books: In authors' cloud add authors' photos
Expand Down
16 changes: 12 additions & 4 deletions xsl/movies.xsl
Expand Up @@ -63,19 +63,27 @@
</xsl:template>

<xsl:template name="show-movie">
<xsl:variable name="imdb-url">
<xsl:text>http://www.imdb.com/title/tt</xsl:text>
<xsl:value-of select="id" />
</xsl:variable>
<LI>
<table class="moviesTable">
<tr>
<td class="no">
<xsl:number value="position()" format="1. "/>
<xsl:number value="position()" format="1. "/>
</td>
<td class="img">
<!-- <script type="text/javascript" src="http://www.movieposterdb.com/embed.inc.php?movie_id={id}" />-->
<img src="images/imdb-posters/{id}.jpg" height="100" />
<a href="{$imdb-url}">
<img src="images/imdb-posters/{id}.jpg" height="100" />
</a>
</td>
<td class="data">
<span class="title">
<xsl:value-of select="title" />
<a href="{$imdb-url}">
<xsl:value-of select="title" />
</a>
</span>
<span>
<xsl:variable name="rating">
Expand All @@ -93,7 +101,7 @@
</xsl:call-template>
</span>
<span class="imdb">
<a class="imdb-info" href="#imdb-{id}" rel="#imdb-{id}">
<a class="imdb-info" href="{$imdb-url}" rel="#imdb-{id}">
IMDB
</a>
</span>
Expand Down

0 comments on commit 5f1f12d

Please sign in to comment.