Skip to content

Commit

Permalink
Merge branch 'development' into feature-streaming-zip
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerdahl committed May 1, 2023
2 parents 03fe365 + 5bcaae5 commit 8994894
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,8 @@ else if (userIdDirectory.matches("https?://www.grid.ac.*")) {
}
if (addNameIdentifier) {
sb.append(String.format(
" <nameIdentifier>%s</nameIdentifier>\n",
nameIdentifier));
sb.append(String.format(
" <nameIdentifierScheme>%s</nameIdentifierScheme>\n",
nameIdentifierScheme));
sb.append(String.format(
" <schemeUri>%s</schemeUri>\n",
schemeUri));
" <nameIdentifier nameIdentifierScheme=\"%s\" schemeURI=\"%s\">%s</nameIdentifier>\n",
nameIdentifierScheme, schemeUri, nameIdentifier));
}
}

Expand Down
1 change: 1 addition & 0 deletions DataPackageManager/test/data/DataCiteMetadataSample.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</creator>
</creators>
<titles>
<title>A new method for estimating the global oceanic heat content</title>
</titles>
<publisher>Environmental Data Initiative</publisher>
<publicationYear>2018</publicationYear>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import edu.lternet.pasta.common.FileUtility;
import edu.lternet.pasta.common.eml.EMLParser;
import edu.lternet.pasta.common.eml.ResponsibleParty;
import edu.lternet.pasta.common.eml.Title;
import edu.lternet.pasta.datapackagemanager.JournalCitation;
import junit.framework.TestCase;

Expand All @@ -14,7 +15,7 @@ public class DataCiteMetadataTest extends TestCase {
public static final String DATA_CITE_METADATA_SAMPLE_XML =
"test/data/DataCiteMetadataSample.xml";

public void testToDataCiteXml() throws ConfigurationException
public void testToDataCiteXml() throws Exception
{
DataCiteMetadata dcm = new DataCiteMetadata();

Expand All @@ -28,6 +29,15 @@ public void testToDataCiteXml() throws ConfigurationException
dcm.setPublicationYear("2018");
dcm.setLocationUrl("https://pasta.lternet.edu/package/data/eml/knb-lter-lno/1/1");

Title title = new Title();
title.setTitle("A new method for estimating the global oceanic heat content");
title.setTitleType("Subtitle");

ArrayList<Title> titles = new ArrayList<>();
titles.add(title);

dcm.setTitles(titles);

JournalCitation jc = new JournalCitation();
jc.setArticleDoi("10.1002/2017GL075000");
jc.setArticleTitle("A new method for estimating the global oceanic heat content");
Expand Down
5 changes: 3 additions & 2 deletions common/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<include name="serializer.jar"/>
</fileset>
<fileset dir="${shared.lib.dir}/unboundid">
<include name="unboundid-ldapsdk-se.jar"/>
<include name="unboundid-ldapsdk.jar"/>
</fileset>
<fileset dir="${shared.lib.dir}/jaxb-eml-2.1.0">
<include name="eml-2.1.0.jar"/>
Expand All @@ -67,14 +67,15 @@
<include name="quickcheck-0.6.jar"/>
</fileset>
<fileset dir="${shared.lib.dir}/postgresql">
<include name="postgresql-42.2.5.jre7.jar"/>
<include name="**/*.jar"/>
</fileset>
</copy>
</target>

<target name="clean" description="Deletes compiled classes">
<delete dir="${classes.dir}"/>
<delete dir="${jar.dir}"/>
<delete dir="${lib.dir}"/>
</target>

<target name="jar" depends="compile">
Expand Down
Binary file removed lib/postgresql/postgresql-42.2.5.jre7.jar
Binary file not shown.
Binary file added lib/postgresql/postgresql-42.6.0.jar
Binary file not shown.
Binary file added lib/slf4j/slf4j-api-2.0.7.jar
Binary file not shown.

0 comments on commit 8994894

Please sign in to comment.