Skip to content

Commit 39234a6

Browse files
committed
fix: remove undefined navigationOrder field from the JSON report
This commit remove the `navigationOrder` field from the JSON report, as this was no longer set by EPUBCheck. Navigation order consistency is better checked manually or with help of external tools. See #1515
1 parent 1931d73 commit 39234a6

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/main/java/com/adobe/epubcheck/reporting/ItemMetadata.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public class ItemMetadata implements Comparable<ItemMetadata>
3131
@JsonProperty
3232
private boolean isLinear;
3333
@JsonProperty
34-
private Integer navigationOrder = null;
35-
@JsonProperty
3634
private Boolean isFixedFormat = null;
3735
@JsonProperty
3836
private boolean isScripted;
@@ -170,9 +168,6 @@ public void handleInfo(FeatureEnum feature, String value)
170168
case RENDITION_SPREAD:
171169
this.renditionSpread = value;
172170
break;
173-
case NAVIGATION_ORDER:
174-
this.navigationOrder = Integer.parseInt(value.trim());
175-
break;
176171
default:
177172
//System.err.printf("unhandled info message feature: found '%s' with value '%s'", feature.toString(), value != null ? value : "null");
178173
break;

src/main/java/com/adobe/epubcheck/util/FeatureEnum.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public enum FeatureEnum
6565
MEDIA_OVERLAYS_ACTIVE_CLASS("media:active-class"),
6666
MEDIA_OVERLAYS_PLAYBACK_ACTIVE_CLASS("media:playback-active-class"),
6767
MODIFIED_DATE("modification date"),
68-
NAVIGATION_ORDER("navigation order"),
6968
PAGE_BREAK("epub:page-break"),
7069
PAGE_LIST("epub:page-list"),
7170
PAGES_COUNT("pages count"),

0 commit comments

Comments
 (0)