Skip to content

Commit

Permalink
Fixed a bug to include the eml 2.2.0 namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
taojing2002 committed Sep 11, 2019
1 parent f6b4ecf commit cc96e66
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -92,7 +92,7 @@ public class MetacatCatalog extends AbstractCatalog {
private final String QUERY =
"SELECT xd.docid, xd.doctype, xd.date_updated " +
"FROM xml_documents xd, identifier id " +
"WHERE xd.doctype like '%//ecoinformatics.org/eml-2%' " +
"WHERE xd.doctype like '%ecoinformatics.org/eml-2%' " +
" AND xd.docid = id.docid " +
" AND xd.rev = id.rev " +
// ALLOW rule
Expand Down Expand Up @@ -516,7 +516,7 @@ private boolean isIncludedDoctype(String doctype, String metadataPrefix) {
*/
if (doctype != null &&
(metadataPrefix.equals("oai_dc") ||
(doctype.contains("//ecoinformatics.org/eml-") &&
(doctype.contains("ecoinformatics.org/eml-") &&
doctype.endsWith(metadataPrefix)
)
)
Expand Down

0 comments on commit cc96e66

Please sign in to comment.