Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report link info from the Package Document #96

Closed
mattgarrish opened this issue Oct 24, 2017 · 0 comments
Closed

Report link info from the Package Document #96

mattgarrish opened this issue Oct 24, 2017 · 0 comments

Comments

@mattgarrish
Copy link

It would be useful (but hardly critical) to get a list of links along with the metadata, pairing rel to href.

The reason I ask is that conformance to the a11y spec is done through a link, so I can't pick up if the metadata is already set in the publication:

<link rel="dcterms:conformsTo" href="http://www.idpf.org/epub/a11y/accessibility-20170105.html#wcag-aa"/>

The same is also true for the certifierReport link and potentially also the certifierCredential.

It's not going to be common, but I can see two scenarios where this metadata might be present: 1) someone sets the metadata prematurely/automatically, and 2) someone needs to reverify a publication.

Without access to the link info, I can't reset these fields in the verification tool.

@rdeltour rdeltour added this to the v0.8.0 “Beta 4” milestone Nov 15, 2017
@rdeltour rdeltour changed the title package link info Report link info from the Package Document Nov 15, 2017
@rdeltour rdeltour self-assigned this Dec 5, 2017
rdeltour added a commit that referenced this issue Dec 19, 2017
Publication links (defined as `link` elements in the Package Document) are extracted
and copied under a new `links` property of the `earl:testSubject` object.

For instance, the following OPF snippet:

```
<link rel="a11y:certifierReport" href="http://www.example.com/report.html"/>
```

Would be reported as:

```
"earl:testSubject" {
  …
  "links": {
    "a11y:certifierReport": "http://www.example.com/report.html"
  }
}
```

Only publication-level links (i.e. with no `refines` attribute) are extracted.

Fixes #96
rdeltour added a commit that referenced this issue Dec 20, 2017
)

Publication links (defined as `link` elements in the Package Document) are extracted
and copied under a new `links` property of the `earl:testSubject` object.

For instance, the following OPF snippet:

```
<link rel="a11y:certifierReport" href="http://www.example.com/report.html"/>
```

Would be reported as:

```
"earl:testSubject" {
  …
  "links": {
    "a11y:certifierReport": "http://www.example.com/report.html"
  }
}
```

Only publication-level links (i.e. with no `refines` attribute) are extracted.

Fixes #96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants