Class: Bplmodels::FitsDatastream
- Inherits:
-
ActiveFedora::OmDatastream
- Object
- ActiveFedora::OmDatastream
- Bplmodels::FitsDatastream
- Includes:
- OM::XML::Document
- Defined in:
- app/models/bplmodels/fits_datastream.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#prefix(path = nil) ⇒ Object
Required for Active Fedora 9.
Class Method Details
.xml_template ⇒ Object
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'app/models/bplmodels/fits_datastream.rb', line 140 def self.xml_template builder = Nokogiri::XML::Builder.new do |xml| xml.fits(xmlns: 'http://hul.harvard.edu/ois/xml/ns/fits/fits_output', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => "http://hul.harvard.edu/ois/xml/ns/fits/fits_output http://hul.harvard.edu/ois/xml/xsd/fits/fits_output.xsd", version: "0.6.0", timestamp: "1/25/12 11:04 AM") { xml.identification { xml.identity(format: '', mimetype: '', toolname: 'FITS', toolversion: '') { xml.tool(toolname: '', toolversion: '') xml.version(toolname: '', toolversion: '') xml.externalIdentifier(toolname: '', toolversion: '') } } xml.fileinfo { xml.size(toolname: '', toolversion: '') xml.creatingApplicatioName(toolname: '', toolversion: '', status: '') xml.lastmodified(toolname: '', toolversion: '', status: '') xml.filepath(toolname: '', toolversion: '', status: '') xml.filename(toolname: '', toolversion: '', status: '') xml.md5checksum(toolname: '', toolversion: '', status: '') xml.fslastmodified(toolname: '', toolversion: '', status: '') } xml.filestatus { xml.tag! "well-formed", toolname: '', toolversion: '', status: '' xml.valid(toolname: '', toolversion: '', status: '') } xml. { xml.document { xml.title(toolname: '', toolversion: '', status: '') xml.(toolname: '', toolversion: '', status: '') xml.pageCount(toolname: '', toolversion: '') xml.isTagged(toolname: '', toolversion: '') xml.hasOutline(toolname: '', toolversion: '') xml.hasAnnotations(toolname: '', toolversion: '') xml.isRightsManaged(toolname: '', toolversion: '', status: '') xml.isProtected(toolname: '', toolversion: '') xml.hasForms(toolname: '', toolversion: '', status: '') } } } end builder.doc end |
Instance Method Details
#prefix(path = nil) ⇒ Object
Required for Active Fedora 9
6 7 8 |
# File 'app/models/bplmodels/fits_datastream.rb', line 6 def prefix(path=nil) return '' end |