From b1d68209f7fbb011c7480d883848ef2ba6737bc3 Mon Sep 17 00:00:00 2001 From: erlehmann Date: Sun, 21 Oct 2007 04:01:44 +0000 Subject: [PATCH] simple extended upload form seems i didn't break the uploader this time also, all dublin core entities changed to upper case (e.g. "DC.Title" instead of "DC.title") git-svn-id: http://yolanda.mister-muffin.de/svn@108 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/locale/en-US.xml | 20 +++++++++------- trunk/style/gnutube.css | 4 +++- trunk/uploader.pl | 2 +- trunk/xsl/xhtml.xsl | 52 ++++++++++++++++++++++++++++------------- 4 files changed, 51 insertions(+), 27 deletions(-) diff --git a/trunk/locale/en-US.xml b/trunk/locale/en-US.xml index bfce6f9..32b2ca5 100755 --- a/trunk/locale/en-US.xml +++ b/trunk/locale/en-US.xml @@ -53,15 +53,17 @@ license conditions - title - author - subject - description - uploader - contributor - date - source - righs holder + title + author + subject + description + uploader + contributor + date + source + language + coverage + righs holder diff --git a/trunk/style/gnutube.css b/trunk/style/gnutube.css index 612ce33..7471bd5 100755 --- a/trunk/style/gnutube.css +++ b/trunk/style/gnutube.css @@ -152,7 +152,9 @@ div div.videoccdata img { border-width: 0px; - margin: 0.5em; + margin-left: 0.5em; + margin-right: 0.5em; + margin-top: 0.5em; } table.videometadata diff --git a/trunk/uploader.pl b/trunk/uploader.pl index fa71564..e947fb9 100644 --- a/trunk/uploader.pl +++ b/trunk/uploader.pl @@ -27,7 +27,7 @@ if($userid) #make new entry for video into the databse my $sth = $dbh->prepare(qq{insert into uploaded (title, description, userid, timestamp) values ( ?, ?, ?, unix_timestamp())}) or die $dbh->errstr; - $sth->execute($query->param("title"), $query->param("description"), $userid) or die $dbh->errstr; + $sth->execute($query->param("DC.Title"), $query->param("DC.Description"), $userid) or die $dbh->errstr; $sth->finish() or die $dbh->errstr; #get the id of the inserted db entry diff --git a/trunk/xsl/xhtml.xsl b/trunk/xsl/xhtml.xsl index d3c40d3..6fca6b1 100755 --- a/trunk/xsl/xhtml.xsl +++ b/trunk/xsl/xhtml.xsl @@ -282,9 +282,9 @@ - :
- :
- : + :
+ :
+ : @@ -399,7 +399,7 @@