diff --git a/hudson/fixtures.sql b/hudson/fixtures.sql
index be27dda8ac..68676965fb 100644
--- a/hudson/fixtures.sql
+++ b/hudson/fixtures.sql
@@ -743,7 +743,7 @@ CREATE TABLE `cache` (
 
 LOCK TABLES `cache` WRITE;
 /*!40000 ALTER TABLE `cache` DISABLE KEYS */;
-INSERT INTO `cache` VALUES (3,3,3,'2012-04-27 00:06:55','2012-04-27 02:06:56','\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0db_test\0localhost\0\0\0\0\0\0\0�\0\0\0\0\0\0root\0\0\0\0toor\0\0\0\0db_test\0<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<record modification_date=\"20120427020634\">\n  <path>/tmp/db_test/documents</path>\n  <subdefs>\n    <subdefgroup name=\"image\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>800</size>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <strip>no</strip>\n        <quality>75</quality>\n        <meta>yes</meta>\n        <baseurl/>\n        <mediatype>image</mediatype>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <strip>yes</strip>\n        <quality>75</quality>\n        <meta>no</meta>\n        <mediatype>image</mediatype>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"video\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>800</size>\n        <mediatype>video</mediatype>\n        <writeDatas>yes</writeDatas>\n        <baseurl/>\n        <acodec>libfaac</acodec>\n        <vcodec>libx264</vcodec>\n        <bitrate>1000</bitrate>\n        <threads>8</threads>\n        <fps>15</fps>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnailgif\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <mediatype>gif</mediatype>\n        <delay>500</delay>\n        <writeDatas>no</writeDatas>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Animation GIF</label>\n        <label lang=\"en\">GIF Animation</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"audio\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>audio</mediatype>\n        <writeDatas>yes</writeDatas>\n        <baseurl/>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"document\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>flexpaper</mediatype>\n        <writeDatas>no</writeDatas>\n        <baseurl/>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <size>200</size>\n        <writeDatas>no</writeDatas>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"flash\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <size>200</size>\n        <writeDatas>no</writeDatas>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <baseurl/>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n  </subdefs>\n  <description>\n    <!-- 2:5 -->\n    <!-- 2:15 -->\n    <!-- 2:20 -->\n    <!-- 2:25 -->\n    <!-- 2:40 -->\n    <!-- 2:55 -->\n    <!-- 2:80 -->\n    <!-- 2:85 -->\n    <!-- 2:90 -->\n    <!-- 2:95 -->\n    <!-- 2:101 -->\n    <!-- 2:103 -->\n    <!-- 2:105 -->\n    <!-- 2:110 -->\n    <!-- 2:115 -->\n    <!-- 2:120 -->\n    <!-- 2:122 -->\n    <!-- 2:25 -->\n    <!-- 2:25 -->\n    <!-- 2:25 -->\n    <!-- Technical Fields -->\n    <Object src=\"IPTC:ObjectName\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"1\"/>\n    <Category src=\"IPTC:Category\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"2\"/>\n    <SupplCategory src=\"IPTC:SupplementalCategories\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"3\"/>\n    <Keywords src=\"IPTC:Keywords\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"1\" report=\"1\" type=\"string\" tbranch=\"\" separator=\";\" thumbtitle=\"0\" meta_id=\"4\"/>\n    <SpecialInstruct src=\"IPTC:SpecialInstructions\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"5\"/>\n    <Date src=\"IPTC:DateCreated\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"date\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"6\"/>\n    <Byline src=\"IPTC:By-line\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"7\"/>\n    <BylineTitle src=\"IPTC:By-lineTitle\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"8\"/>\n    <City src=\"IPTC:City\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"9\"/>\n    <Province src=\"IPTC:Province-State\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"10\"/>\n    <Country src=\"IPTC:Country-PrimaryLocationName\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"11\"/>\n    <OriginalRef src=\"IPTC:OriginalTransmissionReference\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"12\"/>\n    <Headline src=\"IPTC:Headline\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"13\"/>\n    <Credit src=\"IPTC:Credit\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"14\"/>\n    <Source src=\"IPTC:Source\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"15\"/>\n    <Caption src=\"IPTC:Caption-Abstract\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"16\"/>\n    <CaptionWriter src=\"IPTC:Writer-Editor\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"17\"/>\n    <Longitude src=\"GPS:GPSLongitude\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"18\"/>\n    <Latitude src=\"GPS:GPSLatitude\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"19\"/>\n    <CameraModel src=\"IFD0:Model\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"20\"/>\n    <FileName src=\"Phraseanet:tf-filename\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"21\"/>\n    <FilePath src=\"Phraseanet:tf-filepath\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"22\"/>\n    <Recordid src=\"Phraseanet:tf-recordid\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"23\"/>\n    <MimeType src=\"Phraseanet:tf-mimetype\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"24\"/>\n    <Size src=\"Phraseanet:tf-size\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"25\"/>\n    <Extension src=\"Phraseanet:tf-extension\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"26\"/>\n    <Width src=\"Phraseanet:tf-width\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"27\"/>\n    <Height src=\"Phraseanet:tf-height\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"28\"/>\n    <Bits src=\"Phraseanet:tf-bits\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"29\"/>\n    <Channels src=\"Phraseanet:tf-channels\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"30\"/>\n  </description>\n  <statbits>\n    <bit n=\"4\">Online</bit>\n  </statbits>\n</record>\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0test\0\0\0\0<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n            <baseprefs>\n                <status>0</status>\n                <sugestedValues>\n                </sugestedValues>\n            </baseprefs>\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0coll2\0\0\0<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n            <baseprefs>\n                <status>0</status>\n                <sugestedValues>\n                </sugestedValues>\n            </baseprefs>\0\0\0','a:1:{i:0;i:0;}','Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0','127.0.0.1','Apple','Firefox','12.0','1280x800','','0000-00-00 00:00:00',NULL,NULL);
+INSERT INTO `cache` VALUES (3,3,3,'2012-04-27 00:06:55','2012-04-27 02:06:56','\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0db_test\0localhost\0\0\0\0\0\0\0�\0\0\0\0\0\0root\0\0\0\0toor\0\0\0\0db_test\0<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<record modification_date=\"20120427020634\">\n  <path>/tmp/db_test/documents</path>\n  <subdefs>\n    <subdefgroup name=\"image\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>800</size>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <strip>no</strip>\n        <quality>75</quality>\n        <meta>yes</meta>\n        <mediatype>image</mediatype>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <strip>yes</strip>\n        <quality>75</quality>\n        <meta>no</meta>\n        <mediatype>image</mediatype>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"video\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>800</size>\n        <mediatype>video</mediatype>\n        <writeDatas>yes</writeDatas>\n        <acodec>libfaac</acodec>\n        <vcodec>libx264</vcodec>\n        <bitrate>1000</bitrate>\n        <threads>8</threads>\n        <fps>15</fps>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnailgif\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <mediatype>gif</mediatype>\n        <delay>500</delay>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Animation GIF</label>\n        <label lang=\"en\">GIF Animation</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"audio\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>audio</mediatype>\n        <writeDatas>yes</writeDatas>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"document\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>flexpaper</mediatype>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <size>200</size>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"flash\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <size>200</size>\n        <writeDatas>no</writeDatas>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n  </subdefs>\n  <description>\n    <!-- 2:5 -->\n    <!-- 2:15 -->\n    <!-- 2:20 -->\n    <!-- 2:25 -->\n    <!-- 2:40 -->\n    <!-- 2:55 -->\n    <!-- 2:80 -->\n    <!-- 2:85 -->\n    <!-- 2:90 -->\n    <!-- 2:95 -->\n    <!-- 2:101 -->\n    <!-- 2:103 -->\n    <!-- 2:105 -->\n    <!-- 2:110 -->\n    <!-- 2:115 -->\n    <!-- 2:120 -->\n    <!-- 2:122 -->\n    <!-- 2:25 -->\n    <!-- 2:25 -->\n    <!-- 2:25 -->\n    <!-- Technical Fields -->\n    <Object src=\"IPTC:ObjectName\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"1\"/>\n    <Category src=\"IPTC:Category\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"2\"/>\n    <SupplCategory src=\"IPTC:SupplementalCategories\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"3\"/>\n    <Keywords src=\"IPTC:Keywords\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"1\" report=\"1\" type=\"string\" tbranch=\"\" separator=\";\" thumbtitle=\"0\" meta_id=\"4\"/>\n    <SpecialInstruct src=\"IPTC:SpecialInstructions\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"5\"/>\n    <Date src=\"IPTC:DateCreated\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"date\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"6\"/>\n    <Byline src=\"IPTC:By-line\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"7\"/>\n    <BylineTitle src=\"IPTC:By-lineTitle\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"8\"/>\n    <City src=\"IPTC:City\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"9\"/>\n    <Province src=\"IPTC:Province-State\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"10\"/>\n    <Country src=\"IPTC:Country-PrimaryLocationName\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"11\"/>\n    <OriginalRef src=\"IPTC:OriginalTransmissionReference\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"12\"/>\n    <Headline src=\"IPTC:Headline\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"13\"/>\n    <Credit src=\"IPTC:Credit\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"14\"/>\n    <Source src=\"IPTC:Source\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"15\"/>\n    <Caption src=\"IPTC:Caption-Abstract\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"16\"/>\n    <CaptionWriter src=\"IPTC:Writer-Editor\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"17\"/>\n    <Longitude src=\"GPS:GPSLongitude\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"18\"/>\n    <Latitude src=\"GPS:GPSLatitude\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"19\"/>\n    <CameraModel src=\"IFD0:Model\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"20\"/>\n    <FileName src=\"Phraseanet:tf-filename\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"21\"/>\n    <FilePath src=\"Phraseanet:tf-filepath\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"22\"/>\n    <Recordid src=\"Phraseanet:tf-recordid\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"23\"/>\n    <MimeType src=\"Phraseanet:tf-mimetype\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"24\"/>\n    <Size src=\"Phraseanet:tf-size\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"25\"/>\n    <Extension src=\"Phraseanet:tf-extension\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"26\"/>\n    <Width src=\"Phraseanet:tf-width\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"27\"/>\n    <Height src=\"Phraseanet:tf-height\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"28\"/>\n    <Bits src=\"Phraseanet:tf-bits\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"29\"/>\n    <Channels src=\"Phraseanet:tf-channels\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"30\"/>\n  </description>\n  <statbits>\n    <bit n=\"4\">Online</bit>\n  </statbits>\n</record>\n\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0test\0\0\0\0<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n            <baseprefs>\n                <status>0</status>\n                <sugestedValues>\n                </sugestedValues>\n            </baseprefs>\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0coll2\0\0\0<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n            <baseprefs>\n                <status>0</status>\n                <sugestedValues>\n                </sugestedValues>\n            </baseprefs>\0\0\0','a:1:{i:0;i:0;}','Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0','127.0.0.1','Apple','Firefox','12.0','1280x800','','0000-00-00 00:00:00',NULL,NULL);
 /*!40000 ALTER TABLE `cache` ENABLE KEYS */;
 UNLOCK TABLES;
 
@@ -2235,7 +2235,7 @@ CREATE TABLE `pref` (
 
 LOCK TABLES `pref` WRITE;
 /*!40000 ALTER TABLE `pref` DISABLE KEYS */;
-INSERT INTO `pref` VALUES (1,'thesaurus','','','0000-00-00 00:00:00','2012-04-27 02:06:31'),(2,'structure','<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<record modification_date=\"20120427020634\">\n  <path>/tmp/db_test/documents</path>\n  <subdefs>\n    <subdefgroup name=\"image\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>800</size>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <strip>no</strip>\n        <quality>75</quality>\n        <meta>yes</meta>\n        <baseurl/>\n        <mediatype>image</mediatype>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <strip>yes</strip>\n        <quality>75</quality>\n        <meta>no</meta>\n        <mediatype>image</mediatype>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"video\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>800</size>\n        <mediatype>video</mediatype>\n        <writeDatas>yes</writeDatas>\n        <baseurl/>\n        <acodec>libfaac</acodec>\n        <vcodec>libx264</vcodec>\n        <bitrate>1000</bitrate>\n        <threads>8</threads>\n        <fps>15</fps>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnailgif\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <mediatype>gif</mediatype>\n        <delay>500</delay>\n        <writeDatas>no</writeDatas>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Animation GIF</label>\n        <label lang=\"en\">GIF Animation</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"audio\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>audio</mediatype>\n        <writeDatas>yes</writeDatas>\n        <baseurl/>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"document\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>flexpaper</mediatype>\n        <writeDatas>no</writeDatas>\n        <baseurl/>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <size>200</size>\n        <writeDatas>no</writeDatas>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"flash\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <size>200</size>\n        <writeDatas>no</writeDatas>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <baseurl/>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <baseurl>web//db_test/subdefs</baseurl>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n  </subdefs>\n  <description>\n    <!-- 2:5 -->\n    <!-- 2:15 -->\n    <!-- 2:20 -->\n    <!-- 2:25 -->\n    <!-- 2:40 -->\n    <!-- 2:55 -->\n    <!-- 2:80 -->\n    <!-- 2:85 -->\n    <!-- 2:90 -->\n    <!-- 2:95 -->\n    <!-- 2:101 -->\n    <!-- 2:103 -->\n    <!-- 2:105 -->\n    <!-- 2:110 -->\n    <!-- 2:115 -->\n    <!-- 2:120 -->\n    <!-- 2:122 -->\n    <!-- 2:25 -->\n    <!-- 2:25 -->\n    <!-- 2:25 -->\n    <!-- Technical Fields -->\n    <Object src=\"IPTC:ObjectName\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"1\"/>\n    <Category src=\"IPTC:Category\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"2\"/>\n    <SupplCategory src=\"IPTC:SupplementalCategories\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"3\"/>\n    <Keywords src=\"IPTC:Keywords\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"1\" report=\"1\" type=\"string\" tbranch=\"\" separator=\";\" thumbtitle=\"0\" meta_id=\"4\"/>\n    <SpecialInstruct src=\"IPTC:SpecialInstructions\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"5\"/>\n    <Date src=\"IPTC:DateCreated\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"date\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"6\"/>\n    <Byline src=\"IPTC:By-line\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"7\"/>\n    <BylineTitle src=\"IPTC:By-lineTitle\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"8\"/>\n    <City src=\"IPTC:City\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"9\"/>\n    <Province src=\"IPTC:Province-State\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"10\"/>\n    <Country src=\"IPTC:Country-PrimaryLocationName\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"11\"/>\n    <OriginalRef src=\"IPTC:OriginalTransmissionReference\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"12\"/>\n    <Headline src=\"IPTC:Headline\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"13\"/>\n    <Credit src=\"IPTC:Credit\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"14\"/>\n    <Source src=\"IPTC:Source\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"15\"/>\n    <Caption src=\"IPTC:Caption-Abstract\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"16\"/>\n    <CaptionWriter src=\"IPTC:Writer-Editor\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"17\"/>\n    <Longitude src=\"GPS:GPSLongitude\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"18\"/>\n    <Latitude src=\"GPS:GPSLatitude\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"19\"/>\n    <CameraModel src=\"IFD0:Model\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"20\"/>\n    <FileName src=\"Phraseanet:tf-filename\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"21\"/>\n    <FilePath src=\"Phraseanet:tf-filepath\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"22\"/>\n    <Recordid src=\"Phraseanet:tf-recordid\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"23\"/>\n    <MimeType src=\"Phraseanet:tf-mimetype\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"24\"/>\n    <Size src=\"Phraseanet:tf-size\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"25\"/>\n    <Extension src=\"Phraseanet:tf-extension\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"26\"/>\n    <Width src=\"Phraseanet:tf-width\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"27\"/>\n    <Height src=\"Phraseanet:tf-height\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"28\"/>\n    <Bits src=\"Phraseanet:tf-bits\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"29\"/>\n    <Channels src=\"Phraseanet:tf-channels\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"30\"/>\n  </description>\n  <statbits>\n    <bit n=\"4\">Online</bit>\n  </statbits>\n</record>\n','','2012-04-27 02:06:34','2012-04-27 02:06:31'),(3,'cterms','','','0000-00-00 00:00:00','2012-04-27 02:06:31'),(4,'indexes','1','','2012-04-27 02:06:31','2012-04-27 02:06:31'),(5,'ToU','','fr_FR','0000-00-00 00:00:00','2012-04-27 02:06:31'),(6,'ToU','','ar_SA','0000-00-00 00:00:00','2012-04-27 02:06:31'),(7,'ToU','','de_DE','0000-00-00 00:00:00','2012-04-27 02:06:31'),(8,'ToU','','en_GB','0000-00-00 00:00:00','2012-04-27 02:06:31'),(9,'version','3.7.0.0.a2','','2012-04-27 02:06:33','0000-00-00 00:00:00');
+INSERT INTO `pref` VALUES (1,'thesaurus','','','0000-00-00 00:00:00','2012-04-27 02:06:31'),(2,'structure','<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<record modification_date=\"20120427020634\">\n  <path>/tmp/db_test/documents</path>\n  <subdefs>\n    <subdefgroup name=\"image\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>800</size>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <strip>no</strip>\n        <quality>75</quality>\n        <meta>yes</meta>\n        <mediatype>image</mediatype>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <strip>yes</strip>\n        <quality>75</quality>\n        <meta>no</meta>\n        <mediatype>image</mediatype>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"video\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>800</size>\n        <mediatype>video</mediatype>\n        <writeDatas>yes</writeDatas>\n        <acodec>libfaac</acodec>\n        <vcodec>libx264</vcodec>\n        <bitrate>1000</bitrate>\n        <threads>8</threads>\n        <fps>15</fps>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnailgif\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <mediatype>gif</mediatype>\n        <delay>500</delay>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Animation GIF</label>\n        <label lang=\"en\">GIF Animation</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <size>200</size>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"audio\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>audio</mediatype>\n        <writeDatas>yes</writeDatas>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"true\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"document\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>flexpaper</mediatype>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <size>200</size>\n        <writeDatas>no</writeDatas>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n    <subdefgroup name=\"flash\">\n      <subdef class=\"preview\" name=\"preview\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <size>200</size>\n        <writeDatas>no</writeDatas>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <label lang=\"fr\">Prévisualisation</label>\n        <label lang=\"en\">Preview</label>\n      </subdef>\n      <subdef class=\"thumbnail\" name=\"thumbnail\" downloadable=\"false\">\n        <path>/tmp/db_test/subdefs</path>\n        <mediatype>image</mediatype>\n        <writeDatas>no</writeDatas>\n        <method>resample</method>\n        <dpi>72</dpi>\n        <label lang=\"fr\">Imagette</label>\n        <label lang=\"en\">Thumbnail</label>\n      </subdef>\n    </subdefgroup>\n  </subdefs>\n  <description>\n    <!-- 2:5 -->\n    <!-- 2:15 -->\n    <!-- 2:20 -->\n    <!-- 2:25 -->\n    <!-- 2:40 -->\n    <!-- 2:55 -->\n    <!-- 2:80 -->\n    <!-- 2:85 -->\n    <!-- 2:90 -->\n    <!-- 2:95 -->\n    <!-- 2:101 -->\n    <!-- 2:103 -->\n    <!-- 2:105 -->\n    <!-- 2:110 -->\n    <!-- 2:115 -->\n    <!-- 2:120 -->\n    <!-- 2:122 -->\n    <!-- 2:25 -->\n    <!-- 2:25 -->\n    <!-- 2:25 -->\n    <!-- Technical Fields -->\n    <Object src=\"IPTC:ObjectName\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"1\"/>\n    <Category src=\"IPTC:Category\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"2\"/>\n    <SupplCategory src=\"IPTC:SupplementalCategories\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"3\"/>\n    <Keywords src=\"IPTC:Keywords\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"1\" report=\"1\" type=\"string\" tbranch=\"\" separator=\";\" thumbtitle=\"0\" meta_id=\"4\"/>\n    <SpecialInstruct src=\"IPTC:SpecialInstructions\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"5\"/>\n    <Date src=\"IPTC:DateCreated\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"date\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"6\"/>\n    <Byline src=\"IPTC:By-line\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"7\"/>\n    <BylineTitle src=\"IPTC:By-lineTitle\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"8\"/>\n    <City src=\"IPTC:City\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"9\"/>\n    <Province src=\"IPTC:Province-State\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"10\"/>\n    <Country src=\"IPTC:Country-PrimaryLocationName\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"11\"/>\n    <OriginalRef src=\"IPTC:OriginalTransmissionReference\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"12\"/>\n    <Headline src=\"IPTC:Headline\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"13\"/>\n    <Credit src=\"IPTC:Credit\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"14\"/>\n    <Source src=\"IPTC:Source\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"15\"/>\n    <Caption src=\"IPTC:Caption-Abstract\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"16\"/>\n    <CaptionWriter src=\"IPTC:Writer-Editor\" index=\"1\" readonly=\"0\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"17\"/>\n    <Longitude src=\"GPS:GPSLongitude\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"18\"/>\n    <Latitude src=\"GPS:GPSLatitude\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"19\"/>\n    <CameraModel src=\"IFD0:Model\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"string\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"20\"/>\n    <FileName src=\"Phraseanet:tf-filename\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"21\"/>\n    <FilePath src=\"Phraseanet:tf-filepath\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"22\"/>\n    <Recordid src=\"Phraseanet:tf-recordid\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"23\"/>\n    <MimeType src=\"Phraseanet:tf-mimetype\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"24\"/>\n    <Size src=\"Phraseanet:tf-size\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"25\"/>\n    <Extension src=\"Phraseanet:tf-extension\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"text\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"26\"/>\n    <Width src=\"Phraseanet:tf-width\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"27\"/>\n    <Height src=\"Phraseanet:tf-height\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"28\"/>\n    <Bits src=\"Phraseanet:tf-bits\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"29\"/>\n    <Channels src=\"Phraseanet:tf-channels\" index=\"1\" readonly=\"1\" required=\"0\" multi=\"0\" report=\"1\" type=\"number\" tbranch=\"\" thumbtitle=\"0\" meta_id=\"30\"/>\n  </description>\n  <statbits>\n    <bit n=\"4\">Online</bit>\n  </statbits>\n</record>\n','','2012-04-27 02:06:34','2012-04-27 02:06:31'),(3,'cterms','','','0000-00-00 00:00:00','2012-04-27 02:06:31'),(4,'indexes','1','','2012-04-27 02:06:31','2012-04-27 02:06:31'),(5,'ToU','','fr_FR','0000-00-00 00:00:00','2012-04-27 02:06:31'),(6,'ToU','','ar_SA','0000-00-00 00:00:00','2012-04-27 02:06:31'),(7,'ToU','','de_DE','0000-00-00 00:00:00','2012-04-27 02:06:31'),(8,'ToU','','en_GB','0000-00-00 00:00:00','2012-04-27 02:06:31'),(9,'version','3.7.0.0.a2','','2012-04-27 02:06:33','0000-00-00 00:00:00');
 /*!40000 ALTER TABLE `pref` ENABLE KEYS */;
 UNLOCK TABLES;
 
@@ -2384,7 +2384,6 @@ CREATE TABLE `subdef` (
   `name` char(64) CHARACTER SET ascii COLLATE ascii_bin NOT NULL,
   `path` char(255) COLLATE utf8_unicode_ci NOT NULL,
   `file` char(255) COLLATE utf8_unicode_ci NOT NULL,
-  `baseurl` char(255) COLLATE utf8_unicode_ci NOT NULL,
   `width` int(10) unsigned NOT NULL DEFAULT '0',
   `height` int(10) unsigned NOT NULL DEFAULT '0',
   `mime` char(64) COLLATE utf8_unicode_ci NOT NULL,
diff --git a/lib/Alchemy/Phrasea/Application/Overview.php b/lib/Alchemy/Phrasea/Application/Overview.php
index 15f021b142..03bbc55d13 100644
--- a/lib/Alchemy/Phrasea/Application/Overview.php
+++ b/lib/Alchemy/Phrasea/Application/Overview.php
@@ -31,9 +31,6 @@ return call_user_func(
             $deliver_content = function(\Session_Handler $session, \record_adapter $record, $subdef, $watermark, $stamp, $app) {
 
                     $file = $record->get_subdef($subdef);
-                    if ($file->get_baseurl() !== '') {
-                        return $app->redirect($file->get_url());
-                    }
 
                     $pathIn = $pathOut = $file->get_pathfile();
 
diff --git a/lib/Alchemy/Phrasea/Controller/Admin/Subdefs.php b/lib/Alchemy/Phrasea/Controller/Admin/Subdefs.php
index a7d6b62d7b..abcd8a5187 100644
--- a/lib/Alchemy/Phrasea/Controller/Admin/Subdefs.php
+++ b/lib/Alchemy/Phrasea/Controller/Admin/Subdefs.php
@@ -92,7 +92,7 @@ class Subdefs implements ControllerProviderInterface
                         $class = $request->get($post_sub . '_class');
                         $downloadable = $request->get($post_sub . '_downloadable');
 
-                        $defaults = array('path', 'baseurl', 'meta', 'mediatype');
+                        $defaults = array('path', 'meta', 'mediatype');
 
                         foreach ($defaults as $def) {
                             $parm_loc = $request->get($post_sub . '_' . $def);
diff --git a/lib/classes/databox.class.php b/lib/classes/databox.class.php
index 35ae5181ba..7306469cc2 100644
--- a/lib/classes/databox.class.php
+++ b/lib/classes/databox.class.php
@@ -845,7 +845,7 @@ class databox extends base
         return $this;
     }
 
-    public function setNewStructure(\SplFileInfo $data_template, $path_web, $path_doc, $baseurl)
+    public function setNewStructure(\SplFileInfo $data_template, $path_web, $path_doc)
     {
         if ( ! file_exists($data_template->getPathname())) {
             throw new \InvalidArgumentException(sprintf('File %s does not exists'));
@@ -853,11 +853,9 @@ class databox extends base
 
         $contents = file_get_contents($data_template->getPathname());
 
-        $baseurl = $baseurl ? p4string::addEndSlash($baseurl) : '';
-
         $contents = str_replace(
-            array("{{dataurl}}", "{{basename}}", "{{datapathweb}}", "{{datapathnoweb}}")
-            , array($baseurl, $this->dbname, $path_web, $path_doc)
+            array("{{basename}}", "{{datapathweb}}", "{{datapathnoweb}}")
+            , array($this->dbname, $path_web, $path_doc)
             , $contents
         );
 
diff --git a/lib/classes/databox/subdef.class.php b/lib/classes/databox/subdef.class.php
index d47826c469..8e8bb7515b 100644
--- a/lib/classes/databox/subdef.class.php
+++ b/lib/classes/databox/subdef.class.php
@@ -35,7 +35,6 @@ class databox_subdef
     protected $name;
     protected $path;
     protected $subdef_group;
-    protected $baseurl;
     protected $labels = array();
     protected $write_meta;
     protected $downloadable;
@@ -75,8 +74,6 @@ class databox_subdef
         $this->downloadable = p4field::isyes($sd->attributes()->downloadable);
         $this->path = trim($sd->path) !== '' ? p4string::addEndSlash(trim($sd->path)) : '';
 
-        $this->baseurl = trim($sd->baseurl) !== '' ? p4string::addEndSlash(trim($sd->baseurl)) : false;
-
         $this->write_meta = p4field::isyes((string) $sd->meta);
 
         foreach ($sd->label as $label) {
@@ -137,15 +134,6 @@ class databox_subdef
         return $this->devices;
     }
 
-    /**
-     *
-     * @return string
-     */
-    public function get_baseurl()
-    {
-        return $this->baseurl;
-    }
-
     /**
      * The current SubdefType the subdef converts documents
      *
@@ -363,10 +351,10 @@ class databox_subdef
         if ($sd->size) {
             $video->setOptionValue(Video::OPTION_SIZE, (int) $sd->size);
         }
-        if ($sd->a_codec) {
+        if ($sd->acodec) {
             $video->setOptionValue(Video::OPTION_ACODEC, (string) $sd->acodec);
         }
-        if ($sd->v_codec) {
+        if ($sd->vcodec) {
             $video->setOptionValue(Video::OPTION_VCODEC, (string) $sd->vcodec);
         }
         if ($sd->fps) {
diff --git a/lib/classes/media/subdef.class.php b/lib/classes/media/subdef.class.php
index 324d040642..b665a22ae5 100644
--- a/lib/classes/media/subdef.class.php
+++ b/lib/classes/media/subdef.class.php
@@ -26,12 +26,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
      */
     protected $mime;
 
-    /**
-     *
-     * @var string
-     */
-    protected $baseurl;
-
     /**
      *
      * @var string
@@ -176,7 +170,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
             $this->width = $datas['width'];
             $this->height = $datas['height'];
             $this->etag = $datas['etag'];
-            $this->baseurl = $datas['baseurl'];
             $this->path = $datas['path'];
             $this->file = $datas['file'];
             $this->is_physically_present = $datas['physically_present'];
@@ -192,7 +185,7 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
 
         $connbas = $this->record->get_databox()->get_connection();
 
-        $sql = 'SELECT subdef_id, name, baseurl, file, width, height, mime,
+        $sql = 'SELECT subdef_id, name, file, width, height, mime,
                 path, size, substit, created_on, updated_on, etag
                 FROM subdef
                 WHERE name = :name AND record_id = :record_id';
@@ -212,7 +205,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
             $this->width = (int) $row['width'];
             $this->height = (int) $row['height'];
             $this->mime = $row['mime'];
-            $this->baseurl = trim($row['baseurl']);
             $this->file = $row['file'];
             $this->etag = $row['etag'];
             $this->path = p4string::addEndSlash($row['path']);
@@ -239,7 +231,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
             'mime'               => $this->mime
             , 'width'              => $this->width
             , 'height'             => $this->height
-            , 'baseurl'            => $this->baseurl
             , 'etag'               => $this->etag
             , 'path'               => $this->path
             , 'file'               => $this->file
@@ -290,7 +281,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
             $this->mime = 'image/png';
             $this->width = 256;
             $this->height = 256;
-            $this->baseurl = 'skins/icons/substitution/';
             $this->path = $registry->get('GV_RootPath') . 'www/skins/icons/substitution/';
             $this->file = 'regroup_thumb.png';
             $this->is_substituted = true;
@@ -301,7 +291,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
             $this->mime = 'image/png';
             $this->width = 256;
             $this->height = 256;
-            $this->baseurl = 'skins/icons/substitution/';
             $this->path = $registry->get('GV_RootPath') . 'www/skins/icons/substitution/';
             $this->file = str_replace('+', '%20', $mime) . '.png';
             $this->is_substituted = true;
@@ -310,7 +299,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
         $this->is_physically_present = false;
 
         if ( ! file_exists($this->path . $this->file)) {
-            $this->baseurl = 'skins/icons/';
             $this->path = $registry->get('GV_RootPath') . 'www/skins/icons/';
             $this->file = 'substitution.png';
             $this->is_substituted = true;
@@ -440,15 +428,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
         return $this->path;
     }
 
-    /**
-     *
-     * @return string
-     */
-    public function get_baseurl()
-    {
-        return $this->baseurl;
-    }
-
     /**
      *
      * @return string
@@ -696,7 +675,7 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
         return $datas;
     }
 
-    public static function create(record_Interface $record, $name, Media $media, $baseurl = '')
+    public static function create(record_Interface $record, $name, Media $media)
     {
         $databox = $record->get_databox();
         $connbas = $databox->get_connection();
@@ -707,7 +686,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
         $params = array(
             ':path'       => $path,
             ':file'       => $newname,
-            ':baseurl'    => $baseurl,
             ':width'      => 0,
             ':height'     => 0,
             ':mime'       => $media->getFile()->getMimeType(),
@@ -728,7 +706,7 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
             }
 
             $sql = "UPDATE subdef
-              SET path = :path, file = :file, baseurl = :baseurl
+              SET path = :path, file = :file
                   , width = :width , height = :height, mime = :mime
                   , size = :size, dispatched = :dispatched, updated_on = NOW()
               WHERE subdef_id = :subdef_id";
@@ -736,9 +714,9 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
             $params[':subdef_id'] = $subdef->get_subdef_id();
         } catch (\Exception_Media_SubdefNotFound $e) {
             $sql = "INSERT INTO subdef
-              (record_id, name, path, file, baseurl, width
+              (record_id, name, path, file, width
                 , height, mime, size, dispatched, created_on, updated_on)
-              VALUES (:record_id, :name, :path, :file, :baseurl, :width, :height
+              VALUES (:record_id, :name, :path, :file, :width, :height
                 , :mime, :size, :dispatched, NOW(), NOW())";
 
             $params[':record_id'] = $record->get_record_id();
@@ -767,15 +745,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface
      */
     protected function generate_url($random = false)
     {
-        if ($this->baseurl !== '') {
-            $registry = registry::get_instance();
-            $this->url = $registry->get('GV_STATIC_URL')
-                . '/' . p4string::addEndSlash($this->baseurl)
-                . $this->file . ($random ? '?rand=' . mt_rand(10000, 99999) : '');
-
-            return;
-        }
-
         if (in_array($this->mime, array('video/mp4'))) {
             $token = p4file::apache_tokenize($this->get_pathfile());
             if ($token) {
diff --git a/lib/classes/record/adapter.class.php b/lib/classes/record/adapter.class.php
index f5e8117fef..a120006fc5 100644
--- a/lib/classes/record/adapter.class.php
+++ b/lib/classes/record/adapter.class.php
@@ -630,7 +630,11 @@ class record_adapter implements record_Interface, cache_cacheableInterface
 
         $searchDevices = array_merge((array) $devices, (array) databox_subdef::DEVICE_ALL);
 
-        foreach ($this->databox->get_subdef_structure() as $databoxSubdefs) {
+        foreach ($this->databox->get_subdef_structure() as $group => $databoxSubdefs) {
+
+            if ($this->get_type() != $group) {
+                continue;
+            }
 
             foreach ($databoxSubdefs as $databoxSubdef) {
 
@@ -982,14 +986,6 @@ class record_adapter implements record_Interface, cache_cacheableInterface
                 $path_file_dest = $path . $newfilename;
             }
 
-            if (trim($subdef_def->get_baseurl()) !== '') {
-                $base_url = str_replace(
-                    array($subdef_def->get_path(), $newfilename)
-                    , array($subdef_def->get_baseurl(), '')
-                    , $path_file_dest
-                );
-            }
-
             try {
                 $Core = \bootstrap::getCore();
                 $Core['media-alchemyst']->open($media->getFile()->getRealPath())
@@ -1013,8 +1009,7 @@ class record_adapter implements record_Interface, cache_cacheableInterface
             $connbas = connection::getPDOConnection($this->get_sbas_id());
 
             $sql = 'UPDATE subdef
-                SET baseurl = :baseurl,
-                    file = :filename,
+                SET file = :filename,
                     width = :width,
                     height = :height,
                     mime = :mime,
@@ -1026,7 +1021,6 @@ class record_adapter implements record_Interface, cache_cacheableInterface
             $params = array(
                 ':record_id' => $this->record_id,
                 ':name'      => $name,
-                ':baseurl'   => $base_url,
                 ':filename'  => $subdefFile->getFilename(),
                 ':mime'      => $subdefFile->getMimeType(),
                 ':path'      => $subdefFile->getPath(),
@@ -1691,9 +1685,8 @@ class record_adapter implements record_Interface, cache_cacheableInterface
 
             if (file_exists($pathdest)) {
                 $media = \MediaVorus\MediaVorus::guess(new \SplFileInfo($pathdest));
-                $baseurl = $subdef->get_baseurl() ? $subdef->get_baseurl() . substr(dirname($pathdest), strlen($subdef->get_path())) : '';
 
-                media_subdef::create($this, $subdef->get_name(), $media, $baseurl);
+                media_subdef::create($this, $subdef->get_name(), $media);
             }
 
             $this->clearSubdefCache($subdefname);
@@ -1728,6 +1721,10 @@ class record_adapter implements record_Interface, cache_cacheableInterface
         $Core = \bootstrap::getCore();
 
         try {
+            if (null === $this->get_hd_file()) {
+                return;
+            }
+
             $Core['media-alchemyst']->open($this->get_hd_file()->getPathname());
             $Core['media-alchemyst']->turnInto($pathdest, $subdef_class->getSpecs());
             $Core['media-alchemyst']->close();
diff --git a/lib/conf.d/bases_structure.xml b/lib/conf.d/bases_structure.xml
index e052db7c73..d3a3518494 100644
--- a/lib/conf.d/bases_structure.xml
+++ b/lib/conf.d/bases_structure.xml
@@ -6777,16 +6777,6 @@
             <comment></comment>
           </field>
 
-          <field>
-            <name>baseurl</name>
-            <type>char(255)</type>
-            <null></null>
-            <extra></extra>
-
-            <default></default>
-            <comment></comment>
-
-          </field>
           <field>
             <name>width</name>
             <type>int(10) unsigned</type>
diff --git a/lib/conf.d/data_templates/en-simple.xml b/lib/conf.d/data_templates/en-simple.xml
index bcf9900e23..14f52ee1eb 100644
--- a/lib/conf.d/data_templates/en-simple.xml
+++ b/lib/conf.d/data_templates/en-simple.xml
@@ -12,7 +12,6 @@
                 <strip>no</strip>
                 <quality>75</quality>
                 <meta>yes</meta>
-                <baseurl></baseurl>
                 <mediatype>image</mediatype>
                 <label lang="fr">Prévisualisation</label>
                 <label lang="en">Preview</label>
@@ -26,7 +25,6 @@
                 <quality>75</quality>
                 <meta>no</meta>
                 <mediatype>image</mediatype>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
@@ -38,7 +36,6 @@
                 <size>800</size>
                 <mediatype>video</mediatype>
                 <writeDatas>yes</writeDatas>
-                <baseurl></baseurl>
                 <acodec>libfaac</acodec>
                 <vcodec>libx264</vcodec>
                 <bitrate>1000</bitrate>
@@ -53,7 +50,6 @@
                 <mediatype>gif</mediatype>
                 <delay>500</delay>
                 <writeDatas>no</writeDatas>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Animation GIF</label>
                 <label lang="en">GIF Animation</label>
             </subdef>
@@ -62,7 +58,6 @@
                 <size>200</size>
                 <mediatype>image</mediatype>
                 <writeDatas>no</writeDatas>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
@@ -73,7 +68,6 @@
                 <path>{{datapathnoweb}}{{basename}}/subdefs</path>
                 <mediatype>audio</mediatype>
                 <writeDatas>yes</writeDatas>
-                <baseurl></baseurl>
                 <label lang="fr">Prévisualisation</label>
                 <label lang="en">Preview</label>
             </subdef>
@@ -81,7 +75,6 @@
                 <path>{{datapathweb}}{{basename}}/subdefs</path>
                 <mediatype>image</mediatype>
                 <writeDatas>no</writeDatas>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
@@ -91,7 +84,6 @@
                 <path>{{datapathnoweb}}{{basename}}/subdefs</path>
                 <mediatype>flexpaper</mediatype>
                 <writeDatas>no</writeDatas>
-                <baseurl></baseurl>
                 <label lang="fr">Prévisualisation</label>
                 <label lang="en">Preview</label>
             </subdef>
@@ -102,7 +94,6 @@
                 <dpi>72</dpi>
                 <size>200</size>
                 <writeDatas>no</writeDatas>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
@@ -115,7 +106,6 @@
                 <writeDatas>no</writeDatas>
                 <method>resample</method>
                 <dpi>72</dpi>
-                <baseurl></baseurl>
                 <label lang="fr">Prévisualisation</label>
                 <label lang="en">Preview</label>
             </subdef>
@@ -125,7 +115,6 @@
                 <writeDatas>no</writeDatas>
                 <method>resample</method>
                 <dpi>72</dpi>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
diff --git a/lib/conf.d/data_templates/fr-simple.xml b/lib/conf.d/data_templates/fr-simple.xml
index 1ad99c68d4..accb24429e 100755
--- a/lib/conf.d/data_templates/fr-simple.xml
+++ b/lib/conf.d/data_templates/fr-simple.xml
@@ -11,7 +11,6 @@
                 <strip>no</strip>
                 <quality>75</quality>
                 <meta>yes</meta>
-                <baseurl></baseurl>
                 <mediatype>image</mediatype>
                 <label lang="fr">Prévisualisation</label>
                 <label lang="en">Preview</label>
@@ -25,7 +24,6 @@
                 <quality>75</quality>
                 <meta>no</meta>
                 <mediatype>image</mediatype>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
@@ -36,7 +34,6 @@
                 <size>800</size>
                 <mediatype>video</mediatype>
                 <writeDatas>yes</writeDatas>
-                <baseurl></baseurl>
                 <acodec>libfaac</acodec>
                 <vcodec>libx264</vcodec>
                 <bitrate>1000</bitrate>
@@ -51,7 +48,6 @@
                 <mediatype>gif</mediatype>
                 <delay>500</delay>
                 <writeDatas>no</writeDatas>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Animation GIF</label>
                 <label lang="en">GIF Animation</label>
             </subdef>
@@ -60,7 +56,6 @@
                 <size>200</size>
                 <mediatype>image</mediatype>
                 <writeDatas>no</writeDatas>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
@@ -70,7 +65,6 @@
                 <path>{{datapathnoweb}}{{basename}}/subdefs</path>
                 <mediatype>audio</mediatype>
                 <writeDatas>yes</writeDatas>
-                <baseurl></baseurl>
                 <label lang="fr">Prévisualisation</label>
                 <label lang="en">Preview</label>
             </subdef>
@@ -79,7 +73,6 @@
                 <mediatype>image</mediatype>
                 <size>200</size>
                 <writeDatas>no</writeDatas>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
@@ -89,7 +82,6 @@
                 <path>{{datapathnoweb}}{{basename}}/subdefs</path>
                 <mediatype>flexpaper</mediatype>
                 <writeDatas>no</writeDatas>
-                <baseurl></baseurl>
                 <label lang="fr">Prévisualisation</label>
                 <label lang="en">Preview</label>
             </subdef>
@@ -100,7 +92,6 @@
                 <dpi>72</dpi>
                 <size>200</size>
                 <writeDatas>no</writeDatas>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
@@ -113,7 +104,6 @@
                 <writeDatas>no</writeDatas>
                 <method>resample</method>
                 <dpi>72</dpi>
-                <baseurl></baseurl>
                 <label lang="fr">Prévisualisation</label>
                 <label lang="en">Preview</label>
             </subdef>
@@ -123,7 +113,6 @@
                 <writeDatas>no</writeDatas>
                 <method>resample</method>
                 <dpi>72</dpi>
-                <baseurl>{{dataurl}}/{{basename}}/subdefs</baseurl>
                 <label lang="fr">Imagette</label>
                 <label lang="en">Thumbnail</label>
             </subdef>
diff --git a/templates/web/admin/subdefs.twig b/templates/web/admin/subdefs.twig
index b8b87941b6..21d5dc16c7 100644
--- a/templates/web/admin/subdefs.twig
+++ b/templates/web/admin/subdefs.twig
@@ -241,15 +241,6 @@
                         </td>
                         <td></td>
                       </tr>
-                      <tr>
-                        <td>
-                {% trans 'Baseurl' %}
-                          </td>
-                          <td>
-                            <input class="url_testable can_empty same_domain" type="text" value="{{subdef.get_baseurl()}}" name="{{subdefgroup}}_{{subdefname}}_baseurl"/>
-                          </td>
-                          <td></td>
-                        </tr>
                         <tr>
                           <td>
                 {% trans 'Write Metas' %}
diff --git a/tests/Alchemy/Phrasea/Application/OverviewTest.php b/tests/Alchemy/Phrasea/Application/OverviewTest.php
index f3d6732126..2c751b52b0 100644
--- a/tests/Alchemy/Phrasea/Application/OverviewTest.php
+++ b/tests/Alchemy/Phrasea/Application/OverviewTest.php
@@ -25,19 +25,11 @@ class ApplicationOverviewTest extends PhraseanetWebTestCaseAuthenticatedAbstract
         $crawler = $this->client->request('GET', '/datafiles/' . static::$records['record_1']->get_sbas_id() . '/' . static::$records['record_1']->get_record_id() . '/preview/');
         $response = $this->client->getResponse();
 
-        if (static::$records['record_1']->get_preview()->get_baseurl() !== '') {
-            $this->assertEquals(302, $response->getStatusCode());
-            $url = p4string::delEndSlash($registry->get('GV_ServerName')) . $response->headers->get('Location');
-            $headers = http_query::getHttpHeaders($url);
-            $this->assertEquals(static::$records['record_1']->get_preview()->get_mime(), $headers['content_type']);
-            $this->assertEquals(static::$records['record_1']->get_preview()->get_size(), $headers['download_content_length']);
-        } else {
-            $this->assertEquals(200, $response->getStatusCode());
-            $content_disposition = explode(';', $response->headers->get('content-disposition'));
-            $this->assertEquals($content_disposition[0], 'attachment');
-            $this->assertEquals(static::$records['record_1']->get_preview()->get_mime(), $response->headers->get('content-type'));
-            $this->assertEquals(static::$records['record_1']->get_preview()->get_size(), $response->headers->get('content-length'));
-        }
+        $this->assertEquals(200, $response->getStatusCode());
+        $content_disposition = explode(';', $response->headers->get('content-disposition'));
+        $this->assertEquals($content_disposition[0], 'attachment');
+        $this->assertEquals(static::$records['record_1']->get_preview()->get_mime(), $response->headers->get('content-type'));
+        $this->assertEquals(static::$records['record_1']->get_preview()->get_size(), $response->headers->get('content-length'));
 
         $crawler = $this->client->request('GET', '/datafiles/' . static::$records['record_1']->get_sbas_id() . '/' . static::$records['record_1']->get_record_id() . '/asubdefthatdoesnotexists/');
         $response = $this->client->getResponse();
@@ -81,11 +73,7 @@ class ApplicationOverviewTest extends PhraseanetWebTestCaseAuthenticatedAbstract
         $crawler = $this->client->request('GET', $url);
         $response = $this->client->getResponse();
 
-        if (static::$records['record_1']->get_preview()->get_baseurl() !== '') {
-            $this->assertEquals(302, $response->getStatusCode());
-        } else {
-            $this->assertEquals(200, $response->getStatusCode());
-        }
+        $this->assertEquals(200, $response->getStatusCode());
 
         $url = $url . 'view/';
         $crawler = $this->client->request('GET', $url);
diff --git a/tests/databox/databox_subdefTest.php b/tests/databox/databox_subdefTest.php
index 509f5195dd..eafa36fdbf 100644
--- a/tests/databox/databox_subdefTest.php
+++ b/tests/databox/databox_subdefTest.php
@@ -13,7 +13,6 @@ class databox_subdefTest extends PHPUnit_Framework_TestCase
      * @covers databox_subdef::get_labels
      * @covers databox_subdef::getSubdefGroup
      * @covers databox_subdef::getSubdefType
-     * @covers databox_subdef::get_baseurl
      * @covers databox_subdef::get_path
      * @covers databox_subdef::getSpecs
      * @covers databox_subdef::getOptions
@@ -24,7 +23,6 @@ class databox_subdefTest extends PHPUnit_Framework_TestCase
         $xml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
                 <subdef class="preview" name="preview_api" downloadable="true">
                     <path>/home/datas/noweb/db_alch_phrasea/subdefs/</path>
-                    <baseurl/>
                     <meta>yes</meta>
                     <mediatype>image</mediatype>
                     <label lang="fr">Prévisualisation</label>
@@ -40,7 +38,6 @@ class databox_subdefTest extends PHPUnit_Framework_TestCase
 
         $this->assertEquals(databox_subdef::CLASS_PREVIEW, $object->get_class());
         $this->assertEquals('/home/datas/noweb/db_alch_phrasea/subdefs/', $object->get_path());
-        $this->assertEquals('', $object->get_baseurl());
         $this->assertInstanceOf('\\Alchemy\\Phrasea\\Media\Subdef\\Subdef', $object->getSubdefType());
         $this->assertEquals($type, $object->getSubdefGroup());
 
@@ -82,7 +79,6 @@ class databox_subdefTest extends PHPUnit_Framework_TestCase
      * @covers databox_subdef::get_labels
      * @covers databox_subdef::getSubdefGroup
      * @covers databox_subdef::getSubdefType
-     * @covers databox_subdef::get_baseurl
      * @covers databox_subdef::get_path
      * @covers databox_subdef::getSpecs
      * @covers databox_subdef::getOptions
@@ -93,7 +89,6 @@ class databox_subdefTest extends PHPUnit_Framework_TestCase
         $xml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
                 <subdef class="thumbnail" name="video_api" downloadable="false">
                     <path>/home/datas/noweb/db_alch_phrasea/video/</path>
-                    <baseurl>/video/</baseurl>
                     <meta>no</meta>
                     <mediatype>video</mediatype>
                     <size>196</size>
@@ -112,7 +107,6 @@ class databox_subdefTest extends PHPUnit_Framework_TestCase
 
         $this->assertEquals(databox_subdef::CLASS_THUMBNAIL, $object->get_class());
         $this->assertEquals('/home/datas/noweb/db_alch_phrasea/video/', $object->get_path());
-        $this->assertEquals('/video/', $object->get_baseurl());
         $this->assertInstanceOf('\\Alchemy\\Phrasea\\Media\Subdef\\Subdef', $object->getSubdefType());
         $this->assertEquals($type, $object->getSubdefGroup());
 
@@ -152,7 +146,6 @@ class databox_subdefTest extends PHPUnit_Framework_TestCase
         $xml = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
                 <subdef class="thumbnail" name="gifou" downloadable="false">
                     <path>/home/datas/noweb/db_alch_phrasea/video/</path>
-                    <baseurl>web//db_alch_beta/subdefs/</baseurl>
                     <meta>no</meta>
                     <mediatype>gif</mediatype>
                     <size>200</size>
diff --git a/tests/media/media_subdefTest.php b/tests/media/media_subdefTest.php
index 4b3716a2a0..b9a539d026 100644
--- a/tests/media/media_subdefTest.php
+++ b/tests/media/media_subdefTest.php
@@ -144,15 +144,6 @@ class media_subdefTest extends \PhraseanetPHPUnitAbstract
         $this->assertEquals(dirname(self::$objectNotPresent->get_pathfile()) . DIRECTORY_SEPARATOR, self::$objectNotPresent->get_path());
     }
 
-    /**
-     * @covers media_subdef::get_baseurl
-     */
-    public function testGet_baseurl()
-    {
-        $this->assertInternalType('string', self::$objectPresent->get_baseurl());
-        $this->assertInternalType('string', self::$objectNotPresent->get_baseurl());
-    }
-
     /**
      * @covers media_subdef::get_file
      */
