lib/ddr/models/structure.rb in ddr-models-3.0.0.beta.1 vs lib/ddr/models/structure.rb in ddr-models-3.0.0.beta.2

- old
+ new

@@ -11,9 +11,17 @@ def struct_maps @struct_maps ||= build_struct_maps(structMap_nodes) end + def default_struct_map + struct_maps['default'] || struct_maps[struct_maps.keys.first] + end + + def default_struct_map_ids + default_struct_map.pids + end + def structMap_node(type='default') xpath("//xmlns:structMap[@TYPE='#{type}']").first end def as_xml_document \ No newline at end of file