Skip to content

Commit

Permalink
fix(report): EPUB title is a top-level item
Browse files Browse the repository at this point in the history
EPUB title listed in the header instead of being nested in metadata
details. It is also still in the details (along with “dc:title”).

Ace version and report generation date are on one line under the report
title.

Fixes #62
  • Loading branch information
marisademeglio committed Oct 31, 2017
1 parent c6b3b9a commit 5f210d4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/report/resources/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
$("#software-name").text(metadata["softwareName"]);
$("#software-version").text(metadata["softwareVersion"]);
$("#report-date").text(metadata["reportDate"]);

}

function populateFilters(filters) {
Expand Down Expand Up @@ -197,6 +196,9 @@
dl.append('<dt>' + key + '</dt>');
dl.append('<dd>' + metadata[key] + '</dd>');
}

// also stick the title in the main part of the header
$("#pub-title").text(metadata["dc:title"])
}
function populateA11yMetadataSummary(a11ymetadata, pubmetadata) {

Expand Down Expand Up @@ -372,12 +374,8 @@

<div id="report-metadata" class="jumbotron">
<h1>EPUB Accessibility Report</h1>
<dl>
<dt>Generated by</dt>
<dd><span id="software-name"></span> (<span id="software-version"></span>)</dd>
<dt>Created on</dt>
<dd id="report-date"></dd>
</dl>
<p class="font-italic">Generated by <span id="software-name"></span> (<span id="software-version"></span>) on <span id="report-date"></span></p>
<p><span class="font-weight-bold">Title:</span> <span id="pub-title"></span></p>
<details>
<summary>Metadata details</summary>
<dl id="pub-metadata"></dl>
Expand Down

0 comments on commit 5f210d4

Please sign in to comment.