Skip to content

Commit

Permalink
final fix orsr
Browse files Browse the repository at this point in the history
  • Loading branch information
celuchmarek committed Jun 25, 2024
1 parent 5023830 commit 00cc542
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public static String fillXsdIdentifier(String formIdentifier) {
}

public static boolean isOrsrUri(String uri) {
return uri != null && uri.contains("://eformulare.justice.sk") || uri.contains("justice.gov.sk/");
return uri != null && (uri.contains("://eformulare.justice.sk") || uri.contains("justice.gov.sk/"));
}

public static String getFsFormIdFromFilename(String filename) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ public boolean findResources() throws XMLValidationException {

return true;
}

@Override
public String getIdentifier() {
return "http://www.justice.gov.sk/Forms";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ private static Element createXMLData(Document document, String identifierUri, St
boolean shouldEmbedSchemas) {
var element = document.createElement("xdc:XMLData");
element.setAttribute("ContentType", "application/xml; charset=UTF-8");
element.setAttribute("Identifier", identifierUri);

if (!shouldEmbedSchemas) {
element.setAttribute("Identifier", identifierUri);
if (!shouldEmbedSchemas)
element.setAttribute("Version", identifierVersion);
}

return element;
}
Expand Down

0 comments on commit 00cc542

Please sign in to comment.