mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-02 14:49:16 +02:00
Merge pull request #1237 from johnfactotum/fix-cfi-base
This commit is contained in:
commit
5c610143bf
2 changed files with 2 additions and 1 deletions
|
@ -167,6 +167,7 @@ class Packaging {
|
||||||
// var manifestPropArray = manifestProps.length ? manifestProps.split(" ") : [];
|
// var manifestPropArray = manifestProps.length ? manifestProps.split(" ") : [];
|
||||||
|
|
||||||
var itemref = {
|
var itemref = {
|
||||||
|
"id" : item.getAttribute("id"),
|
||||||
"idref" : idref,
|
"idref" : idref,
|
||||||
"linear" : item.getAttribute("linear") || "yes",
|
"linear" : item.getAttribute("linear") || "yes",
|
||||||
"properties" : propArray,
|
"properties" : propArray,
|
||||||
|
|
|
@ -51,7 +51,7 @@ class Spine {
|
||||||
var spineItem;
|
var spineItem;
|
||||||
|
|
||||||
item.index = index;
|
item.index = index;
|
||||||
item.cfiBase = this.epubcfi.generateChapterComponent(this.spineNodeIndex, item.index, item.idref);
|
item.cfiBase = this.epubcfi.generateChapterComponent(this.spineNodeIndex, item.index, item.id);
|
||||||
|
|
||||||
if (item.href) {
|
if (item.href) {
|
||||||
item.url = resolver(item.href, true);
|
item.url = resolver(item.href, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue