• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

curationexperts / epigaea / 1677
91%
master: 90%

Build:
Build:
LAST BUILD BRANCH: turbolinks-batch-fix
DEFAULT BRANCH: master
Ran 29 Nov 2017 02:30PM UTC
Jobs 1
Files 176
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1677

push

travis-ci

little9
This commit introduces a `Tufts::TechnicalMetadata` class that can be used to
generate XML that contains the persisted technical metadata for a work. Using
the persisted metadata saves us from having to do run another characterization
on the file.

That metadata is added to the `Tufts::XmlMetadataBuilder` so that when
you export a work, the technical metadata is exported as well.

The export also uses the original file name as the `<tufts:file_name>` in the
primary section of the XML. Before exports were being generated without
a filename and you needed to add one to the XML before an import.

Here is an example export:

```xml
<?xml version="1.0"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/">
  <ListRecords>
    <record>
      <metadata>
        <technicalmetadata>
  <file>
    <byte_order/>
    <compression/>
    <height/>
    <color_space/>
    <profile_name/>
    <profile_version/>
    <orientation/>
    <color_map/>
    <image_producer/>
    <capture_device/>
    <scanning_software/>
    <gps_timestamp/>
    <latitude/>
    <longitude/>
    <file_title>This is a test PDF file</file_title>
    <page_count>1</page_count>
    <duration/>
    <sample_rate/>
    <format_label>Portable Document Format</format_label>
    <file_size>7945</file_size>
    <file_name>pdf-sample.pdf</file_name>
    <well_formed>true</well_formed>
    <original_checksum>fa7d7e650b2cec68f302b31ba28235d8</original_checksum>
    <mime_type>a</mime_type>
    <size>1</size>
  </file>
</technicalmetadata>
        <mira_import xmlns:model="info:fedora/fedora-system:def/model#" xmlns:dc="http://purl.org/dc/terms/" xmlns:bibframe="http://bibframe.org/vocab/" xmlns:dc11="http://purl.org/dc/elements/1.1/" xmlns:ebucore="http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#" xmlns:premis="http://www.loc.gov/premis/rdf/v1#" xmlns:mads="http://www.loc.gov/mads/rdf/v1#" xmlns:marcrelators="http://id.loc.gov/vocabulary/relators/" xmlns:tufts="http://dl.tufts.edu/terms#" xmlns:scho... (continued)

2318 of 2571 relevant lines covered (90.16%)

65.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1677.1 (2.3.4) 29 Nov 2017 02:30PM UTC 0
90.16
Travis Job 1677.1
Source Files on build 1677
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1677
  • 94ecf49c on github
  • Next Build on feature/technical-metadata (#1678)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc