Making sure replaced file also has correct content type value.

This commit is contained in:
hjk54 2010-03-11 18:34:50 +00:00
parent 18e9991839
commit 7c8fa0f544

View file

@ -415,7 +415,7 @@ public class FedoraDatastreamController extends VitroHttpServlet implements Cons
wdf.getDataPropertyStatementDao().deleteDataPropertyStatementsForIndividualByDataProperty(fileEntity, contentType); wdf.getDataPropertyStatementDao().deleteDataPropertyStatementsForIndividualByDataProperty(fileEntity, contentType);
dps = new DataPropertyStatementImpl(); dps = new DataPropertyStatementImpl();
dps.setIndividualURI(fileEntity.getURI()); dps.setIndividualURI(fileEntity.getURI());
dps.setDatapropURI(VitroVocabulary.CONTENT_TYPE); dps.setDatapropURI(contentType.getURI());
dps.setData(fileRes.getContentType()); dps.setData(fileRes.getContentType());
wdf.getDataPropertyStatementDao().insertNewDataPropertyStatement(dps); wdf.getDataPropertyStatementDao().insertNewDataPropertyStatement(dps);
} }