Skip to content

Commit 1931d73

Browse files
committed
fix: remove undefined script-related fields from the JSON report
This commit remove the following properties from the JSON report, as these were no longer set by EPUBCheck: - `scriptSrc` - `scriptTag` - `scriptInline` The report now on says if an item is scripted or not. See #1515
1 parent 00b1d20 commit 1931d73

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

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

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ public class ItemMetadata implements Comparable<ItemMetadata>
3737
@JsonProperty
3838
private boolean isScripted;
3939
@JsonProperty
40-
private boolean scriptSrc;
41-
@JsonProperty
42-
private boolean scriptTag;
43-
@JsonProperty
44-
private boolean scriptInline;
45-
@JsonProperty
4640
private String renditionLayout;
4741
@JsonProperty
4842
private String renditionOrientation;
@@ -167,24 +161,6 @@ public void handleInfo(FeatureEnum feature, String value)
167161
case SPINE_INDEX:
168162
this.spineIndex = Integer.parseInt(value.trim());
169163
break;
170-
case SCRIPT:
171-
if (value.equals("inline"))
172-
{
173-
this.scriptInline = true;
174-
}
175-
else if (value.equals("external"))
176-
{
177-
this.scriptSrc = true;
178-
}
179-
else if (value.equals("javascript"))
180-
{
181-
this.scriptSrc = true;
182-
}
183-
else if (value.equals("tag"))
184-
{
185-
this.scriptTag = true;
186-
}
187-
break;
188164
case RENDITION_LAYOUT:
189165
this.renditionLayout = value;
190166
break;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ public enum FeatureEnum
7474
RENDITION_ORIENTATION("rendition:orientation"),
7575
RENDITION_SPREAD("rendition:spread"),
7676
RESOURCE("resource"),
77-
SCRIPT("script"),
7877
SECTIONS("sections"),
7978
SHA_256("SHA-256"),
8079
SIZE("size"),

0 commit comments

Comments
 (0)