From 7c8fa0f5444408722453098ecf821dd7f7f4c187 Mon Sep 17 00:00:00 2001 From: hjk54 Date: Thu, 11 Mar 2010 18:34:50 +0000 Subject: [PATCH] Making sure replaced file also has correct content type value. --- .../vitro/webapp/controller/FedoraDatastreamController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/FedoraDatastreamController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/FedoraDatastreamController.java index 6dd15882c..355adff72 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/FedoraDatastreamController.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/FedoraDatastreamController.java @@ -415,7 +415,7 @@ public class FedoraDatastreamController extends VitroHttpServlet implements Cons wdf.getDataPropertyStatementDao().deleteDataPropertyStatementsForIndividualByDataProperty(fileEntity, contentType); dps = new DataPropertyStatementImpl(); dps.setIndividualURI(fileEntity.getURI()); - dps.setDatapropURI(VitroVocabulary.CONTENT_TYPE); + dps.setDatapropURI(contentType.getURI()); dps.setData(fileRes.getContentType()); wdf.getDataPropertyStatementDao().insertNewDataPropertyStatement(dps); }