[ 
http://opencast.jira.com/browse/MH-7798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26809#comment-26809
 ] 

Adam Hochman commented on MH-7798:
----------------------------------

Here is an example as to how to add additional fields...
modules/matterhorn-dublincore/src/test/java/org/opencastproject/metadata/dublincore/DublinCoreTest.java
  

  // Add a field with an encoding scheme                                        
                                                                                
              
      dcNew.add(PROPERTY_LICENSE, new 
DublinCoreValue("http://www.opencastproject.org/license";,
              DublinCore.LANGUAGE_UNDEFINED, ENC_SCHEME_URI));
      // Don't forget to bind the namespace...                                  
                                                                                
                  
      dcNew.bindPrefix("octest", "http://www.opencastproject.org";);
      dcNew.add(PROPERTY_PROMOTED, new DublinCoreValue("true", 
DublinCore.LANGUAGE_UNDEFINED, new EName(
              "http://www.opencastproject.org";, "Boolean")));
      try {
        dcNew.add(PROPERTY_PROMOTED, new DublinCoreValue("true", 
DublinCore.LANGUAGE_UNDEFINED, new EName(
                "http://www.opencastproject.org/enc-scheme";, "Boolean")));
        fail();
      } catch (NamespaceBindingException e) {
        // Ok. This exception is expected to occur                              
                                                                                
                  
      }


> Add Support for Keywords for YouTube and iTunes 
> ------------------------------------------------
>
>                 Key: MH-7798
>                 URL: http://opencast.jira.com/browse/MH-7798
>             Project: Matterhorn Project
>          Issue Type: Sub-Task
>          Components: Architecture & Services, Distribution
>    Affects Versions: None
>            Reporter: Adam Hochman
>            Assignee: Kristofor Amundson
>             Fix For: None
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to