Skip to content

Commit

Permalink
Fix authors separator
Browse files Browse the repository at this point in the history
  • Loading branch information
misdoro committed Sep 20, 2012
1 parent d1bf65c commit 8118ecd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
15 changes: 8 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.vamdc.kida</groupId>
<artifactId>kida_dao</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>12.07</version>
<name>Kida database objects</name>

<parent>
<groupId>org.vamdc.tap</groupId>
<artifactId>cayenne_dao</artifactId>
<version>12.07</version>
</parent>

<repositories>
<repository>
<id>vamdc repository</id>
<name>VAMDC stuff for Maven</name>
<url>http://vamdc.doronin.org/maven/</url>
<url>http://dev.vamdc.org/nexus/content/repositories/releases</url>
<layout>default</layout>
</repository>
</repositories>

<parent>
<groupId>org.vamdc.parent</groupId>
<artifactId>cayenne_dao</artifactId>
<version>0.0.1</version>
</parent>
</project>
5 changes: 3 additions & 2 deletions src/main/java/org/vamdc/kida/dao/Biblio.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ public Collection<String> getAllAuthors() {
Collection<String> authors = new ArrayList<String>();
authors.add(this.getMainAuthor());
if (this.getAuthors()!=null)
for (String author: this.getAuthors().split(";"))
for (String author: this.getAuthors().split("[;\n\r]"))
{
authors.add(author.trim());
if (author.trim().length()>0)
authors.add(author.trim());
}
return authors;
}
Expand Down

0 comments on commit 8118ecd

Please sign in to comment.