* -------------------------------- Autoren als Personen --------------------------------
*/
if (myLeft.equals("AU")) {
StringTokenizer tokenizer = new StringTokenizer(myRight, ";");
while (tokenizer.hasMoreTokens()) {
Person p = new Person(this.myPrefs.getMetadataTypeByName("ZBLAuthor"));
String myTok = tokenizer.nextToken();
if (myTok.indexOf(",") == -1) {
throw new WrongImportFileException("Parsingfehler: Vorname nicht mit Komma vom Nachnamen getrennt ('" + myTok + "')");
}
p.setLastname(myTok.substring(0, myTok.indexOf(",")).trim());
p.setFirstname(myTok.substring(myTok.indexOf(",") + 1, myTok.length()).trim());
p.setRole("ZBLAuthor");
inStruct.addPerson(p);
}
return;
}
/*
* -------------------------------- AutorVariationen als Personen --------------------------------
*/
if (myLeft.equals("NH")) {
StringTokenizer tokenizer = new StringTokenizer(myRight, ";");
while (tokenizer.hasMoreTokens()) {
Person p = new Person(this.myPrefs.getMetadataTypeByName("AuthorVariation"));
String myTok = tokenizer.nextToken();
if (myTok.indexOf(",") == -1) {
throw new WrongImportFileException("Parsingfehler: Vorname nicht mit Komma vom Nachnamen getrennt ('" + myTok + "')");
}
p.setLastname(myTok.substring(0, myTok.indexOf(",")).trim());
p.setFirstname(myTok.substring(myTok.indexOf(",") + 1, myTok.length()).trim());
p.setRole("AuthorVariation");
inStruct.addPerson(p);
}
return;
}