[Fusionforge-commits] r12242 - branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers

Olivier Berger olberger at libremir.placard.fr.eu.org
Thu Feb 10 16:12:45 CET 2011


Author: olberger
Date: 2011-02-10 16:12:45 +0100 (Thu, 10 Feb 2011)
New Revision: 12242

Modified:
   branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers/OSLCConnector.php
Log:
Update prefixes used to describe ChangeRequests.

Modified: branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers/OSLCConnector.php
===================================================================
--- branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers/OSLCConnector.php	2011-02-10 15:12:41 UTC (rev 12241)
+++ branches/Branch_5_1/src/plugins/oslc/include/oslc-zend/application/controllers/OSLCConnector.php	2011-02-10 15:12:45 UTC (rev 12242)
@@ -241,7 +241,7 @@
 
 			$feedentry = $this->prepareChangeRequest($changerequest);
 
-			$feedentry['title'] = 'changerequest '.$identifier.' : '.$feedentry['resource']['dc:title'];
+			$feedentry['title'] = 'changerequest '.$identifier.' : '.$feedentry['resource']['dcterms:title'];
 			$feedentry['id']= $uri.$identifier;
 
 			$returned[] = $feedentry;
@@ -283,7 +283,7 @@
 					// TODO : use real RDF triples ?
 					$tokens = explode(':', $fieldname);
 					if( (count($tokens) == 1) && (in_array($fieldname,$dc_attr))) {
-						$fieldname = 'dc:'.$fieldname;
+						$fieldname = 'dcterms:'.$fieldname;
 					}
 					$preparedChangeRequest['resource'][$fieldname] = $value;
 					break;




More information about the Fusionforge-commits mailing list