@@ -551,7 +551,7 @@ def test_metadata_pipe_add_record_as_dublin_core_with_translator_contributor(sel
551551
552552 self .assertEqual (etree .tostring (xml ), xml_str )
553553
554- def test_metadata_pipe_add_record_as_dublin_core_with_editor_contributor (self ):
554+ def test_metadata_pipe_add_record_as_dublin_core_with_editor_creator (self ):
555555 data = {
556556 'title' : 'title' ,
557557 'creators' : {
@@ -579,7 +579,7 @@ def test_metadata_pipe_add_record_as_dublin_core_with_editor_contributor(self):
579579 xml_str += ' xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/'
580580 xml_str += ' http://www.openarchives.org/OAI/2.0/oai_dc.xsd">'
581581 xml_str += '<dc:title>title</dc:title>'
582- xml_str += '<dc:contributor >editor1</dc:contributor >'
582+ xml_str += '<dc:creator >editor1</dc:creator >'
583583 xml_str += '<dc:description>description</dc:description>'
584584 xml_str += '<dc:publisher>publisher</dc:publisher>'
585585 xml_str += '<dc:date>2014</dc:date>'
@@ -648,10 +648,10 @@ def test_metadata_pipe_add_record_as_dublin_core_with_multiple_contributor_group
648648 ['translator1' , None ],
649649 ['translator2' , None ]
650650 ],
651- 'editor ' : [
652- ['editor1 ' , None ],
653- ['editor2 ' , None ],
654- ['editor3 ' , None ]
651+ 'collaborator ' : [
652+ ['collaborator1 ' , None ],
653+ ['collaborator2 ' , None ],
654+ ['collaborator3 ' , None ]
655655 ],
656656 },
657657 'description' : 'description' ,
@@ -674,9 +674,9 @@ def test_metadata_pipe_add_record_as_dublin_core_with_multiple_contributor_group
674674 xml_str += ' xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/'
675675 xml_str += ' http://www.openarchives.org/OAI/2.0/oai_dc.xsd">'
676676 xml_str += '<dc:title>title</dc:title>'
677- xml_str += '<dc:contributor>editor1 </dc:contributor>'
678- xml_str += '<dc:contributor>editor2 </dc:contributor>'
679- xml_str += '<dc:contributor>editor3 </dc:contributor>'
677+ xml_str += '<dc:contributor>collaborator1 </dc:contributor>'
678+ xml_str += '<dc:contributor>collaborator2 </dc:contributor>'
679+ xml_str += '<dc:contributor>collaborator3 </dc:contributor>'
680680 xml_str += '<dc:contributor>translator1</dc:contributor>'
681681 xml_str += '<dc:contributor>translator2</dc:contributor>'
682682 xml_str += '<dc:description>description</dc:description>'
@@ -719,6 +719,10 @@ def test_metadata_pipe_add_record_as_dublin_core_with_multiple_contributor_and_c
719719 ['editor2' , None ],
720720 ['editor3' , None ]
721721 ],
722+ 'collaborator' : [
723+ ['collaborator1' , None ],
724+ ['collaborator2' , None ],
725+ ],
722726 'coordinator' : [
723727 ['coordinator1' , None ],
724728 ['coordinator2' , None ],
@@ -753,9 +757,11 @@ def test_metadata_pipe_add_record_as_dublin_core_with_multiple_contributor_and_c
753757 xml_str += '<dc:creator>organizer2</dc:creator>'
754758 xml_str += '<dc:creator>coordinator1</dc:creator>'
755759 xml_str += '<dc:creator>coordinator2</dc:creator>'
756- xml_str += '<dc:contributor>editor1</dc:contributor>'
757- xml_str += '<dc:contributor>editor2</dc:contributor>'
758- xml_str += '<dc:contributor>editor3</dc:contributor>'
760+ xml_str += '<dc:creator>editor1</dc:creator>'
761+ xml_str += '<dc:creator>editor2</dc:creator>'
762+ xml_str += '<dc:creator>editor3</dc:creator>'
763+ xml_str += '<dc:contributor>collaborator1</dc:contributor>'
764+ xml_str += '<dc:contributor>collaborator2</dc:contributor>'
759765 xml_str += '<dc:contributor>translator1</dc:contributor>'
760766 xml_str += '<dc:contributor>translator2</dc:contributor>'
761767 xml_str += '<dc:description>description</dc:description>'
0 commit comments