I'm using rubydora to load and associate page objects for the Islandora book
content model.

I do not understand how to add some of the data to the RELS-EXT
datastream.  For the example RELS-EXT below, adding an entry for
'islandora:isPageOf' to the RELS_EXT constant in the
relationships_mixin.rb works (though surely that's not the best method,
having to modify rubydora code).

However, I'm at a loss adding those elements that include text -
isPageNumber, isSequenceNumber, etc

What should I be looking at?   Just replacing the entire datastream?

Here's an example of the kind of RELS-EXT I'm trying to achieve:

  <rdf:RDF xmlns:fedora="info:fedora/fedora-system:def/relations-external#"
                 xmlns:fedora-model="info:fedora/fedora-system:def/model#"
                 xmlns:islandora="http://islandora.ca/ontology/relsext#";
                 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>

    <rdf:Description rdf:about="info:fedora/islandora:1286">

      <fedora:isMemberOf rdf:resource="info:fedora/islandora:1285"/>
      <fedora-model:hasModel
rdf:resource="info:fedora/islandora:pageCModel"/>

      <islandora:isPageOf rdf:resource="info:fedora/islandora:1285"/>

      <islandora:isSequenceNumber>
          1
      </islandora:isSequenceNumber>

      <islandora:isPageNumber>
          1
      </islandora:isPageNumber>

      <islandora:isSection>
          1
      </islandora:isSection>

      <islandora:hasLanguage>
         eng
      </islandora:hasLanguage>

      <islandora:preprocess>
        false
      </islandora:preprocess>

    </rdf:Description>
  </rdf:RDF>


Thanks,

Randy Fischer
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to