Changeset 4277


Ignore:
Timestamp:
01/16/14 17:53:17 (10 years ago)
Author:
sroth
Message:

Created xml output compliant with schema used as of Jan 15th 2014. Commented out xpointer value for link attribute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/conversion.utils.js

    r3669 r4277  
    113113                      <annotation xmlns="http://www.dasish.eu/ns/addit"\n\
    114114                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\n\
     115                            xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"\n\
    115116                            xmlns:xhtml="http://www.w3.org/1999/xhtml"\n\
    116                             xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"\n\
     117                            lastModified="'+timestamp.toISOString()+'"\n\
    117118                            URI="tempAID'+om_object.oid+'"\n\
    118                             timeStamp="'+timestamp.toISOString()+'">\n\
    119                         <owner ref="http://dasish.eu/users/UIxyz/how_will_this_be_sent_from_the_client"/>\n\
    120                         <headline>'+om_object.oid_title+'</headline>\n\
    121                         <body type="application/xml+xhtml">\n\
    122                             <![CDATA[<xhtml:span style="'+style+'">'+note+'</xhtml:span>]]>\n\
     119                            ownerRef="tempownerRef'+om_object.oid+'"\n\
     120                            headline="'+om_object.oid_title+'">\n\
     121                        <body>\n\
     122                            <xmlBody mimeType="application/xml+xhtml">\n\
     123                                <xhtml:span style="'+style+'">'+note+'</xhtml:span>\n\
     124                            </xmlBody>\n\
    123125                        </body>\n\
    124                         <targetSources>\n\
    125                             <target>\n\
    126                                 <source xml:id="tmp'+om_object.oid+'">\n\
    127                                     <link>'+om_object.doc_url+xpointer+'</link>\n\
    128                                     <version>'+timestamp.toISOString()+'</version>\n\
    129                                 </source>\n\
    130                             </target>\n\
    131                         </targetSources>\n\
    132                         <permissions ref="tmpPermissionsListID'+om_object.oid+'"/>\n\
     126                            <targets>\n\
     127                                <targetInfo ref="'+annotationFramework.getBackend()+'/api/targets/00000000-0000-0000-'+om_object.oid.substring(0,4)+'-'+om_object.oid.substring(4,14)+'"\n\
     128                                    link="'+om_object.doc_url/*+xpointer*/+'"\n\
     129                                    version="'+timestamp.toISOString()+'"/>\n\
     130                            </targets>\n\
     131                            <permissions>\n\
     132                                <userWithPermission permission="owner" ref="tmpPermissionsListID'+om_object.oid+'"/>\n\
     133                            </permissions>\n\
    133134                      </annotation>';
    134135    return annotation;
Note: See TracChangeset for help on using the changeset viewer.