Set field types and serialize as koral:fields
Change-Id: I6f256fcbf3996e6ae45db60bc3aef98ff431b0b9
diff --git a/t/annotation/meta.t b/t/annotation/meta.t
index d4773d7..deea71f 100644
--- a/t/annotation/meta.t
+++ b/t/annotation/meta.t
@@ -25,36 +25,36 @@
my $meta = $doc->meta;
-is($meta->{title}, 'Beispiel Text', 'title');
-is($meta->{sub_title}, 'Beispiel Text Untertitel', 'title');
-is($meta->{pub_date}, '20010402', 'Publication date');
-is($meta->{pub_place}, 'Mannheim', 'Publication place');
-is($meta->{author}, 'Mustermann, Max', 'Author');
+is($meta->{T_title}, 'Beispiel Text', 'title');
+is($meta->{T_sub_title}, 'Beispiel Text Untertitel', 'title');
+is($meta->{D_pub_date}, '20010402', 'Publication date');
+is($meta->{S_pub_place}, 'Mannheim', 'Publication place');
+is($meta->{T_author}, 'Mustermann, Max', 'Author');
-is($meta->{publisher}, 'Artificial articles Inc.', 'Publisher');
-is($meta->{editor}, 'Monika Mustermann', 'Editor');
-is($meta->{text_type}, 'Zeitung: Tageszeitung', 'Text Type');
-is($meta->{text_type_art}, 'Bericht', 'Text Type Art');
-is($meta->{text_type_ref}, 'Aphorismen', 'Text Type Ref');
-ok(!$meta->{text_column}, 'Text Column');
-ok(!$meta->{text_domain}, 'Text Domain');
-is($meta->{creation_date}, '19990601', 'Creation Date');
+is($meta->{A_publisher}, 'Artificial articles Inc.', 'Publisher');
+is($meta->{A_editor}, 'Monika Mustermann', 'Editor');
+is($meta->{S_text_type}, 'Zeitung: Tageszeitung', 'Text Type');
+is($meta->{S_text_type_art}, 'Bericht', 'Text Type Art');
+is($meta->{S_text_type_ref}, 'Aphorismen', 'Text Type Ref');
+ok(!$meta->{S_text_column}, 'Text Column');
+ok(!$meta->{S_text_domain}, 'Text Domain');
+is($meta->{D_creation_date}, '19990601', 'Creation Date');
ok(!$meta->{license}, 'License');
ok(!$meta->{pages}, 'Pages');
-ok(!$meta->{file_edition_statement}, 'File Edition Statement');
-ok(!$meta->{bibl_edition_statement}, 'Bibl Edition Statement');
-ok(!$meta->{reference}, 'Reference');
-is($meta->{language}, 'de', 'Language');
+ok(!$meta->{A_file_edition_statement}, 'File Edition Statement');
+ok(!$meta->{A_bibl_edition_statement}, 'Bibl Edition Statement');
+ok(!$meta->{A_reference}, 'Reference');
+is($meta->{S_language}, 'de', 'Language');
-is($meta->{doc_title}, 'Beispiel Dokument', 'Doc: title');
-ok(!$meta->{doc_sub_title}, 'Doc: subtitle');
-ok(!$meta->{doc_editor}, 'Doc: editor');
-ok(!$meta->{doc_author}, 'Doc: author');
+is($meta->{T_doc_title}, 'Beispiel Dokument', 'Doc: title');
+ok(!$meta->{T_doc_sub_title}, 'Doc: subtitle');
+ok(!$meta->{A_doc_editor}, 'Doc: editor');
+ok(!$meta->{T_doc_author}, 'Doc: author');
-is($meta->{corpus_title}, 'Werke von Beispiel', 'Corpus: title');
-ok(!$meta->{corpus_sub_title}, 'Corpus: subtitle');
-is($meta->{corpus_editor}, 'Mustermann, Monika', 'Corpus: editor');
-is($meta->{corpus_author}, 'Mustermann, Max', 'Corpus: author');
+is($meta->{T_corpus_title}, 'Werke von Beispiel', 'Corpus: title');
+ok(!$meta->{T_corpus_sub_title}, 'Corpus: subtitle');
+is($meta->{A_corpus_editor}, 'Mustermann, Monika', 'Corpus: editor');
+is($meta->{T_corpus_author}, 'Mustermann, Max', 'Corpus: author');
done_testing;