def test_multiple_marc2marc(): marc = { '8564_': [{ 'f': 'digs_complete_postprint_v1.pdf', 'q': 'application/pdf', 's': '2086891', 'u': 'http://doc.rero.ch/record/8488/files/' + 'digs_complete_postprint_v1.pdf', 'y': 'order:1', 'z': 'Texte intégral' }, { 'f': 'digs_cover_front.pdf', 'q': 'application/pdf', 's': '2605703', 'u': 'http://doc.rero.ch/record/8488/files/digs_cover_front.pdf', 'y': 'order:2', 'z': 'Couverture avant' }, { 'f': 'digs_cover_rear.pdf', 'q': 'application/pdf', 's': '192617', 'u': 'http://doc.rero.ch/record/8488/files/digs_cover_rear.pdf', 'y': 'order:3', 'z': 'Couverture arrière' }, { 'f': 'digs_complete_abstract.pdf', 'q': 'application/pdf', 's': '6361', 'u': 'http://doc.rero.ch/record/8488/files/digs_complete_abs.pdf', 'y': 'order:4', 'z': 'Résumé' }] } converted = marc2marc(marc) assert marc == converted
def test_multiple_authors_marc2marc(): marc = { '100__': { 'a': 'LastName, FirstName', 'd': '1971-', 'u': 'Affiliation' }, '700__': [{ 'a': 'LastName2, FirstName2', 'd': '1941-1978', 'u': 'Affiliation2' }, { 'a': 'LastName3, FirstName3', 'd': '1974-01-01-', 'e': 'Codir.', 'u': 'Affiliation' }, { 'a': 'LastName4, FirstName4', 'd': '1974-', 'e': 'Libr./Impr.' }], '710__': [{ 'a': 'Name1', }, { 'a': 'Name2' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '710__': [{ 'a': 'Corporate name', }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '982__': [{ 'a': 'Collection Name', }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '710__': [{ 'a': 'Corporate name', }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '775__': { 'g': 'Published Version', 'o': 'http://dx.doi.org/10.1111/j.1365-3032.2012.00840.x' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '695__': [{ '9': 'eng', 'a': 'keyword1 ; keyword2' }] } converted = marc2marc(marc) assert marc == converted
def test_lcsh_marc2marc(self): marc = { '600__': [{ '9': '650__', 'a': 'Inventaires' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '250__': { 'a': 'Name', 'b': 'Remainder' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '695__': [{ '9': 'eng', 'a': 'keyword1 ; keyword2' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '520__': [{ 'a': 'Summary Line 1\n Line2', '9': 'eng' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '490__': { 'a': 'Name', 'v': '3' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '506__': { 'a': u'Accès réservé aux institutions membres de RERO', 'f': 'Restricted access', } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '506__': { 'a': u'Accès réservé aux institutions membres de RERO', 'f': 'Restricted access', } } converted = marc2marc(marc) assert marc == converted
def test_lcsh_marc2marc(): marc = { '600__': [{ '9': '650__', 'a': 'Inventaires' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '8564_': [{ 'u': 'http://doc.rero.ch', 'z': 'Home Page' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '775__': [{ 'g': 'published version', 'o': 'http://dx.doi.org/10.1111/j.1365-3032.2012.00840.x' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '500__': [{ 'a': 'Note line 1\n Line 2' }, { 'a': 'Note1 line1\n line 2' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '245__': { 'a': 'Main Title', 'b': "Subtitle", '9': 'eng' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '8564_': [{ 'u': 'http://doc.rero.ch', 'y': '2007-11-25 23:47:43', 'z': 'Home Page' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '533__': { 'a': 'Type', 'b': 'Location', 'c': 'Agency', 'd': '2015.' } } converted = marc2marc(marc) assert marc == converted
def test_first_author_marc2marc(self): marc = { '100__': { 'a': 'LastName, FirstName', 'd': '1971-', 'e': 'Dir.', 'u': 'Affiliation' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '533__': { 'a': 'Electronic reproduction', 'b': 'Location', 'c': 'Agency', 'd': '2015.' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '711__': { 'a': 'Name', 'c': 'Location', 'd': '2015', 'n': '34' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '711__': { 'a': 'Name', 'c': 'Location', 'd': '2015', 'n': '34' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '533__': { 'a': 'Type', 'b': 'Location', 'c': 'Agency', 'd': '2015.' } } converted = marc2marc(marc) assert marc == converted
def test_first_author_marc2marc(): marc = { '100__': { 'a': 'LastName, FirstName', 'd': '1971-', 'e': 'Dir.', 'u': 'Affiliation' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '260__': { 'a': 'Location', 'b': 'Publisher', 'c': '2015-', 'e': 'Print Location', 'f': 'Printer' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '260__': { 'a': 'Location', 'b': 'Publisher', 'c': '2015-', 'e': 'Print Location', 'f': 'Printer' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '8564_': [{ 'f': 'file_name.pdf', 'q': 'application/pdf', 's': '1014', 'u': 'http://doc.rero.ch/record/file_name.pdf', 'y': 'order:1', 'z': 'Main file' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '8564_': [{ 'f': 'file_name.pdf', 'q': 'application/pdf', 's': '1014', 'u': 'http://doc.rero.ch/record/file_name.pdf', 'y': 'order:1', 'z': 'Main file' }] } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '919__': { 'a': 'HES-SO Valais', 'b': 'Sion', 'd': '*****@*****.**' }, '980__': { 'b': 'HEVS_', 'a': 'BOOK' } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = { '919__': { 'a': 'HES-SO Valais', 'b': 'Sion', 'd': '*****@*****.**' }, '980__': { 'b': 'HEVS_', 'a': 'BOOK' } } converted = marc2marc(marc) assert marc == converted
def test_empty_260_marc2marc(self): marc = { "260__": { "a": "A Lausanne :", "c": "1744", "b": "chez Bousquet & Compagnie,", "e": "Lausanne" }, "035__": { "a": "R004127217" }, "990__": { "a": "20061123145722-ML" } } converted = marc2marc(marc) assert marc == converted
def test_empty_260_marc2marc(): marc = { "260__": { "a": "A Lausanne :", "c": "1744", "b": "chez Bousquet & Compagnie,", "e": "Lausanne" }, "035__": { "a": "R004127217" }, "990__": { "a": "20061123145722-ML" } } converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = { '300__': { 'a': '100 p.', 'b': 'ill.', 'c': '25 x 30 cm' }, '8564_': [{ 'f': 'file_name.pdf', 'q': 'application/pdf', 's': '1014', 'u': 'http://doc.rero.ch/record/file_name.pdf', 'y': 'order:1', 'z': 'Main file' }] } converted = marc2marc(marc) assert marc == converted
def test_multiple_marc2marc(): marc = { '8564_': [{ 'u': 'http://www.unige.ch/lettres/alman/digs/welcome.html', 'y': '2007-11-25 23:47:43', 'z': 'Homepage DiGS' }, { 'f': 'digs_complete_abstract.pdf', 'q': 'application/pdf', 's': '6361', 'u': 'http://doc.rero.ch/record/8488/files/' + 'digs_complete_abstract.pdf', 'y': 'order:4', 'z': u'R\xe9sum\xe9' }, { 'f': 'digs_complete_postprint_v1.pdf', 'q': 'application/pdf', 's': '2086891', 'u': 'http://doc.rero.ch/record/8488/files/' + 'digs_complete_postprint_v1.pdf', 'y': 'order:1', 'z': u'Texte int\xe9gral' }, { 'f': 'digs_cover_front.pdf', 'q': 'application/pdf', 's': '2605703', 'u': 'http://doc.rero.ch/record/8488/files/digs_cover_front.pdf', 'y': 'order:2', 'z': 'Couverture avant' }, { 'f': 'digs_cover_rear.pdf', 'q': 'application/pdf', 's': '192617', 'u': 'http://doc.rero.ch/record/8488/files/digs_cover_rear.pdf', 'y': 'order:3', 'z': u'Couverture arri\xe8re' }] } converted = marc2marc(marc) import json assert marc == converted
def test_multiple_authors_marc2marc(self): marc = { '100__': { 'a': 'LastName, FirstName', 'd': '1971-', 'u': 'Affiliation' }, '700__': [{ 'a': 'LastName2, FirstName2', 'd': '1972-', 'e': 'Dir.', 'u': 'Affiliation2' }, { 'a': 'LastName3, FirstName3', 'd': '1974-', 'e': 'Codir.', 'u': 'Affiliation' }] } converted = marc2marc(marc) assert marc == converted
def test_multiple_authors_marc2marc(): marc = { '100__': { 'a': 'LastName, FirstName', 'd': '1971-', 'u': 'Affiliation' }, '700__': [{ 'a': 'LastName2, FirstName2', 'd': '1972-', 'e': 'Dir.', 'u': 'Affiliation2' }, { 'a': 'LastName3, FirstName3', 'd': '1974-', 'e': 'Codir.', 'u': 'Affiliation' }] } converted = marc2marc(marc) assert marc == converted
def test_multiple_marc2marc(self): marc = { '8564_': [{ 'u': 'http://www.unige.ch/lettres/alman/digs/welcome.html', 'y': '2007-11-25 23:47:43', 'z': 'Homepage DiGS' }, { 'f': 'digs_complete_abstract.pdf', 'q': 'application/pdf', 's': '6361', 'u': 'http://doc.rero.ch/record/8488/files/digs_complete_abstract.pdf', 'y': 'order:4', 'z': u'R\xe9sum\xe9' }, { 'f': 'digs_complete_postprint_v1.pdf', 'q': 'application/pdf', 's': '2086891', 'u': 'http://doc.rero.ch/record/8488/files/digs_complete_postprint_v1.pdf', 'y': 'order:1', 'z': u'Texte int\xe9gral' }, { 'f': 'digs_cover_front.pdf', 'q': 'application/pdf', 's': '2605703', 'u': 'http://doc.rero.ch/record/8488/files/digs_cover_front.pdf', 'y': 'order:2', 'z': 'Couverture avant' }, { 'f': 'digs_cover_rear.pdf', 'q': 'application/pdf', 's': '192617', 'u': 'http://doc.rero.ch/record/8488/files/digs_cover_rear.pdf', 'y': 'order:3', 'z': u'Couverture arri\xe8re' }] } converted = marc2marc(marc) import json assert marc == converted
def test_marc2marc(self): marc = {'020__': {'a': '2-88147-009-2'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {'001': ['1234']} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {"246__": {"a": "Other Title", "9": "eng"}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {'035__': {'a': 'R1234'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'490__': {'a': 'Name', 'v': '3'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'035__': {'a': 'R1234'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {'990__': {'a': '20151116123706-NI'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {'041__': {'a': 'eng'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {"300__": {"a": "100 p.", "b": "ill.", "c": "25 x 30 cm"}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'980__': {'b': 'MEDVS', 'a': 'BOOK', 'f': 'BOOK_PROCEED'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {'505__': [{'a': 'Note line 1\n Line 2'}]} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'300__': {'a': '100 p.', 'b': 'ill.', 'c': '25 x 30 cm'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'041__': {'a': 'eng'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {'020__': {'a': '9782882250209'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'520__': [{'a': 'Summary Line 1\n Line2', '9': 'eng'}]} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'080__': {'a': '004'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(self): marc = {'080__': {'a': '004'}} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'246__': [{'a': 'Other Title', '9': 'eng'}]} converted = marc2marc(marc) assert marc == converted
def test_marc2marc(): marc = {'990__': {'a': '20151116123706-NI'}} converted = marc2marc(marc) assert marc == converted