diff --git a/tests/fixtures/arxiv2arxiv/expected_conflict.json b/tests/fixtures/arxiv2arxiv/expected_conflict.json new file mode 100644 index 0000000..8c4566a --- /dev/null +++ b/tests/fixtures/arxiv2arxiv/expected_conflict.json @@ -0,0 +1,20 @@ +[ + [ + "SET_FIELD", + [ + "abstracts", + 0, + "value" + ], + "We discuss the implications of studies of partition function zeros and equimodular curves for the analytic properties of the Ising model on a square lattice in a magnetic field. In particular we consider the dense set of singularities in the susceptibility of the Ising model at $H=0$ found by Nickel and its relation to the analyticity of the field theory computations of Fonseca and Zamolodchikov. Curator change.\n" + ], + [ + "SET_FIELD", + [ + "authors", + 0, + "full_name" + ], + "Assis, Marc" + ] +] diff --git a/tests/fixtures/arxiv2arxiv/expected_merged.json b/tests/fixtures/arxiv2arxiv/expected_merged.json new file mode 100644 index 0000000..ff5d4ce --- /dev/null +++ b/tests/fixtures/arxiv2arxiv/expected_merged.json @@ -0,0 +1,379 @@ +{ + "preprint_date": "2017-05-06", + "_collections": [ + "Literature" + ], + "public_notes": [ + { + "source": "arXiv", + "value": "23 pages, 13 figures; v2: added references, will appear in the proceedings of the INSPIRE Test workshop" + } + ], + "dois": [ + { + "value": "10.0001/test_doi" + }, + { + "source": "hepcrawl", + "value": "10.1007/JHEP04(2014)148" + } + ], + "titles": [ + { + "source": "arXiv", + "title": "Test Update to Analyticity of the Ising susceptibility: An interpretation" + }, + { + "source": "arXiv", + "title": "Analyticity of the Ising curation: An interpretation" + } + ], + "keywords": [ + { + "source": "magpie", + "value": "Ising model" + }, + { + "source": "magpie", + "value": "partition function" + }, + { + "source": "magpie", + "value": "lattice field theory" + }, + { + "source": "magpie", + "value": "analytic properties" + }, + { + "source": "magpie", + "value": "numerical calculations" + }, + { + "source": "magpie", + "value": "lattice" + }, + { + "source": "magpie", + "value": "singularity" + }, + { + "source": "magpie", + "value": "dimension: 2" + }, + { + "source": "", + "value": "whatever\n", + "schema": "INSPIRE" + } + ], + "publication_info": [ + { + "journal_title": "J. High Energy Phys.", + "pubinfo_freetext": "JHEP 1404 (2014) 148", + "journal_volume": "1404", + "artid": "148", + "year": 2014, + "page_start": "148" + } + ], + "$schema": "http://localhost:5000/schemas/records/hep.json", + "refereed": true, + "citeable": true, + "control_number": 1, + "_files": [ + { + "checksum": "md5:52cb0a0ed6e662eb823327a42c5d6e9b", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "4ff307fa-444a-4b3d-a90f-6f3cc550287d", + "key": "1705.02541.pdf", + "size": 2806666 + }, + { + "checksum": "md5:b225eb2916d88b261cb5f4538e5ced55", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "1d4981c7-fcf4-49d2-9297-2a072410a0fa", + "key": "1705.02541.tar.gz", + "size": 2213267 + }, + { + "description": "00000 The equimodular curves in the $u$ plane for $T_C(L_h)$ at $P=0$ for $L_h=10$ on the left and 12 on the right. Red indicates a multiplicity of 2, green of 4 and blue of 8. For $L=10$ the sequence of multiplicities on the upper (antiferromagnetic) sequence (increasing towards $u=i$) is 2,4,8,4,18,24 and the lower (ferromagnetic) sequence 2,2,4,4,8,8,18,28. For $L=12$ the upper sequence 2,4,8,2,18,18,52,84 and the lower sequence is 2,2,4,4,8,8,18,26,52,88", + "checksum": "md5:4a8231e19a85a1bb79a312e84ef9ff12", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "b46cd86d-3a09-43b7-82c1-bfad55e92abe", + "key": "equmod_P0_L12", + "size": 141 + }, + { + "description": "00001 Equimodular curves in the $u$ plane for $x=0.99$ of $T_C(L_h)$ for $L_h=6$ on the left and $L_h=8$ on the right. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "checksum": "md5:849b1abe3c4a823ab5a9903130fef9b7", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "364a0f21-6149-4ccf-9644-bc008b308d56", + "key": "6bis-no-titles", + "size": 142 + }, + { + "description": "00002 Equimodular curves in the $u$ plane for $x=0.99$ expanded near $u=i$ for $T_c(L_h)$ with $L_h=8$. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "checksum": "md5:0fd73eb6bef20beeb31d327865e5e2c3", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "90d725ce-adde-4a61-ae34-7181df75064d", + "key": "6bis_zoom", + "size": 137 + }, + { + "description": "00003 Comparison in the complex fugacity plane $z$ of the zeros of the partition function with cylindrical boundary of hard squares on the $40\\times 40$ lattice to hard hexagons on the $39\\times 39$ lattice taken from Figure 2 of ref. \\cite{mccoy1}.", + "checksum": "md5:256a094151b204692919087184057e6a", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "61f9fd39-ae7e-4fd8-be0d-5a19957ac617", + "key": "HH_CF_w39_roots", + "size": 143 + }, + { + "description": "00004 Comparison in the complex fugacity plane $z$ of the zeros of the partition function with cylindrical boundary of hard squares on the $40\\times 40$ lattice to hard hexagons on the $39\\times 39$ lattice taken from Figure 2 of ref. \\cite{mccoy1}.", + "checksum": "md5:b796f424b0407dd79ab8854308b75e96", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "5b5171dc-9f80-443b-8c14-f0a8af088990", + "key": "HS_CF_w40_roots", + "size": 143 + }, + { + "description": "00005 Brascamp-Kunz zeros in the plane $y=u^2x^{1/2}$ on the $22\\times 22$ lattice for values of $x=0.99,~0.90,~0.50,~0.10,~0.01,~0.0001$.", + "checksum": "md5:d53cb498a294df61ca1b69096f86ce3c", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "1074c6c8-6a49-4bce-ab31-5cde3d4e3ed7", + "key": "sq_BK_w22_roots_field", + "size": 149 + }, + { + "description": "00006 The zeros in the plane of $y=ux^{1/4}$ for the $16\\times 17$ lattice with toroidal boundary conditions for $x=1.0,~0.9,~0.5,~0.1,~0.01,~0.001.$", + "checksum": "md5:c341cca27f842a4b0cb02b3ddaf9723e", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "184b1356-5f4f-4338-817b-30d589f35515", + "key": "sq_PB_w16_roots", + "size": 143 + }, + { + "description": "00007 The equimodular curves in the $u$ plane for $T_C(L_h)$ for $L_h=8$. On the left all eigenvalues are considered and on the right the restriction to the momentum sector $P=0$ is made. The sectors where $\\lambda_{+}$ is dominant is marked by $+$ and the sector where $\\lambda_{-}$ is dominant is marked by a circle. The multiplicity of the crossings on the curves are indicated by colors. On left panel:red=2, green=3, black=4, blue=8, yellow=16, purple=32, brown=64 On right panel: red=2, green=4, blue=8, brown =3, black=9.", + "checksum": "md5:61debe31b17ac1ae0af08117d077bf27", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "459b6140-e46f-4ff3-9c0f-39819ce80cec", + "key": "equmod_L8", + "size": 137 + }, + { + "description": "00008 The density $g(\\alpha)$ of Lu and Wu \\cite{luwu}.", + "checksum": "md5:62cffd2037f7b31c35ddd7109b709862", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "3641f351-574a-42c1-bf2c-75db21262f58", + "key": "LuWu_Density", + "size": 140 + }, + { + "description": "00009 The equimodular curves in the $u$ plane for $T_C(L_h)$ at $P=0$ for $L_h=10$ on the left and 12 on the right. Red indicates a multiplicity of 2, green of 4 and blue of 8. For $L=10$ the sequence of multiplicities on the upper (antiferromagnetic) sequence (increasing towards $u=i$) is 2,4,8,4,18,24 and the lower (ferromagnetic) sequence 2,2,4,4,8,8,18,28. For $L=12$ the upper sequence 2,4,8,2,18,18,52,84 and the lower sequence is 2,2,4,4,8,8,18,26,52,88", + "checksum": "md5:33d885f5ce37d5163d4ec27f4a8a3373", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "7477dcf7-a971-4def-bb77-daee917bccab", + "key": "equmod_P0_L10", + "size": 141 + }, + { + "description": "00010 Plots of the scale dependent density $g(\\alpha;a)_N$ for the Brascamp-Kunz zeros as a function of the angle $\\alpha/\\pi$ for the $20\\times 20$ lattice on the left and the $100\\times 100$ lattice on the right. In the first row $a=1,$ in the second row $a=[L^{1/2}]$ and in the third row $a=L=N^{1/2}$. This limiting density (\\ref{lwdensity}) of \\cite{luwu} is shown in red.", + "checksum": "md5:d0dc6db0d33aad19312bfe7c1723b84e", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "5dccf08c-d5de-4f0e-8942-02cba1787004", + "key": "sq_BK_density", + "size": 141 + }, + { + "description": "00011 The zeros in the $y=ux^{1/4}$ plane for the $20\\times 20$ lattice with cylindrical boundary conditions for $x=1.0,~0.5,~0.1, ~0.01,~0.001,~0.0001,~0.00001,~0.000001.$", + "checksum": "md5:22e025f2818b881aa6ee2fbd70843e27", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "3e26e1cf-82f0-4750-96da-2415b10e8a89", + "key": "sq_CF_w20_roots", + "size": 143 + }, + { + "description": "00012 The nearest neighbor density of zeros (\\ref{bkdensity}) of the $22\\times 22$ lattice with Brascamp-Kunz boundary conditions in the plane $y=u^2x^{1/2}$ for $x=0.94,~0.90,~0.80,~0.50,~0.10,~0.01$ versus the the index $j$ .", + "checksum": "md5:9fde42bf6677171559af4d3737724364", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "249d0916-2d62-4921-9ad5-390c99fdab57", + "key": "sq_BK_w22_inner_dens", + "size": 148 + }, + { + "description": "00013 Partition function zeros for the $22\\times 22$ lattice with Brascamp-Kunz boundary conditions on the inner loop in the plane $y=u^2x^{1/2}$ for $x=1.0,~0.99,~0.98,~0.95.~0.90,~0.80$", + "checksum": "md5:15fd55e352485cf22cde53089c0f1f73", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "2a4ba2a6-9a8b-444c-8ae6-f9c8f3309f46", + "key": "sq_BK_w22_inner", + "size": 143 + }, + { + "description": "00014 The equimodular curves in the $u$ plane for $T_C(L_h)$ for $L_h=8$. On the left all eigenvalues are considered and on the right the restriction to the momentum sector $P=0$ is made. The sectors where $\\lambda_{+}$ is dominant is marked by $+$ and the sector where $\\lambda_{-}$ is dominant is marked by a circle. The multiplicity of the crossings on the curves are indicated by colors. On left panel:red=2, green=3, black=4, blue=8, yellow=16, purple=32, brown=64 On right panel: red=2, green=4, blue=8, brown =3, black=9.", + "checksum": "md5:a526753a288705974cc663fc4e19b71e", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "d617795e-8084-442b-97e8-966d0bf868f8", + "key": "equmod_P0_L8", + "size": 140 + }, + { + "description": "00015 Zeros of the isotropic Ising model partition function at $H=0~(x=1)$ with Brascamp-Kunz boundary conditions for the $20\\times 20$ lattice. The full $s$ plane is plotted on the left. On the right the zeros are plotted in the $u$ plane; the zeros are on the two circles $u=\\pm 1+2^{1/2}e^{i\\theta}$ and only the first quadrant is shown.", + "checksum": "md5:eef8cb09d5449f977fd4b7ff8b78b598", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "97b29bcf-3237-4f22-8ad5-5dd9aa8e69ee", + "key": "sq_BK_w20_roots", + "size": 143 + }, + { + "description": "00016 Equimodular curves in the $u$ plane for $x=0.99$ of $T_C(L_h)$ for $L_h=6$ on the left and $L_h=8$ on the right. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "checksum": "md5:45e69838a915695ee14401137f77ae05", + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "version_id": "4f941769-ffc2-4209-afa1-8ae6605608ac", + "key": "8bis-no-titles", + "size": 142 + } + ], + "inspire_categories": [ + { + "source": "arxiv", + "term": "Math and Math Physics" + }, + { + "source": "arxiv", + "term": "Experiment-HEP" + }, + { + "source": "arxiv", + "term": "General Physics" + }, + { + "term": "Instrumentation" + } + ], + "arxiv_eprints": [ + { + "categories": [ + "math-ph", + "hep-ex", + "math.MP" + ], + "value": "1705.02541" + } + ], + "core": true, + "authors": [ + { + "affiliations": [ + { + "curated_relation": true, + "value": "CERN", + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + } + } + ], + "uuid": "e3b0a6e6-5950-41c4-ba8a-76cd597cb0d5", + "full_name": "Assis, Mathieu", + "signature_block": "ASm" + }, + { + "affiliations": [ + { + "curated_relation": true, + "value": "CERN", + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + } + } + ], + "uuid": "3f4cc9b7-ade5-4b9c-885c-f20bba88f5e2", + "full_name": "Jacobsen, J.L.", + "signature_block": "JACABSANj" + }, + { + "affiliations": [ + { + "curated_relation": true, + "value": "CER", + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + } + } + ], + "uuid": "1d5ed399-9577-4d53-be4b-1e2279a3a493", + "full_name": "Maillard, Jean-Michel", + "signature_block": "MALADj" + }, + { + "affiliations": [ + { + "curated_relation": true, + "value": "CERN", + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + } + } + ], + "uuid": "3a75404c-664c-4369-8ced-3fd9e9050c19", + "full_name": "McCoy, B.M.", + "signature_block": "MCYb" + } + ], + "document_type": [ + "conference paper" + ], + "report_numbers": [ + { + "source": "hepcrawl", + "value": "LPTENS/17/12" + }, + { + "source": "hepcrawl", + "value": "CERN-ATLAS-CONF-2017-003" + } + ], + "acquisition_source": { + "source": "arXiv", + "datetime": "2017-05-11T09:11:50.192275", + "method": "hepcrawl", + "submission_number": "dbca741a362911e78bfd0242ac12000b" + }, + "license": [ + { + "url": "creativecommons.org/licenses/by-nc-sa/4.0/", + "license": "CC-BY-NC-SA-4.0" + }, + { + "url": "http://arxiv.org/licenses/nonexclusive-distrib/1.0/", + "license": "arXiv-1.0" + } + ], + "collaborations": [ + { + "value": "ALICE" + }, + { + "value": "ATLAS" + } + ], + "number_of_pages": 23, + "_fft": [ + { + "path": "/virtualenv/var/data/workflows/files/05/23/f07a-6b9b-4445-9063-41aa7d367413/data", + "format": ".pdf", + "type": "arXiv", + "filename": "arxiv:1705.02541" + } + ], + "accelerator_experiments": [ + { + "legacy_name": "CERN-LHC-ALICE" + } + ], + "abstracts": [ + { + "source": "arXiv", + "value": "We discuss the implications of studies of partition function zeros and equimodular curves for the analytic properties of the Ising model on a square lattice in a magnetic field. In particular we consider the dense set of singularities in the susceptibility of the Ising model at $H=0$ found by Nickel and its relation to the analyticity of the field theory computations of Fonseca and Zamolodchikov. We also explain how this could lead to a diphoton excess signal in the ATLAS detector." + } + ] +} diff --git a/tests/fixtures/arxiv2arxiv/head.json b/tests/fixtures/arxiv2arxiv/head.json new file mode 100644 index 0000000..3c9c330 --- /dev/null +++ b/tests/fixtures/arxiv2arxiv/head.json @@ -0,0 +1,352 @@ +{ + "$schema": "http://localhost:5000/schemas/records/hep.json", + "_collections": [ + "Literature" + ], + "_fft": [ + { + "filename": "arxiv:1705.02541", + "format": ".pdf", + "path": "/virtualenv/var/data/workflows/files/05/23/f07a-6b9b-4445-9063-41aa7d367413/data", + "type": "arXiv" + } + ], + "_files": [ + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:52cb0a0ed6e662eb823327a42c5d6e9b", + "key": "1705.02541.pdf", + "size": 2806666, + "version_id": "1043bcee-dd8a-4047-b60b-7952de1c1cac" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:b225eb2916d88b261cb5f4538e5ced55", + "key": "1705.02541.tar.gz", + "size": 2213267, + "version_id": "42fd3671-c31f-4543-af99-17d794098526" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:16775d1d276f4afa1743bf39a91fc142", + "key": "LuWu_Density", + "size": 140, + "version_id": "51ad5938-f9f1-4f10-8816-1523c526afbc" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:41ddcc333d7ea991f18619183eb4944b", + "key": "sq_BK_density", + "size": 141, + "version_id": "5841885a-c9be-48fe-8ad3-1b7786ba0a55" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:cd0d7854d644663b84ca7faa46bb4e38", + "key": "sq_PB_w16_roots", + "size": 143, + "version_id": "b8f89ff8-9e69-4eb6-b80a-427f218c9719" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:2aec26e18fb162931f984fad57305cba", + "key": "8bis-no-titles", + "size": 142, + "version_id": "a3c68e57-91a3-4afb-9ada-15ae13352dbf" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:00cc4ef2b90133f075bb0efb4b8c365d", + "key": "equmod_L8", + "size": 137, + "version_id": "2481cdd6-c622-4927-8bc2-0a1e8b1cca76" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:02ac4e4d5ab376b141a6b327ea520730", + "key": "sq_BK_w22_inner_dens", + "size": 148, + "version_id": "9afda232-d1a9-4f85-bc22-6737a544ee34" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:b2dd5c2ed3ce0a02fde2bad06277d2a3", + "key": "equmod_P0_L12", + "size": 141, + "version_id": "6ce586a5-a89f-4360-ad39-417fa5ba19a0" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:5b5f0d8de1ec99a9e54c39fc0fb9ec1f", + "key": "sq_BK_w22_inner", + "size": 143, + "version_id": "e79efbf3-f350-445e-90aa-16485fbbb094" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:e9026732a8d25639f9eeda6854f2ce4c", + "key": "sq_BK_w20_roots", + "size": 143, + "version_id": "2d933753-ca11-4465-b32e-8909cc2f579e" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:f4821dce9b9db66d2c0e083049eeb5d6", + "key": "6bis-no-titles", + "size": 142, + "version_id": "fbe57fd9-ff85-458d-98d5-038d0c38e149" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:d30334cc2af846cc9209169b3829be06", + "key": "equmod_P0_L8", + "size": 140, + "version_id": "444bcc4d-d7c6-442f-a6fe-895f97110a84" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:89834c873f7307d2a66ef0d20bbb1342", + "key": "sq_BK_w22_roots_field", + "size": 149, + "version_id": "df127a9a-2cc4-47c6-a23e-f5b92a6ce81b" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:c4acf2e5f7ad3b05f4f18fca5234ac0d", + "key": "sq_CF_w20_roots", + "size": 143, + "version_id": "c6659840-a149-4403-ae8c-8050c5e0d3b1" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:616677d92283017707f401a76966490c", + "key": "equmod_P0_L10", + "size": 141, + "version_id": "fe2a3a6c-b53d-4e95-ad8e-48eab984926a" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:4f5b38f45a3b1eeec08983f47465b6dd", + "key": "HS_CF_w40_roots", + "size": 143, + "version_id": "05a0a5cf-ca59-480e-9101-26f69f5edeb8" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:fd0ffabb89ae61628f5839cb68ccd268", + "key": "6bis_zoom", + "size": 137, + "version_id": "967579b0-db22-404d-8c2b-dd5c039a9bb7" + }, + { + "bucket": "c2658e45-6d9c-41b7-bd6d-b16cddb561d6", + "checksum": "md5:b947af7c21c65bf4153cd4f4be1eb571", + "key": "HH_CF_w39_roots", + "size": 143, + "version_id": "ac57f1d6-d962-42cc-bb0f-2c6fb9d2ad3a" + } + ], + "abstracts": [ + { + "source": "arXiv", + "value": "We discuss the implications of studies of partition function zeros and equimodular curves for the analytic properties of the Ising model on a square lattice in a magnetic field. In particular we consider the dense set of singularities in the susceptibility of the Ising model at $H=0$ found by Nickel and its relation to the analyticity of the field theory computations of Fonseca and Zamolodchikov. Curator change.\n" + } + ], + "accelerator_experiments": [ + { + "legacy_name": "CERN-LHC-ALICE" + } + ], + "acquisition_source": { + "datetime": "2017-05-11T08:50:25.184741", + "method": "hepcrawl", + "source": "arXiv", + "submission_number": "db9325b2362611e78bfd0242ac12000b" + }, + "arxiv_eprints": [ + { + "categories": [ + "math-ph", + "cond-mat.stat-mech", + "math.MP" + ], + "value": "1705.02541" + } + ], + "authors": [ + { + "affiliations": [ + { + "curated_relation": true, + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + }, + "value": "CERN" + } + ], + "full_name": "Assis, Mathieu", + "signature_block": "ASm", + "uuid": "e3b0a6e6-5950-41c4-ba8a-76cd597cb0d5" + }, + { + "affiliations": [ + { + "curated_relation": true, + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + }, + "value": "CERN" + } + ], + "full_name": "Jacobsen, J.L.", + "signature_block": "JACABSANj", + "uuid": "3f4cc9b7-ade5-4b9c-885c-f20bba88f5e2" + }, + { + "affiliations": [ + { + "curated_relation": true, + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + }, + "value": "C" + } + ], + "full_name": "Jensen, I.", + "signature_block": "JANSANi", + "uuid": "7b11df9d-6ac8-44f4-93bd-1003b3dff38e" + }, + { + "affiliations": [ + { + "curated_relation": true, + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + }, + "value": "CER" + } + ], + "full_name": "Maillard, J-M.", + "signature_block": "MALADj", + "uuid": "1d5ed399-9577-4d53-be4b-1e2279a3a493" + }, + { + "affiliations": [ + { + "curated_relation": true, + "record": { + "$ref": "http://localhost:5000/api/institutions/902725" + }, + "value": "CERN" + } + ], + "full_name": "McCoy, B.M.", + "signature_block": "MCYb", + "uuid": "3a75404c-664c-4369-8ced-3fd9e9050c19" + } + ], + "citeable": true, + "collaborations": [ + { + "value": "ALICE" + } + ], + "control_number": 1, + "core": true, + "document_type": [ + "article" + ], + "dois": [ + { + "value": "10.0001/test_doi" + } + ], + "inspire_categories": [ + { + "source": "arxiv", + "term": "Math and Math Physics" + }, + { + "source": "arxiv", + "term": "General Physics" + }, + { + "term": "Instrumentation" + } + ], + "keywords": [ + { + "source": "magpie", + "value": "Ising model" + }, + { + "source": "magpie", + "value": "partition function" + }, + { + "source": "magpie", + "value": "lattice field theory" + }, + { + "source": "magpie", + "value": "analytic properties" + }, + { + "source": "magpie", + "value": "numerical calculations" + }, + { + "source": "magpie", + "value": "lattice" + }, + { + "source": "magpie", + "value": "singularity" + }, + { + "source": "magpie", + "value": "dimension: 2" + }, + { + "schema": "INSPIRE", + "source": "", + "value": "whatever\n" + } + ], + "license": [ + { + "license": "arXiv-1.0", + "url": "http://arxiv.org/licenses/nonexclusive-distrib/1.0/" + } + ], + "number_of_pages": 21, + "preprint_date": "2017-05-06", + "public_notes": [ + { + "source": "arXiv", + "value": "21 pages, 13 figures" + }, + { + "value": "*Temporary entry*" + }, + { + "value": "This is a test public note by the curator\n" + } + ], + "refereed": true, + "report_numbers": [ + { + "source": "hepcrawl", + "value": "LPTENS/17/12" + }, + { + "value": "CURATOR-001" + } + ], + "titles": [ + { + "source": "arXiv", + "title": "Analyticity of the Ising curation: An interpretation" + } + ] +} diff --git a/tests/fixtures/arxiv2arxiv/root.json b/tests/fixtures/arxiv2arxiv/root.json new file mode 100644 index 0000000..8e16f31 --- /dev/null +++ b/tests/fixtures/arxiv2arxiv/root.json @@ -0,0 +1,239 @@ +{ + "$schema": "http://localhost:5000/schemas/records/hep.json", + "_files": [ + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:52cb0a0ed6e662eb823327a42c5d6e9b", + "key": "1705.02541.pdf", + "size": 2806666, + "version_id": "72f78ea9-84d8-4908-8227-0f500feb609b" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:b225eb2916d88b261cb5f4538e5ced55", + "key": "1705.02541.tar.gz", + "size": 2213267, + "version_id": "b65d63b8-190c-40aa-ac65-5e1c7734b562" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:164fc5e2686d91d096a4c872c2de064c", + "description": "00000 Partition function zeros for the $22\\times 22$ lattice with Brascamp-Kunz boundary conditions on the inner loop in the plane $y=u^2x^{1/2}$ for $x=1.0,~0.99,~0.98,~0.95.~0.90,~0.80$", + "key": "sq_BK_w22_inner", + "size": 143, + "version_id": "6a553746-ff9f-4ceb-a04a-cec285b0de27" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:2c84bddce537eca1a70b99a69b60a8c6", + "description": "00001 The nearest neighbor density of zeros (\\ref{bkdensity}) of the $22\\times 22$ lattice with Brascamp-Kunz boundary conditions in the plane $y=u^2x^{1/2}$ for $x=0.94,~0.90,~0.80,~0.50,~0.10,~0.01$ versus the the index $j$ .", + "key": "sq_BK_w22_inner_dens", + "size": 148, + "version_id": "3cb965f6-ebce-4651-8130-c53b4fb9e784" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:cc94a7188ea307a28b137df0bea5cf19", + "description": "00002 Equimodular curves in the $u$ plane for $x=0.99$ of $T_C(L_h)$ for $L_h=6$ on the left and $L_h=8$ on the right. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "key": "6bis-no-titles", + "size": 142, + "version_id": "289bac58-207a-43cc-89a1-03e47c9b283e" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:7c6315f3edaf03e6a6866109e9e3b0d6", + "description": "00003 Equimodular curves in the $u$ plane for $x=0.99$ of $T_C(L_h)$ for $L_h=6$ on the left and $L_h=8$ on the right. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "key": "8bis-no-titles", + "size": 142, + "version_id": "4f993d5b-1e8b-414a-b1ca-ad74fc98e303" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:b7e4074df17aafdaab321d98b8c22ef5", + "description": "00004 The equimodular curves in the $u$ plane for $T_C(L_h)$ for $L_h=8$. On the left all eigenvalues are considered and on the right the restriction to the momentum sector $P=0$ is made. The sectors where $\\lambda_{+}$ is dominant is marked by $+$ and the sector where $\\lambda_{-}$ is dominant is marked by a circle. The multiplicity of the crossings on the curves are indicated by colors. On left panel:red=2, green=3, black=4, blue=8, yellow=16, purple=32, brown=64 On right panel: red=2, green=4, blue=8, brown =3, black=9.", + "key": "equmod_L8", + "size": 137, + "version_id": "0a6b366f-6809-4235-8fef-739113c6a7a4" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:5fc8807d6308fdaf8dd216c0a5074841", + "description": "00005 Plots of the scale dependent density $g(\\alpha;a)_N$ for the Brascamp-Kunz zeros as a function of the angle $\\alpha/\\pi$ for the $20\\times 20$ lattice on the left and the $100\\times 100$ lattice on the right. In the first row $a=1,$ in the second row $a=[L^{1/2}]$ and in the third row $a=L=N^{1/2}$. This limiting density (\\ref{lwdensity}) of \\cite{luwu} is shown in red.", + "key": "sq_BK_density", + "size": 141, + "version_id": "03eb4d4e-508c-4c3e-8c32-0b749b224dd9" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:55dc88aeecf9776013791a26cb335bce", + "description": "00006 Equimodular curves in the $u$ plane for $x=0.99$ expanded near $u=i$ for $T_c(L_h)$ with $L_h=8$. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "key": "6bis_zoom", + "size": 137, + "version_id": "33ef5f17-78d7-4160-b284-e0a74e2cb9f6" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:5abb9a717bec1c9c371f60a26b5698f0", + "description": "00007 The density $g(\\alpha)$ of Lu and Wu \\cite{luwu}.", + "key": "LuWu_Density", + "size": 140, + "version_id": "631871ca-faf2-4a22-8115-e24b1d911244" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:a22dd5e86c6829cfd3dfd8e90cbf3eac", + "description": "00008 Brascamp-Kunz zeros in the plane $y=u^2x^{1/2}$ on the $22\\times 22$ lattice for values of $x=0.99,~0.90,~0.50,~0.10,~0.01,~0.0001$.", + "key": "sq_BK_w22_roots_field", + "size": 149, + "version_id": "4b824772-161c-479b-8189-19fc5b26e100" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:973cdbd515213bebf0f45041bcceeffd", + "description": "00009 The equimodular curves in the $u$ plane for $T_C(L_h)$ for $L_h=8$. On the left all eigenvalues are considered and on the right the restriction to the momentum sector $P=0$ is made. The sectors where $\\lambda_{+}$ is dominant is marked by $+$ and the sector where $\\lambda_{-}$ is dominant is marked by a circle. The multiplicity of the crossings on the curves are indicated by colors. On left panel:red=2, green=3, black=4, blue=8, yellow=16, purple=32, brown=64 On right panel: red=2, green=4, blue=8, brown =3, black=9.", + "key": "equmod_P0_L8", + "size": 140, + "version_id": "c70a0d91-b597-457d-b501-73fe989286ae" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:0ff8ba5245b2266503bd552bb3c2d42e", + "description": "00010 The zeros in the plane of $y=ux^{1/4}$ for the $16\\times 17$ lattice with toroidal boundary conditions for $x=1.0,~0.9,~0.5,~0.1,~0.01,~0.001.$", + "key": "sq_PB_w16_roots", + "size": 143, + "version_id": "7d79d73c-5b5d-47c3-86c2-bffba88f937c" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:c93dac1ab364373502ac9f121ac983a6", + "description": "00011 Comparison in the complex fugacity plane $z$ of the zeros of the partition function with cylindrical boundary of hard squares on the $40\\times 40$ lattice to hard hexagons on the $39\\times 39$ lattice taken from Figure 2 of ref. \\cite{mccoy1}.", + "key": "HS_CF_w40_roots", + "size": 143, + "version_id": "d676e67b-c0e3-4c21-b6c8-995d3e4b5ff2" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:137bf00011891dca5658507b7e694f2b", + "description": "00012 The equimodular curves in the $u$ plane for $T_C(L_h)$ at $P=0$ for $L_h=10$ on the left and 12 on the right. Red indicates a multiplicity of 2, green of 4 and blue of 8. For $L=10$ the sequence of multiplicities on the upper (antiferromagnetic) sequence (increasing towards $u=i$) is 2,4,8,4,18,24 and the lower (ferromagnetic) sequence 2,2,4,4,8,8,18,28. For $L=12$ the upper sequence 2,4,8,2,18,18,52,84 and the lower sequence is 2,2,4,4,8,8,18,26,52,88", + "key": "equmod_P0_L12", + "size": 141, + "version_id": "09da8dd7-ae48-43ac-8b67-3e7adcf715b9" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:9aba2c07af823bf1bd9455c48592206c", + "description": "00013 Zeros of the isotropic Ising model partition function at $H=0~(x=1)$ with Brascamp-Kunz boundary conditions for the $20\\times 20$ lattice. The full $s$ plane is plotted on the left. On the right the zeros are plotted in the $u$ plane; the zeros are on the two circles $u=\\pm 1+2^{1/2}e^{i\\theta}$ and only the first quadrant is shown.", + "key": "sq_BK_w20_roots", + "size": 143, + "version_id": "0dd9f7af-02d2-4fd0-b152-a3a195bf3554" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:55425363806822c1fc5ef37416bbeb8b", + "description": "00014 The zeros in the $y=ux^{1/4}$ plane for the $20\\times 20$ lattice with cylindrical boundary conditions for $x=1.0,~0.5,~0.1, ~0.01,~0.001,~0.0001,~0.00001,~0.000001.$", + "key": "sq_CF_w20_roots", + "size": 143, + "version_id": "9b61737a-34e2-441f-842f-4178a7176ddf" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:c913ce3bcc62ef43a88e603cef96b7f5", + "description": "00015 The equimodular curves in the $u$ plane for $T_C(L_h)$ at $P=0$ for $L_h=10$ on the left and 12 on the right. Red indicates a multiplicity of 2, green of 4 and blue of 8. For $L=10$ the sequence of multiplicities on the upper (antiferromagnetic) sequence (increasing towards $u=i$) is 2,4,8,4,18,24 and the lower (ferromagnetic) sequence 2,2,4,4,8,8,18,28. For $L=12$ the upper sequence 2,4,8,2,18,18,52,84 and the lower sequence is 2,2,4,4,8,8,18,26,52,88", + "key": "equmod_P0_L10", + "size": 141, + "version_id": "e5f2c336-1f55-4318-aea6-069224f3d008" + }, + { + "bucket": "81e83c90-8f6d-4db4-9571-4b01bbb8a5f9", + "checksum": "md5:32ac6df8ac4e4be53ed79ae6ec72bedc", + "description": "00016 Comparison in the complex fugacity plane $z$ of the zeros of the partition function with cylindrical boundary of hard squares on the $40\\times 40$ lattice to hard hexagons on the $39\\times 39$ lattice taken from Figure 2 of ref. \\cite{mccoy1}.", + "key": "HH_CF_w39_roots", + "size": 143, + "version_id": "6f33ab15-29a0-447e-af90-19b0165cf081" + } + ], + "abstracts": [ + { + "source": "arXiv", + "value": "We discuss the implications of studies of partition function zeros and equimodular curves for the analytic properties of the Ising model on a square lattice in a magnetic field. In particular we consider the dense set of singularities in the susceptibility of the Ising model at $H=0$ found by Nickel and its relation to the analyticity of the field theory computations of Fonseca and Zamolodchikov." + } + ], + "acquisition_source": { + "datetime": "2017-05-11T08:50:25.184741", + "method": "hepcrawl", + "source": "arXiv", + "submission_number": "db9325b2362611e78bfd0242ac12000b" + }, + "arxiv_eprints": [ + { + "categories": [ + "math-ph", + "cond-mat.stat-mech", + "math.MP" + ], + "value": "1705.02541" + } + ], + "authors": [ + { + "affiliations": [], + "full_name": "Assis, M." + }, + { + "affiliations": [], + "full_name": "Jacobsen, J.L." + }, + { + "affiliations": [], + "full_name": "Jensen, I." + }, + { + "affiliations": [], + "full_name": "Maillard, J-M." + }, + { + "affiliations": [], + "full_name": "McCoy, B.M." + } + ], + "citeable": true, + "document_type": [ + "article" + ], + "inspire_categories": [ + { + "source": "arxiv", + "term": "Math and Math Physics" + }, + { + "source": "arxiv", + "term": "General Physics" + } + ], + "license": [ + { + "license": "arXiv-1.0", + "url": "http://arxiv.org/licenses/nonexclusive-distrib/1.0/" + } + ], + "number_of_pages": 21, + "preprint_date": "2017-05-06", + "public_notes": [ + { + "source": "arXiv", + "value": "21 pages, 13 figures" + } + ], + "report_numbers": [ + { + "source": "hepcrawl", + "value": "LPTENS/17/12" + } + ], + "titles": [ + { + "source": "arXiv", + "title": "Analyticity of the Ising susceptibility: An interpretation" + } + ] +} diff --git a/tests/fixtures/arxiv2arxiv/update.json b/tests/fixtures/arxiv2arxiv/update.json new file mode 100644 index 0000000..07910f3 --- /dev/null +++ b/tests/fixtures/arxiv2arxiv/update.json @@ -0,0 +1,260 @@ +{ + "$schema": "http://localhost:5000/schemas/records/hep.json", + "_files": [ + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:52cb0a0ed6e662eb823327a42c5d6e9b", + "key": "1705.02541.pdf", + "size": 2806666, + "version_id": "4ff307fa-444a-4b3d-a90f-6f3cc550287d" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:b225eb2916d88b261cb5f4538e5ced55", + "key": "1705.02541.tar.gz", + "size": 2213267, + "version_id": "1d4981c7-fcf4-49d2-9297-2a072410a0fa" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:4a8231e19a85a1bb79a312e84ef9ff12", + "description": "00000 The equimodular curves in the $u$ plane for $T_C(L_h)$ at $P=0$ for $L_h=10$ on the left and 12 on the right. Red indicates a multiplicity of 2, green of 4 and blue of 8. For $L=10$ the sequence of multiplicities on the upper (antiferromagnetic) sequence (increasing towards $u=i$) is 2,4,8,4,18,24 and the lower (ferromagnetic) sequence 2,2,4,4,8,8,18,28. For $L=12$ the upper sequence 2,4,8,2,18,18,52,84 and the lower sequence is 2,2,4,4,8,8,18,26,52,88", + "key": "equmod_P0_L12", + "size": 141, + "version_id": "b46cd86d-3a09-43b7-82c1-bfad55e92abe" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:849b1abe3c4a823ab5a9903130fef9b7", + "description": "00001 Equimodular curves in the $u$ plane for $x=0.99$ of $T_C(L_h)$ for $L_h=6$ on the left and $L_h=8$ on the right. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "key": "6bis-no-titles", + "size": 142, + "version_id": "364a0f21-6149-4ccf-9644-bc008b308d56" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:0fd73eb6bef20beeb31d327865e5e2c3", + "description": "00002 Equimodular curves in the $u$ plane for $x=0.99$ expanded near $u=i$ for $T_c(L_h)$ with $L_h=8$. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "key": "6bis_zoom", + "size": 137, + "version_id": "90d725ce-adde-4a61-ae34-7181df75064d" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:256a094151b204692919087184057e6a", + "description": "00003 Comparison in the complex fugacity plane $z$ of the zeros of the partition function with cylindrical boundary of hard squares on the $40\\times 40$ lattice to hard hexagons on the $39\\times 39$ lattice taken from Figure 2 of ref. \\cite{mccoy1}.", + "key": "HH_CF_w39_roots", + "size": 143, + "version_id": "61f9fd39-ae7e-4fd8-be0d-5a19957ac617" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:b796f424b0407dd79ab8854308b75e96", + "description": "00004 Comparison in the complex fugacity plane $z$ of the zeros of the partition function with cylindrical boundary of hard squares on the $40\\times 40$ lattice to hard hexagons on the $39\\times 39$ lattice taken from Figure 2 of ref. \\cite{mccoy1}.", + "key": "HS_CF_w40_roots", + "size": 143, + "version_id": "5b5171dc-9f80-443b-8c14-f0a8af088990" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:d53cb498a294df61ca1b69096f86ce3c", + "description": "00005 Brascamp-Kunz zeros in the plane $y=u^2x^{1/2}$ on the $22\\times 22$ lattice for values of $x=0.99,~0.90,~0.50,~0.10,~0.01,~0.0001$.", + "key": "sq_BK_w22_roots_field", + "size": 149, + "version_id": "1074c6c8-6a49-4bce-ab31-5cde3d4e3ed7" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:c341cca27f842a4b0cb02b3ddaf9723e", + "description": "00006 The zeros in the plane of $y=ux^{1/4}$ for the $16\\times 17$ lattice with toroidal boundary conditions for $x=1.0,~0.9,~0.5,~0.1,~0.01,~0.001.$", + "key": "sq_PB_w16_roots", + "size": 143, + "version_id": "184b1356-5f4f-4338-817b-30d589f35515" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:61debe31b17ac1ae0af08117d077bf27", + "description": "00007 The equimodular curves in the $u$ plane for $T_C(L_h)$ for $L_h=8$. On the left all eigenvalues are considered and on the right the restriction to the momentum sector $P=0$ is made. The sectors where $\\lambda_{+}$ is dominant is marked by $+$ and the sector where $\\lambda_{-}$ is dominant is marked by a circle. The multiplicity of the crossings on the curves are indicated by colors. On left panel:red=2, green=3, black=4, blue=8, yellow=16, purple=32, brown=64 On right panel: red=2, green=4, blue=8, brown =3, black=9.", + "key": "equmod_L8", + "size": 137, + "version_id": "459b6140-e46f-4ff3-9c0f-39819ce80cec" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:62cffd2037f7b31c35ddd7109b709862", + "description": "00008 The density $g(\\alpha)$ of Lu and Wu \\cite{luwu}.", + "key": "LuWu_Density", + "size": 140, + "version_id": "3641f351-574a-42c1-bf2c-75db21262f58" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:33d885f5ce37d5163d4ec27f4a8a3373", + "description": "00009 The equimodular curves in the $u$ plane for $T_C(L_h)$ at $P=0$ for $L_h=10$ on the left and 12 on the right. Red indicates a multiplicity of 2, green of 4 and blue of 8. For $L=10$ the sequence of multiplicities on the upper (antiferromagnetic) sequence (increasing towards $u=i$) is 2,4,8,4,18,24 and the lower (ferromagnetic) sequence 2,2,4,4,8,8,18,28. For $L=12$ the upper sequence 2,4,8,2,18,18,52,84 and the lower sequence is 2,2,4,4,8,8,18,26,52,88", + "key": "equmod_P0_L10", + "size": 141, + "version_id": "7477dcf7-a971-4def-bb77-daee917bccab" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:d0dc6db0d33aad19312bfe7c1723b84e", + "description": "00010 Plots of the scale dependent density $g(\\alpha;a)_N$ for the Brascamp-Kunz zeros as a function of the angle $\\alpha/\\pi$ for the $20\\times 20$ lattice on the left and the $100\\times 100$ lattice on the right. In the first row $a=1,$ in the second row $a=[L^{1/2}]$ and in the third row $a=L=N^{1/2}$. This limiting density (\\ref{lwdensity}) of \\cite{luwu} is shown in red.", + "key": "sq_BK_density", + "size": 141, + "version_id": "5dccf08c-d5de-4f0e-8942-02cba1787004" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:22e025f2818b881aa6ee2fbd70843e27", + "description": "00011 The zeros in the $y=ux^{1/4}$ plane for the $20\\times 20$ lattice with cylindrical boundary conditions for $x=1.0,~0.5,~0.1, ~0.01,~0.001,~0.0001,~0.00001,~0.000001.$", + "key": "sq_CF_w20_roots", + "size": 143, + "version_id": "3e26e1cf-82f0-4750-96da-2415b10e8a89" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:9fde42bf6677171559af4d3737724364", + "description": "00012 The nearest neighbor density of zeros (\\ref{bkdensity}) of the $22\\times 22$ lattice with Brascamp-Kunz boundary conditions in the plane $y=u^2x^{1/2}$ for $x=0.94,~0.90,~0.80,~0.50,~0.10,~0.01$ versus the the index $j$ .", + "key": "sq_BK_w22_inner_dens", + "size": 148, + "version_id": "249d0916-2d62-4921-9ad5-390c99fdab57" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:15fd55e352485cf22cde53089c0f1f73", + "description": "00013 Partition function zeros for the $22\\times 22$ lattice with Brascamp-Kunz boundary conditions on the inner loop in the plane $y=u^2x^{1/2}$ for $x=1.0,~0.99,~0.98,~0.95.~0.90,~0.80$", + "key": "sq_BK_w22_inner", + "size": 143, + "version_id": "2a4ba2a6-9a8b-444c-8ae6-f9c8f3309f46" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:a526753a288705974cc663fc4e19b71e", + "description": "00014 The equimodular curves in the $u$ plane for $T_C(L_h)$ for $L_h=8$. On the left all eigenvalues are considered and on the right the restriction to the momentum sector $P=0$ is made. The sectors where $\\lambda_{+}$ is dominant is marked by $+$ and the sector where $\\lambda_{-}$ is dominant is marked by a circle. The multiplicity of the crossings on the curves are indicated by colors. On left panel:red=2, green=3, black=4, blue=8, yellow=16, purple=32, brown=64 On right panel: red=2, green=4, blue=8, brown =3, black=9.", + "key": "equmod_P0_L8", + "size": 140, + "version_id": "d617795e-8084-442b-97e8-966d0bf868f8" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:eef8cb09d5449f977fd4b7ff8b78b598", + "description": "00015 Zeros of the isotropic Ising model partition function at $H=0~(x=1)$ with Brascamp-Kunz boundary conditions for the $20\\times 20$ lattice. The full $s$ plane is plotted on the left. On the right the zeros are plotted in the $u$ plane; the zeros are on the two circles $u=\\pm 1+2^{1/2}e^{i\\theta}$ and only the first quadrant is shown.", + "key": "sq_BK_w20_roots", + "size": 143, + "version_id": "97b29bcf-3237-4f22-8ad5-5dd9aa8e69ee" + }, + { + "bucket": "c52ef9f6-66ca-401d-b374-585643642d7f", + "checksum": "md5:45e69838a915695ee14401137f77ae05", + "description": "00016 Equimodular curves in the $u$ plane for $x=0.99$ of $T_C(L_h)$ for $L_h=6$ on the left and $L_h=8$ on the right. Red is for singlet-singlet crossings, green is for singlet-doublet and blue is for doublet-doublet", + "key": "8bis-no-titles", + "size": 142, + "version_id": "4f941769-ffc2-4209-afa1-8ae6605608ac" + } + ], + "abstracts": [ + { + "source": "arXiv", + "value": "We discuss the implications of studies of partition function zeros and equimodular curves for the analytic properties of the Ising model on a square lattice in a magnetic field. In particular we consider the dense set of singularities in the susceptibility of the Ising model at $H=0$ found by Nickel and its relation to the analyticity of the field theory computations of Fonseca and Zamolodchikov. We also explain how this could lead to a diphoton excess signal in the ATLAS detector." + } + ], + "acquisition_source": { + "datetime": "2017-05-11T09:11:50.192275", + "method": "hepcrawl", + "source": "arXiv", + "submission_number": "dbca741a362911e78bfd0242ac12000b" + }, + "arxiv_eprints": [ + { + "categories": [ + "math-ph", + "hep-ex", + "math.MP" + ], + "value": "1705.02541" + } + ], + "authors": [ + { + "affiliations": [], + "full_name": "Assis, Marc" + }, + { + "affiliations": [], + "full_name": "Jacobsen, J.L." + }, + { + "affiliations": [], + "full_name": "Maillard, Jean-Michel" + }, + { + "affiliations": [], + "full_name": "McCoy, B.M." + } + ], + "citeable": true, + "collaborations": [ + { + "value": "ATLAS" + } + ], + "document_type": [ + "conference paper" + ], + "dois": [ + { + "source": "hepcrawl", + "value": "10.1007/JHEP04(2014)148" + } + ], + "inspire_categories": [ + { + "source": "arxiv", + "term": "Math and Math Physics" + }, + { + "source": "arxiv", + "term": "Experiment-HEP" + } + ], + "license": [ + { + "license": "CC-BY-NC-SA-4.0", + "url": "creativecommons.org/licenses/by-nc-sa/4.0/" + } + ], + "number_of_pages": 23, + "preprint_date": "2017-05-06", + "public_notes": [ + { + "source": "arXiv", + "value": "23 pages, 13 figures; v2: added references, will appear in the proceedings of the INSPIRE Test workshop" + } + ], + "publication_info": [ + { + "artid": "148", + "journal_title": "J. High Energy Phys.", + "journal_volume": "1404", + "page_start": "148", + "pubinfo_freetext": "JHEP 1404 (2014) 148", + "year": 2014 + } + ], + "report_numbers": [ + { + "source": "hepcrawl", + "value": "LPTENS/17/12" + }, + { + "source": "hepcrawl", + "value": "CERN-ATLAS-CONF-2017-003" + } + ], + "titles": [ + { + "source": "arXiv", + "title": "Test Update to Analyticity of the Ising susceptibility: An interpretation" + } + ] +} diff --git a/tests/fixtures/pub2arxiv/expected_conflict.json b/tests/fixtures/pub2arxiv/expected_conflict.json new file mode 100644 index 0000000..94ec2b0 --- /dev/null +++ b/tests/fixtures/pub2arxiv/expected_conflict.json @@ -0,0 +1,518 @@ +[ + [ + "SET_FIELD", + [ + "acquisition_source", + "method" + ], + "oai" + ], + [ + "SET_FIELD", + [ + "acquisition_source", + "source" + ], + "arxiv" + ], + [ + "SET_FIELD", + [ + "authors", + 0, + "full_name" + ], + "Papadimitriou, Vaia" + ], + [ + "SET_FIELD", + [ + "authors", + 1, + "full_name" + ], + "Ammigan, Kavin" + ], + [ + "SET_FIELD", + [ + "authors", + 2, + "full_name" + ], + "Anderson, John" + ], + [ + "SET_FIELD", + [ + "authors", + 3, + "full_name" + ], + "Anderson, Kris" + ], + [ + "SET_FIELD", + [ + "authors", + 4, + "full_name" + ], + "Andrews, Richard" + ], + [ + "SET_FIELD", + [ + "authors", + 5, + "full_name" + ], + "Bocean, Virgil" + ], + [ + "SET_FIELD", + [ + "authors", + 6, + "full_name" + ], + "Crowley, Cory" + ], + [ + "SET_FIELD", + [ + "authors", + 7, + "full_name" + ], + "Eddy, Nathan" + ], + [ + "SET_FIELD", + [ + "authors", + 8, + "full_name" + ], + "Hartsell, Brian" + ], + [ + "SET_FIELD", + [ + "authors", + 9, + "full_name" + ], + "Hays, Steven" + ], + [ + "SET_FIELD", + [ + "authors", + 10, + "full_name" + ], + "Hurh, Patrick" + ], + [ + "SET_FIELD", + [ + "authors", + 11, + "full_name" + ], + "Hylen, James" + ], + [ + "SET_FIELD", + [ + "authors", + 12, + "full_name" + ], + "Johnstone, John" + ], + [ + "SET_FIELD", + [ + "authors", + 13, + "full_name" + ], + "Kasper, Peter" + ], + [ + "SET_FIELD", + [ + "authors", + 14, + "full_name" + ], + "Kobilarcik, Thomas" + ], + [ + "SET_FIELD", + [ + "authors", + 15, + "full_name" + ], + "Krafczyk, George" + ], + [ + "SET_FIELD", + [ + "authors", + 16, + "full_name" + ], + "Lundberg, Byron" + ], + [ + "SET_FIELD", + [ + "authors", + 17, + "full_name" + ], + "Marchionni, Alberto" + ], + [ + "SET_FIELD", + [ + "authors", + 18, + "full_name" + ], + "Mokhov, Nikolai" + ], + [ + "SET_FIELD", + [ + "authors", + 19, + "full_name" + ], + "Moore, Craig" + ], + [ + "SET_FIELD", + [ + "authors", + 20, + "full_name" + ], + "Pushka, David" + ], + [ + "SET_FIELD", + [ + "authors", + 21, + "full_name" + ], + "Rakhno, Igor" + ], + [ + "SET_FIELD", + [ + "authors", + 22, + "full_name" + ], + "Reitzner, Sarah" + ], + [ + "SET_FIELD", + [ + "authors", + 23, + "full_name" + ], + "Schlabach, Phil" + ], + [ + "SET_FIELD", + [ + "authors", + 24, + "full_name" + ], + "Sidorov, Vladimir" + ], + [ + "SET_FIELD", + [ + "authors", + 25, + "full_name" + ], + "Stefanik, Andrew" + ], + [ + "SET_FIELD", + [ + "authors", + 26, + "full_name" + ], + "Tariq, Salman" + ], + [ + "SET_FIELD", + [ + "authors", + 27, + "full_name" + ], + "Valerio, Linda" + ], + [ + "SET_FIELD", + [ + "authors", + 28, + "full_name" + ], + "Vaziri, Kamran" + ], + [ + "SET_FIELD", + [ + "authors", + 29, + "full_name" + ], + "Velev, Gueorgui" + ], + [ + "SET_FIELD", + [ + "authors", + 30, + "full_name" + ], + "Vogel, Gregory" + ], + [ + "SET_FIELD", + [ + "authors", + 31, + "full_name" + ], + "Williams, Karlton" + ], + [ + "SET_FIELD", + [ + "authors", + 32, + "full_name" + ], + "Zwaska, Robert" + ], + [ + "SET_FIELD", + [ + "authors", + 33, + "full_name" + ], + "Densham, Chris" + ], + [ + "SET_FIELD", + [ + "control_number" + ], + 1591653 + ], + [ + "ADD_BACK_TO_HEAD", + [ + "document_type" + ], + "conference paper" + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "reference": { + "imprint": { + "publisher": "Fermilab" + }, + "publication_info": { + "year": 1995 + }, + "misc": [ + "Main Injector Technical Design Handbook, November" + ], + "urls": [ + { + "value": "http://www-fmi.fnal.gov/fmiinternal/MI_Technical_Design/index.html" + } + ], + "label": "1" + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "reference": { + "publication_info": { + "year": 2007 + }, + "label": "2", + "misc": [ + "NOvA Technical Design Report, October" + ], + "urls": [ + { + "value": "http://www-nova.fnal.gov/nova_cd2_review/tdr_oct_23/toc.pdf" + } + ], + "authors": [ + { + "full_name": "Ayres, D.S." + } + ] + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "reference": { + "label": "3", + "misc": [ + "Project X website: 1232" + ], + "urls": [ + { + "value": "http://projectxdocdb.fnal.gov/cgi-bin/ShowDocument?docid=" + } + ], + "authors": [ + { + "full_name": "Derwent, P." + } + ] + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "reference": { + "label": "4", + "misc": [ + "Project X website: 1295" + ], + "urls": [ + { + "value": "http://projectxdocdb.fnal.gov/cgi-bin/ShowDocument?docid=" + } + ], + "authors": [ + { + "full_name": "Derwent, P." + } + ] + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "curated_relation": false, + "reference": { + "title": { + "title": "Long-Baseline Neutrino Facility (LBNF) and Deep Underground Neutrino Experiment (DUNE) Conceptual Design Report, Volume 3" + }, + "misc": [ + "June 24" + ], + "arxiv_eprint": "1307.7335", + "authors": [ + { + "full_name": "Hamernik, T." + } + ], + "publication_info": { + "year": 2016 + }, + "label": "5" + }, + "record": { + "$ref": "http://localhost:5000/api/literature/1245018" + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "reference": { + "publication_info": { + "year": 2015 + }, + "title": { + "title": "Beamline at the Near Site" + }, + "misc": [ + "LBNF/DUNE Conceptual Design Report, Volume 3, Annex 3A pp. 1-231" + ], + "label": "6" + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "reference": { + "publication_info": { + "year": 2016 + }, + "misc": [ + "Document?docid=10686, June 25, 2015. Proceedings of IPAC, Busan, Korea TUPMR025 04 Hadron Accelerators A21 Secondary Beams 1293 Copyrighta9CC-BY-3.0andbytherespectiveauthors" + ], + "urls": [ + { + "value": "http://lbne2-docdb.fnal.gov/cgi-bin/Show" + } + ], + "label": "6" + } + } + ], + [ + "SET_FIELD", + [ + "self", + "$ref" + ], + "http://localhost:5000/api/literature/1591653" + ] +] diff --git a/tests/fixtures/pub2arxiv/expected_merged.json b/tests/fixtures/pub2arxiv/expected_merged.json new file mode 100644 index 0000000..055a2d0 --- /dev/null +++ b/tests/fixtures/pub2arxiv/expected_merged.json @@ -0,0 +1,1340 @@ +{ + "preprint_date": "2017-04-14", + "_collections": [ + "Literature" + ], + "public_notes": [ + { + "source": "arXiv", + "value": "3 pp" + }, + { + "value": "*Brief entry*" + } + ], + "dois": [ + { + "source": "JACoW", + "value": "10.18429/JACoW-IPAC2016-TUPMR025" + } + ], + "titles": [ + { + "source": "arXiv", + "title": "Design Of The LBNF Beamline" + }, + { + "title": "Design of the LBNF Beamline" + } + ], + "references": [ + { + "curated_relation": false, + "raw_refs": [ + { + "position": "", + "schema": "", + "value": { + "url": [ + "http://www-fmi.fnal.gov/fmiinternal/MI_Technical_Design/index.html" + ], + "publisher": [ + "Fermilab" + ], + "linemarker": [ + "1" + ], + "misc": [ + "Main Injector Technical Design Handbook, November 1995" + ] + }, + "source": "" + } + ], + "reference": { + "book_series": "", + "texkey": "", + "persistent_identifiers": "", + "collaboration": "", + "authors": "", + "misc": [ + "Main Injector Technical Design Handbook, November 1995" + ], + "number": [ + "1" + ], + "imprint": "", + "titles": "", + "urls": "", + "dois": "", + "publication_info": { + "journal_volume": "", + "page_start": "", + "year": "", + "artid": "", + "journal_title": "" + } + }, + "record": { + "$ref": "" + } + }, + { + "curated_relation": false, + "raw_refs": [ + { + "position": "", + "schema": "", + "value": { + "url": [ + "http://www-nova.fnal.gov/nova_cd2_review/tdr_oct_23/toc.pdf" + ], + "linemarker": [ + "2" + ], + "misc": [ + "NOvA Technical Design Report, October 2007" + ], + "author": [ + "D.S. Ayres et al." + ] + }, + "source": "" + } + ], + "reference": { + "book_series": "", + "texkey": "", + "persistent_identifiers": "", + "collaboration": "", + "authors": [ + "D.S. Ayres et al." + ], + "misc": [ + "NOvA Technical Design Report, October 2007" + ], + "number": [ + "2" + ], + "imprint": "", + "titles": "", + "urls": "", + "dois": "", + "publication_info": { + "journal_volume": "", + "page_start": "", + "year": "", + "artid": "", + "journal_title": "" + } + }, + "record": { + "$ref": "" + } + }, + { + "curated_relation": false, + "raw_refs": [ + { + "position": "", + "schema": "", + "value": { + "url": [ + "http://projectxdocdb.fnal.gov/cgi-bin/ShowDocument?docid=1232" + ], + "linemarker": [ + "3" + ], + "misc": [ + "Project X", + "website:" + ], + "author": [ + "P. Derwent et al." + ] + }, + "source": "" + } + ], + "reference": { + "book_series": "", + "texkey": "", + "persistent_identifiers": "", + "collaboration": "", + "authors": [ + "P. Derwent et al." + ], + "misc": [ + "Project X", + "website:" + ], + "number": [ + "3" + ], + "imprint": "", + "titles": "", + "urls": "", + "dois": "", + "publication_info": { + "journal_volume": "", + "page_start": "", + "year": "", + "artid": "", + "journal_title": "" + } + }, + "record": { + "$ref": "" + } + }, + { + "curated_relation": false, + "raw_refs": [ + { + "position": "", + "schema": "", + "value": { + "url": [ + "http://projectxdocdb.fnal.gov/cgi-bin/ShowDocument?docid=1295" + ], + "linemarker": [ + "4" + ], + "misc": [ + "Project X", + "website:" + ], + "author": [ + "P. Derwent et al." + ] + }, + "source": "" + } + ], + "reference": { + "book_series": "", + "texkey": "", + "persistent_identifiers": "", + "collaboration": "", + "authors": [ + "P. Derwent et al." + ], + "misc": [ + "Project X", + "website:" + ], + "number": [ + "4" + ], + "imprint": "", + "titles": "", + "urls": "", + "dois": "", + "publication_info": { + "journal_volume": "", + "page_start": "", + "year": "", + "artid": "", + "journal_title": "" + } + }, + "record": { + "$ref": "" + } + }, + { + "curated_relation": false, + "raw_refs": [ + { + "position": "", + "schema": "", + "value": { + "reportnumber": [ + "arXiv:1307.7335 [hep-ex]" + ], + "linemarker": [ + "5" + ], + "author": [ + "T. Hamernik et al." + ], + "misc": [ + "June 24, 2016" + ], + "title": [ + "Long-Baseline Neutrino Facility (LBNF) and Deep Underground Neutrino Experiment (DUNE) Conceptual Design Report, Volume 3" + ] + }, + "source": "" + } + ], + "reference": { + "book_series": "", + "texkey": "", + "persistent_identifiers": "", + "collaboration": "", + "authors": [ + "T. Hamernik et al." + ], + "misc": [ + "June 24, 2016" + ], + "number": [ + "5" + ], + "imprint": "", + "titles": "", + "urls": "", + "dois": "", + "publication_info": { + "journal_volume": "", + "page_start": "", + "year": "", + "artid": "", + "journal_title": "" + } + }, + "record": { + "$ref": "" + } + }, + { + "curated_relation": false, + "raw_refs": [ + { + "position": "", + "schema": "", + "value": { + "linemarker": [ + "6" + ], + "misc": [ + "LBNF/DUNE Conceptual Design Report, Volume 3" + ] + }, + "source": "" + } + ], + "reference": { + "book_series": "", + "texkey": "", + "persistent_identifiers": "", + "collaboration": "", + "authors": "", + "misc": [ + "LBNF/DUNE Conceptual Design Report, Volume 3" + ], + "number": [ + "6" + ], + "imprint": "", + "titles": "", + "urls": "", + "dois": "", + "publication_info": { + "journal_volume": "", + "page_start": "", + "year": "", + "artid": "", + "journal_title": "" + } + }, + "record": { + "$ref": "" + } + } + ], + "external_system_identifiers": [ + { + "value": "1329063", + "schema": "OSTI" + } + ], + "keywords": [ + { + "value": "target", + "schema": "JACOW" + }, + { + "value": "proton", + "schema": "JACOW" + }, + { + "value": "shielding", + "schema": "JACOW" + }, + { + "value": "operation", + "schema": "JACOW" + }, + { + "value": "extraction", + "schema": "JACOW" + } + ], + "publication_info": [ + { + "cnum": "C16-05-08", + "artid": "TUPMR025", + "year": 2016 + } + ], + "$schema": "http://localhost:5000/schemas/records/hep.json", + "citeable": true, + "control_number": 1469884, + "self": { + "$ref": "http://localhost:5000/api/literature/1469884" + }, + "_files": [ + { + "checksum": "md5:da60ba128b6330803030e9b4e97806b9", + "bucket": "d4b163d1-2081-4ffc-950c-4e9a95dfa6f0", + "key": "1704.04471.pdf", + "version_id": "c7d09737-3003-4c0b-bd78-046789fad238", + "size": 641371 + }, + { + "checksum": "md5:d42eb1d81dce32fa3b2db258e30663ce", + "bucket": "d4b163d1-2081-4ffc-950c-4e9a95dfa6f0", + "key": "1704.04471.tar.gz", + "version_id": "082b6682-116a-439f-ae78-6ba144a3e51b", + "size": 627151 + } + ], + "inspire_categories": [ + { + "source": "undefined", + "term": "Accelerators" + } + ], + "texkeys": [ + "Papadimitriou:2016apo" + ], + "arxiv_eprints": [ + { + "value": "1704.04471", + "categories": [ + "physics.acc-ph" + ] + } + ], + "authors": [ + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00114423", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00012026", + "schema": "JACOW" + } + ], + "full_name": "Papadimitriou, V." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "JACoW-00060576", + "schema": "JACOW" + }, + { + "value": "0000-0003-1315-6760", + "schema": "ORCID" + } + ], + "full_name": "Ammigan, K." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00054188", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00044847", + "schema": "JACOW" + } + ], + "full_name": "Anderson, J." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00527123", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00043976", + "schema": "JACOW" + } + ], + "full_name": "Anderson, K.E." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00528066", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00023878", + "schema": "JACOW" + } + ], + "full_name": "Andrews, R." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00267402", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00028259", + "schema": "JACOW" + } + ], + "full_name": "Bocean, V." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00525342", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00060548", + "schema": "JACOW" + } + ], + "full_name": "Crowley, C.F." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00274343", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00013122", + "schema": "JACOW" + } + ], + "full_name": "Eddy, N." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "JACoW-00060577", + "schema": "JACOW" + } + ], + "full_name": "Hartsell, B.D." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00267665", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002212", + "schema": "JACOW" + } + ], + "full_name": "Hays, S." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00427732", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002186", + "schema": "JACOW" + } + ], + "full_name": "Hurh, P." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00091808", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00028649", + "schema": "JACOW" + } + ], + "full_name": "Hylen, J." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00003015", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002226", + "schema": "JACOW" + } + ], + "full_name": "Johnstone, J.A." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00095092", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00048494", + "schema": "JACOW" + } + ], + "full_name": "Kasper, P." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00021679", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002193", + "schema": "JACOW" + } + ], + "full_name": "Kobilarcik, T." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "JACoW-00011961", + "schema": "JACOW" + } + ], + "full_name": "Krafczyk, G.E." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00103095", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00050744", + "schema": "JACOW" + } + ], + "full_name": "Lundberg, B." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00104621", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002163", + "schema": "JACOW" + } + ], + "full_name": "Marchionni, A." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00108416", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002183", + "schema": "JACOW" + } + ], + "full_name": "Mokhov, N.V." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00108681", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002205", + "schema": "JACOW" + } + ], + "full_name": "Moore, C.D." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00200374", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00086143", + "schema": "JACOW" + } + ], + "full_name": "Pushka, D." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00031441", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00019817", + "schema": "JACOW" + } + ], + "full_name": "Rakhno, I." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00428180", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00060562", + "schema": "JACOW" + } + ], + "full_name": "Reitzner, S.D." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00124075", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00004854", + "schema": "JACOW" + } + ], + "full_name": "Schlabach, P." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "JACoW-00028518", + "schema": "JACOW" + } + ], + "full_name": "Sidorov, V." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00428308", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00060558", + "schema": "JACOW" + } + ], + "full_name": "Stefanik, A.M." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00002553", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002192", + "schema": "JACOW" + } + ], + "full_name": "Tariq, S." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00528139", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00012505", + "schema": "JACOW" + } + ], + "full_name": "Valerio, L." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00428372", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00079573", + "schema": "JACOW" + } + ], + "full_name": "Vaziri, K." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00133716", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00002169", + "schema": "JACOW" + } + ], + "full_name": "Velev, G." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "JACoW-00044853", + "schema": "JACOW" + } + ], + "full_name": "Vogel, G." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "JACoW-00028650", + "schema": "JACOW" + } + ], + "full_name": "Williams, K." + }, + { + "raw_affiliations": [ + { + "value": "Fermilab" + }, + { + "value": "Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations": [ + { + "value": "Fermilab" + } + ], + "ids": [ + { + "value": "INSPIRE-00053514", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00006905", + "schema": "JACOW" + } + ], + "full_name": "Zwaska, R.M." + }, + { + "raw_affiliations": [ + { + "value": "Daresbury and Rutherford" + }, + { + "value": "STFC/RAL, Chilton, Didcot, Oxon, United Kingdom" + } + ], + "affiliations": [ + { + "value": "Rutherford" + } + ], + "ids": [ + { + "value": "INSPIRE-00261180", + "schema": "INSPIRE ID" + }, + { + "value": "JACoW-00019797", + "schema": "JACOW" + } + ], + "full_name": "Densham, C." + } + ], + "document_type": [ + "article" + ], + "report_numbers": [ + { + "value": "FERMILAB-CONF-16-163-AD" + } + ], + "acquisition_source": { + "source": "elsevier", + "method": "hepcrawl", + "submission_number": "dbca741a362911e78bfd0242ac12000b", + "datetime": "2017-05-11T09:11:50.192275" + }, + "license": [ + { + "imposing": "arXiv", + "url": "http://creativecommons.org/licenses/by/4.0/" + }, + { + "url": "http://creativecommons.org/licenses/by/3.0/", + "license": "CC-BY-3.0" + } + ], + "number_of_pages": 3, + "urls": [ + { + "value": "http://inspirehep.net/record/1591653/files/arXiv:1704.04471.pdf" + }, + { + "description": "FERMILABCONF", + "value": "http://lss.fnal.gov/archive/2016/conf/fermilab-conf-16-163-ad.pdf" + }, + { + "description": "Fulltext", + "value": "http://inspirehep.net/record/1469884/files/tupmr025.pdf" + } + ], + "abstracts": [ + { + "source": "arXiv", + "value": "Update The Long Baseline Neutrino Facility (LBNF) will utilize a beamline located at Fermilab to provide and aim a neutrino beam of sufficient intensity and appropriate energy range toward the Deep Underground Neutrino Experiment (DUNE) detectors, placed deep underground at the SURF Facility in Lead, South Dakota. The primary proton beam (60-120 GeV) will be extracted from the MI-10 section of Fermilab's Main Injector. Neutrinos will be produced when the protons interact with a solid target to produce mesons which will be subsequently focused by magnetic horns into a 194m long decay pipe where they decay into muons and neutrinos. The parameters of the facility were determined taking into account the physics goals, spatial and radiological constraints, and the experience gained by operating the NuMI facility at Fermilab. The Beamline facility is designed for initial operation at a proton-beam power of 1.2 MW, with the capability to support an upgrade to 2.4 MW. LBNF/DUNE obtained CD-1 approval in November 2015. We discuss here the design status and the associated challenges as well as the R&D and plans for improvements before baselining the facility." + }, + { + "source": "JACoW", + "value": "Head The Long Baseline Neutrino Facility (LBNF) will utilize a beamline located at Fermilab to provide and aim a neutrino beam of sufficient intensity and appropriate energy range toward DUNE detectors, placed deep underground at the SURF Facility in South Dakota. The primary proton beam (60 - 120 GeV) will be extracted from the MI-10 section of Fermilab's Main Injector. Neutrinos are produced after the protons hit a solid target and produce mesons which are subsequently focused by magnetic horns into a 194 m long decay pipe where they decay into muons and neutrinos. The parameters of the facility were determined taking into account the physics goals, spacial and radiological constraints and the experience gained by operating the NuMI facility at Fermilab. The Beamline facility is designed for initial operation at a proton-beam power of 1.2 MW, with the capability to support an upgrade to 2.4 MW. LBNF/DUNE obtained CD-1 approval in November 2015. We discuss here the design status and the associated challenges as well as the R&D and plans for improvements before baselining the facility." + } + ], + "imprints": [ + { + "date": "2016-06" + } + ] +} diff --git a/tests/fixtures/pub2arxiv/head.json b/tests/fixtures/pub2arxiv/head.json new file mode 100644 index 0000000..6dde755 --- /dev/null +++ b/tests/fixtures/pub2arxiv/head.json @@ -0,0 +1,1009 @@ +{ + "_collections":[ + "Literature" + ], + "public_notes":[ + { + "value":"*Brief entry*" + } + ], + "authors":[ + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00114423", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00012026", + "schema":"JACOW" + } + ], + "full_name":"Papadimitriou, Vaia" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"JACoW-00060576", + "schema":"JACOW" + }, + { + "value":"0000-0003-1315-6760", + "schema":"ORCID" + } + ], + "full_name":"Ammigan, Kavin" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00054188", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00044847", + "schema":"JACOW" + } + ], + "full_name":"Anderson, John" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00527123", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00043976", + "schema":"JACOW" + } + ], + "full_name":"Anderson, Kris" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00528066", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00023878", + "schema":"JACOW" + } + ], + "full_name":"Andrews, Richard" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00267402", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00028259", + "schema":"JACOW" + } + ], + "full_name":"Bocean, Virgil" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00525342", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00060548", + "schema":"JACOW" + } + ], + "full_name":"Crowley, Cory" + }, + { + "raw_affiliations":[ + { + "value":"STFC/RAL, Chilton, Didcot, Oxon, United Kingdom" + } + ], + "affiliations":[ + { + "value":"Rutherford" + } + ], + "ids":[ + { + "value":"INSPIRE-00261180", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00019797", + "schema":"JACOW" + } + ], + "full_name":"Densham, Chris" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00274343", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00013122", + "schema":"JACOW" + } + ], + "full_name":"Eddy, Nathan" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"JACoW-00060577", + "schema":"JACOW" + } + ], + "full_name":"Hartsell, Brian" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00267665", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002212", + "schema":"JACOW" + } + ], + "full_name":"Hays, Steven" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00427732", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002186", + "schema":"JACOW" + } + ], + "full_name":"Hurh, Patrick" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00091808", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00028649", + "schema":"JACOW" + } + ], + "full_name":"Hylen, James" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00003015", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002226", + "schema":"JACOW" + } + ], + "full_name":"Johnstone, John" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00095092", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00048494", + "schema":"JACOW" + } + ], + "full_name":"Kasper, Peter" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00021679", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002193", + "schema":"JACOW" + } + ], + "full_name":"Kobilarcik, Thomas" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"JACoW-00011961", + "schema":"JACOW" + } + ], + "full_name":"Krafczyk, George" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00103095", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00050744", + "schema":"JACOW" + } + ], + "full_name":"Lundberg, Byron" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00104621", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002163", + "schema":"JACOW" + } + ], + "full_name":"Marchionni, Alberto" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00108416", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002183", + "schema":"JACOW" + } + ], + "full_name":"Mokhov, Nikolai" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00108681", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002205", + "schema":"JACOW" + } + ], + "full_name":"Moore, Craig" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00200374", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00086143", + "schema":"JACOW" + } + ], + "full_name":"Pushka, David" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00031441", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00019817", + "schema":"JACOW" + } + ], + "full_name":"Rakhno, Igor" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00428180", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00060562", + "schema":"JACOW" + } + ], + "full_name":"Reitzner, Sarah" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00124075", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00004854", + "schema":"JACOW" + } + ], + "full_name":"Schlabach, Phil" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"JACoW-00028518", + "schema":"JACOW" + } + ], + "full_name":"Sidorov, Vladimir" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00428308", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00060558", + "schema":"JACOW" + } + ], + "full_name":"Stefanik, Andrew" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00002553", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002192", + "schema":"JACOW" + } + ], + "full_name":"Tariq, Salman" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00528139", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00012505", + "schema":"JACOW" + } + ], + "full_name":"Valerio, Linda" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00428372", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00079573", + "schema":"JACOW" + } + ], + "full_name":"Vaziri, Kamran" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00133716", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00002169", + "schema":"JACOW" + } + ], + "full_name":"Velev, Gueorgui" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"JACoW-00044853", + "schema":"JACOW" + } + ], + "full_name":"Vogel, Gregory" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"JACoW-00028650", + "schema":"JACOW" + } + ], + "full_name":"Williams, Karlton" + }, + { + "raw_affiliations":[ + { + "value":"Fermilab, Batavia, Illinois, USA" + } + ], + "affiliations":[ + { + "value":"Fermilab" + } + ], + "ids":[ + { + "value":"INSPIRE-00053514", + "schema":"INSPIRE ID" + }, + { + "value":"JACoW-00006905", + "schema":"JACOW" + } + ], + "full_name":"Zwaska, Robert" + } + ], + "titles":[ + { + "title":"Design of the LBNF Beamline" + } + ], + "references":[ + { + "reference":{ + "imprint":{ + "publisher":"Fermilab" + }, + "publication_info":{ + "year":1995 + }, + "misc":[ + "Main Injector Technical Design Handbook, November" + ], + "urls":[ + { + "value":"http://www-fmi.fnal.gov/fmiinternal/MI_Technical_Design/index.html" + } + ], + "label":"1" + } + }, + { + "reference":{ + "publication_info":{ + "year":2007 + }, + "authors":[ + { + "full_name":"Ayres, D.S." + } + ], + "misc":[ + "NOvA Technical Design Report, October" + ], + "urls":[ + { + "value":"http://www-nova.fnal.gov/nova_cd2_review/tdr_oct_23/toc.pdf" + } + ], + "label":"2" + } + }, + { + "reference":{ + "authors":[ + { + "full_name":"Derwent, P." + } + ], + "misc":[ + "Project X website: 1232" + ], + "urls":[ + { + "value":"http://projectxdocdb.fnal.gov/cgi-bin/ShowDocument?docid=" + } + ], + "label":"3" + } + }, + { + "reference":{ + "authors":[ + { + "full_name":"Derwent, P." + } + ], + "misc":[ + "Project X website: 1295" + ], + "urls":[ + { + "value":"http://projectxdocdb.fnal.gov/cgi-bin/ShowDocument?docid=" + } + ], + "label":"4" + } + }, + { + "curated_relation":false, + "reference":{ + "title":{ + "title":"Long-Baseline Neutrino Facility (LBNF) and Deep Underground Neutrino Experiment (DUNE) Conceptual Design Report, Volume 3" + }, + "misc":[ + "June 24" + ], + "arxiv_eprint":"1307.7335", + "authors":[ + { + "full_name":"Hamernik, T." + } + ], + "publication_info":{ + "year":2016 + }, + "label":"5" + }, + "record":{ + "$ref":"http://localhost:5000/api/literature/1245018" + } + }, + { + "reference":{ + "publication_info":{ + "year":2015 + }, + "label":"6", + "misc":[ + "LBNF/DUNE Conceptual Design Report, Volume 3, Annex 3A pp. 1-231" + ], + "title":{ + "title":"Beamline at the Near Site" + } + } + }, + { + "reference":{ + "publication_info":{ + "year":2016 + }, + "misc":[ + "Document?docid=10686, June 25, 2015. Proceedings of IPAC, Busan, Korea TUPMR025 04 Hadron Accelerators A21 Secondary Beams 1293 Copyrighta9CC-BY-3.0andbytherespectiveauthors" + ], + "urls":[ + { + "value":"http://lbne2-docdb.fnal.gov/cgi-bin/Show" + } + ], + "label":"6" + } + } + ], + "external_system_identifiers":[ + { + "value":"1329063", + "schema":"OSTI" + } + ], + "keywords":[ + { + "value":"target", + "schema":"JACOW" + }, + { + "value":"proton", + "schema":"JACOW" + }, + { + "value":"shielding", + "schema":"JACOW" + }, + { + "value":"operation", + "schema":"JACOW" + }, + { + "value":"extraction", + "schema":"JACOW" + } + ], + "publication_info":[ + { + "cnum":"C16-05-08", + "artid":"TUPMR025", + "year":2016 + } + ], + "$schema":"http://localhost:5000/schemas/records/hep.json", + "control_number":1469884, + "self":{ + "$ref":"http://localhost:5000/api/literature/1469884" + }, + "_files":[ + + ], + "inspire_categories":[ + { + "source":"undefined", + "term":"Accelerators" + } + ], + "texkeys":[ + "Papadimitriou:2016apo" + ], + "dois":[ + { + "source":"JACoW", + "value":"10.18429/JACoW-IPAC2016-TUPMR025" + } + ], + "document_type":[ + "conference paper" + ], + "report_numbers":[ + { + "value":"FERMILAB-CONF-16-163-AD" + } + ], + "acquisition_source":{ + "source":"arxiv", + "method":"oai" + }, + "license":[ + { + "url":"http://creativecommons.org/licenses/by/3.0/", + "license":"CC-BY-3.0" + } + ], + "number_of_pages":3, + "urls":[ + { + "description":"FERMILABCONF", + "value":"http://lss.fnal.gov/archive/2016/conf/fermilab-conf-16-163-ad.pdf" + }, + { + "description":"Fulltext", + "value":"http://inspirehep.net/record/1469884/files/tupmr025.pdf" + } + ], + "abstracts":[ + { + "source":"JACoW", + "value":"Head The Long Baseline Neutrino Facility (LBNF) will utilize a beamline located at Fermilab to provide and aim a neutrino beam of sufficient intensity and appropriate energy range toward DUNE detectors, placed deep underground at the SURF Facility in South Dakota. The primary proton beam (60 - 120 GeV) will be extracted from the MI-10 section of Fermilab's Main Injector. Neutrinos are produced after the protons hit a solid target and produce mesons which are subsequently focused by magnetic horns into a 194 m long decay pipe where they decay into muons and neutrinos. The parameters of the facility were determined taking into account the physics goals, spacial and radiological constraints and the experience gained by operating the NuMI facility at Fermilab. The Beamline facility is designed for initial operation at a proton-beam power of 1.2 MW, with the capability to support an upgrade to 2.4 MW. LBNF/DUNE obtained CD-1 approval in November 2015. We discuss here the design status and the associated challenges as well as the R&D and plans for improvements before baselining the facility." + } + ], + "imprints":[ + { + "date":"2016-06" + } + ] +} \ No newline at end of file diff --git a/tests/fixtures/pub2arxiv/root.json b/tests/fixtures/pub2arxiv/root.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/tests/fixtures/pub2arxiv/root.json @@ -0,0 +1 @@ +{} diff --git a/tests/fixtures/pub2arxiv/update.json b/tests/fixtures/pub2arxiv/update.json new file mode 100644 index 0000000..df322ca --- /dev/null +++ b/tests/fixtures/pub2arxiv/update.json @@ -0,0 +1,686 @@ +{ + "preprint_date":"2017-04-14", + "report_numbers":[ + { + "value":"FERMILAB-CONF-16-163-AD" + } + ], + "acquisition_source": { + "datetime": "2017-05-11T09:11:50.192275", + "method": "hepcrawl", + "source": "elsevier", + "submission_number": "dbca741a362911e78bfd0242ac12000b" + }, + "license":[ + { + "imposing":"arXiv", + "url":"http://creativecommons.org/licenses/by/4.0/" + } + ], + "control_number":1591653, + "public_notes":[ + { + "source":"arXiv", + "value":"3 pp" + }, + { + "value":"*Brief entry*" + } + ], + "self":{ + "$ref":"http://localhost:5000/api/literature/1591653" + }, + "arxiv_eprints":[ + { + "categories":[ + "physics.acc-ph" + ], + "value":"1704.04471" + } + ], + "_files":[ + { + "checksum":"md5:da60ba128b6330803030e9b4e97806b9", + "bucket":"d4b163d1-2081-4ffc-950c-4e9a95dfa6f0", + "version_id":"c7d09737-3003-4c0b-bd78-046789fad238", + "key":"1704.04471.pdf", + "size":641371 + }, + { + "checksum":"md5:d42eb1d81dce32fa3b2db258e30663ce", + "bucket":"d4b163d1-2081-4ffc-950c-4e9a95dfa6f0", + "version_id":"082b6682-116a-439f-ae78-6ba144a3e51b", + "key":"1704.04471.tar.gz", + "size":627151 + } + ], + "inspire_categories":[ + { + "source":"undefined", + "term":"Accelerators" + }, + { + "source":"arxiv", + "term":"Accelerators" + } + ], + "_collections":[ + "Literature" + ], + "titles":[ + { + "source":"arXiv", + "title":"Design Of The LBNF Beamline" + } + ], + "references":[ + { + "curated_relation":false, + "record":{ + "$ref":"" + }, + "reference":{ + "texkey":"", + "collaboration":"", + "dois":"", + "misc":[ + "Main Injector Technical Design Handbook, November 1995" + ], + "number":[ + "1" + ], + "imprint":"", + "titles":"", + "authors":"", + "publication_info":{ + "journal_volume":"", + "page_start":"", + "journal_title":"", + "artid":"", + "year":"" + }, + "book_series":"", + "persistent_identifiers":"", + "urls":"" + }, + "raw_refs":[ + { + "position":"", + "source":"", + "value":{ + "url":[ + "http://www-fmi.fnal.gov/fmiinternal/MI_Technical_Design/index.html" + ], + "publisher":[ + "Fermilab" + ], + "linemarker":[ + "1" + ], + "misc":[ + "Main Injector Technical Design Handbook, November 1995" + ] + }, + "schema":"" + } + ] + }, + { + "curated_relation":false, + "record":{ + "$ref":"" + }, + "reference":{ + "texkey":"", + "collaboration":"", + "dois":"", + "misc":[ + "NOvA Technical Design Report, October 2007" + ], + "number":[ + "2" + ], + "imprint":"", + "titles":"", + "authors":[ + "D.S. Ayres et al." + ], + "publication_info":{ + "journal_volume":"", + "page_start":"", + "journal_title":"", + "artid":"", + "year":"" + }, + "book_series":"", + "persistent_identifiers":"", + "urls":"" + }, + "raw_refs":[ + { + "position":"", + "source":"", + "value":{ + "url":[ + "http://www-nova.fnal.gov/nova_cd2_review/tdr_oct_23/toc.pdf" + ], + "linemarker":[ + "2" + ], + "misc":[ + "NOvA Technical Design Report, October 2007" + ], + "author":[ + "D.S. Ayres et al." + ] + }, + "schema":"" + } + ] + }, + { + "curated_relation":false, + "record":{ + "$ref":"" + }, + "reference":{ + "texkey":"", + "collaboration":"", + "dois":"", + "misc":[ + "Project X", + "website:" + ], + "number":[ + "3" + ], + "imprint":"", + "titles":"", + "authors":[ + "P. Derwent et al." + ], + "publication_info":{ + "journal_volume":"", + "page_start":"", + "journal_title":"", + "artid":"", + "year":"" + }, + "book_series":"", + "persistent_identifiers":"", + "urls":"" + }, + "raw_refs":[ + { + "position":"", + "source":"", + "value":{ + "url":[ + "http://projectxdocdb.fnal.gov/cgi-bin/ShowDocument?docid=1232" + ], + "linemarker":[ + "3" + ], + "misc":[ + "Project X", + "website:" + ], + "author":[ + "P. Derwent et al." + ] + }, + "schema":"" + } + ] + }, + { + "curated_relation":false, + "record":{ + "$ref":"" + }, + "reference":{ + "texkey":"", + "collaboration":"", + "dois":"", + "misc":[ + "Project X", + "website:" + ], + "number":[ + "4" + ], + "imprint":"", + "titles":"", + "authors":[ + "P. Derwent et al." + ], + "publication_info":{ + "journal_volume":"", + "page_start":"", + "journal_title":"", + "artid":"", + "year":"" + }, + "book_series":"", + "persistent_identifiers":"", + "urls":"" + }, + "raw_refs":[ + { + "position":"", + "source":"", + "value":{ + "url":[ + "http://projectxdocdb.fnal.gov/cgi-bin/ShowDocument?docid=1295" + ], + "linemarker":[ + "4" + ], + "misc":[ + "Project X", + "website:" + ], + "author":[ + "P. Derwent et al." + ] + }, + "schema":"" + } + ] + }, + { + "curated_relation":false, + "record":{ + "$ref":"" + }, + "reference":{ + "texkey":"", + "collaboration":"", + "dois":"", + "misc":[ + "June 24, 2016" + ], + "number":[ + "5" + ], + "imprint":"", + "titles":"", + "authors":[ + "T. Hamernik et al." + ], + "publication_info":{ + "journal_volume":"", + "page_start":"", + "journal_title":"", + "artid":"", + "year":"" + }, + "book_series":"", + "persistent_identifiers":"", + "urls":"" + }, + "raw_refs":[ + { + "position":"", + "source":"", + "value":{ + "reportnumber":[ + "arXiv:1307.7335 [hep-ex]" + ], + "linemarker":[ + "5" + ], + "title":[ + "Long-Baseline Neutrino Facility (LBNF) and Deep Underground Neutrino Experiment (DUNE) Conceptual Design Report, Volume 3" + ], + "misc":[ + "June 24, 2016" + ], + "author":[ + "T. Hamernik et al." + ] + }, + "schema":"" + } + ] + }, + { + "curated_relation":false, + "record":{ + "$ref":"" + }, + "reference":{ + "texkey":"", + "collaboration":"", + "dois":"", + "misc":[ + "LBNF/DUNE Conceptual Design Report, Volume 3" + ], + "number":[ + "6" + ], + "imprint":"", + "titles":"", + "authors":"", + "publication_info":{ + "journal_volume":"", + "page_start":"", + "journal_title":"", + "artid":"", + "year":"" + }, + "book_series":"", + "persistent_identifiers":"", + "urls":"" + }, + "raw_refs":[ + { + "position":"", + "source":"", + "value":{ + "linemarker":[ + "6" + ], + "misc":[ + "LBNF/DUNE Conceptual Design Report, Volume 3" + ] + }, + "schema":"" + } + ] + } + ], + "urls":[ + { + "value":"http://inspirehep.net/record/1591653/files/arXiv:1704.04471.pdf" + } + ], + "authors":[ + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Papadimitriou, V." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Ammigan, K." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Anderson, J." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Anderson, K.E." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Andrews, R." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Bocean, V." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Crowley, C.F." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Eddy, N." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Hartsell, B.D." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Hays, S." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Hurh, P." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Hylen, J." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Johnstone, J.A." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Kasper, P." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Kobilarcik, T." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Krafczyk, G.E." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Lundberg, B." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Marchionni, A." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Mokhov, N.V." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Moore, C.D." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Pushka, D." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Rakhno, I." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Reitzner, S.D." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Schlabach, P." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Sidorov, V." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Stefanik, A.M." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Tariq, S." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Valerio, L." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Vaziri, K." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Velev, G." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Vogel, G." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Williams, K." + }, + { + "raw_affiliations":[ + { + "value":"Fermilab" + } + ], + "full_name":"Zwaska, R.M." + }, + { + "raw_affiliations":[ + { + "value":"Daresbury and Rutherford" + } + ], + "full_name":"Densham, C." + } + ], + "texkeys":[ + "Papadimitriou:2017ytl" + ], + "$schema":"http://localhost:5000/schemas/records/hep.json", + "document_type":[ + "article" + ], + "abstracts":[ + { + "source":"arXiv", + "value":"Update The Long Baseline Neutrino Facility (LBNF) will utilize a beamline located at Fermilab to provide and aim a neutrino beam of sufficient intensity and appropriate energy range toward the Deep Underground Neutrino Experiment (DUNE) detectors, placed deep underground at the SURF Facility in Lead, South Dakota. The primary proton beam (60-120 GeV) will be extracted from the MI-10 section of Fermilab's Main Injector. Neutrinos will be produced when the protons interact with a solid target to produce mesons which will be subsequently focused by magnetic horns into a 194m long decay pipe where they decay into muons and neutrinos. The parameters of the facility were determined taking into account the physics goals, spatial and radiological constraints, and the experience gained by operating the NuMI facility at Fermilab. The Beamline facility is designed for initial operation at a proton-beam power of 1.2 MW, with the capability to support an upgrade to 2.4 MW. LBNF/DUNE obtained CD-1 approval in November 2015. We discuss here the design status and the associated challenges as well as the R&D and plans for improvements before baselining the facility." + } + ], + "citeable":true +} \ No newline at end of file diff --git a/tests/fixtures/pub2pub/expected_conflict.json b/tests/fixtures/pub2pub/expected_conflict.json new file mode 100644 index 0000000..29ee29c --- /dev/null +++ b/tests/fixtures/pub2pub/expected_conflict.json @@ -0,0 +1,162 @@ +[ + [ + "SET_FIELD", + [ + "control_number" + ], + 1496281 + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "curated_relation":false, + "reference":{ + "publication_info":{ + "year":2000, + "journal_title":"Eur.Phys.J.", + "journal_volume":"C33", + "page_start":"33", + "artid":"33" + }, + "authors":[ + { + "full_name":"M.C.Abreu, " + } + ], + "label":"l", + "misc":[ + "(NA50 Collaboration) and references therein. [2] B.Alessandro et al (NA50 Collaboration)" + ] + }, + "record":{ + "$ref":"http://localhost:5000/api/literature/524685" + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "curated_relation":false, + "reference":{ + "publication_info":{ + "year":2003, + "journal_title":"J.Phys.", + "journal_volume":"G30", + "page_start":"679", + "artid":"81175" + }, + "authors":[ + { + "full_name":"P.Cortese, " + } + ], + "label":"l", + "misc":[ + "(NA50 Collaboration) [3] B.Alessandro et al (NA50 Collaboration), CERN-PH-EP/2004-052, submitted to Eur. Phys. J.C. [4] G. Borges et al (NA50 Collaboration) [5] H.8antos et al.(NA50 Collaboration)" + ] + }, + "record":{ + "$ref":"http://localhost:5000/api/literature/624624" + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "curated_relation":false, + "reference":{ + "publication_info":{ + "year":2001, + "journal_title":"Phys.Lett.", + "journal_volume":"B499", + "page_start":"85", + "artid":"85" + }, + "authors":[ + { + "full_name":"M.Abreu, " + } + ], + "label":"l", + "misc":[ + "[6] (NA50 Collaboration)" + ] + }, + "record":{ + "$ref":"http://localhost:5000/api/literature/537484" + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "curated_relation":false, + "reference":{ + "publication_info":{ + "year":2003, + "journal_title":"Nucl.Phys.", + "journal_volume":"A721", + "page_start":"249", + "artid":"249" + }, + "authors":[ + { + "full_name":"A.B.Kurepin, " + } + ], + "label":"l", + "misc":[ + "[7] (NA50 Collaboration)" + ] + }, + "record":{ + "$ref":"http://localhost:5000/api/literature/631943" + } + } + ], + [ + "ADD_BACK_TO_HEAD", + [ + "references" + ], + { + "curated_relation":false, + "reference":{ + "publication_info":{ + "year":2003, + "journal_title":"Nucl.Phys.", + "journal_volume":"A715", + "page_start":"675", + "artid":"675" + }, + "label":"l", + "misc":[ + "[8] N.8.Topilskaya et al. (NA50 Collaboration)" + ] + }, + "record":{ + "$ref":"http://localhost:5000/api/literature/624623" + } + } + ], + [ + "SET_FIELD", + [ + "self", + "$ref" + ], + "http://localhost:5000/api/literature/1496281" + ] +] \ No newline at end of file diff --git a/tests/fixtures/pub2pub/expected_merged.json b/tests/fixtures/pub2pub/expected_merged.json new file mode 100644 index 0000000..79cf271 --- /dev/null +++ b/tests/fixtures/pub2pub/expected_merged.json @@ -0,0 +1,1456 @@ +{ + "control_number":1503327, + "keywords":[ + { + "value":"talk: Dubna 2004/09/27", + "schema":"INSPIRE" + }, + { + "value":"heavy ion: scattering", + "schema":"INSPIRE" + }, + { + "value":"p nucleus: interaction", + "schema":"INSPIRE" + }, + { + "value":"lead", + "schema":"INSPIRE" + }, + { + "value":"transverse momentum: momentum spectrum", + "schema":"INSPIRE" + }, + { + "value":"transverse momentum dependence", + "schema":"INSPIRE" + }, + { + "value":"impact parameter: dependence", + "schema":"INSPIRE" + }, + { + "value":"charmonium: suppression", + "schema":"INSPIRE" + }, + { + "value":"J/psi(3100): suppression", + "schema":"INSPIRE" + }, + { + "value":"* Automatic Keywords *", + "schema":"INSPIRE" + }, + { + "value":"nucleus nucleus", + "schema":"INSPIRE", + "source":"bibclassify" + }, + { + "value":"charmonium", + "schema":"INSPIRE", + "source":"bibclassify" + }, + { + "schema":"INSPIRE", + "value":"CERN SPS", + "source":"bibclassify" + }, + { + "value":"experimental results", + "schema":"INSPIRE" + } + ], + "imprints":[ + { + "place":"Dubna", + "publisher":"Joint Institute for Nuclear Research", + "date":"2005" + } + ], + "titles":[ + { + "title":"Investigation of charmonium states production in p-A And nucleus-nucleus collisions at the CERN SPS" + } + ], + "_private_notes":[ + { + "value":"From Grobid by jerdelet: title, authors, affiliations, abstract" + } + ], + "texkeys":[ + "Alessandro:2005kfh" + ], + "_files":[ + + ], + "$schema":"http://localhost:5000/schemas/records/hep.json", + "public_notes":[ + { + "value":"*Temporary record*" + } + ], + "authors":[ + { + "full_name":"Alessandro, B.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Alexa, C.", + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "raw_affiliations":[ + { + "value":"IFA" + } + ] + }, + { + "full_name":"Arnaldi, R.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Atayan, M." + }, + { + "full_name":"Beole, S.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Boldea, V.", + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "raw_affiliations":[ + { + "value":"IFA" + } + ] + }, + { + "full_name":"Bordalo, P.", + "affiliations":[ + { + "value":"Lisbon, Tech. U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. Tecnica de Lisboa" + } + ] + }, + { + "full_name":"Borges, G." + }, + { + "full_name":"Castanier, C.", + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Castor, J.", + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Chaurand, B.", + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Cheynis, B.", + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Chiavassa, E.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Cicalo, C." + }, + { + "full_name":"Comets, M.P.", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Constantinescu, S.", + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "raw_affiliations":[ + { + "value":"IFA" + } + ] + }, + { + "full_name":"Cortese, P.", + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ] + }, + { + "full_name":"Falco, A.De" + }, + { + "full_name":"Dellacasa, G.", + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ] + }, + { + "full_name":"De Marco, N.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Devaux, A.", + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Dita, S.", + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "raw_affiliations":[ + { + "value":"IFA" + } + ] + }, + { + "full_name":"Fargeix, J.", + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Force, P.", + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Gallio, M.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Gerschel, C.", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Giubellino, P.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Golubeva, M.B.", + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "raw_affiliations":[ + { + "value":"INR" + } + ] + }, + { + "full_name":"Grigorian, A.A." + }, + { + "full_name":"Grigorian, S." + }, + { + "full_name":"Guber, F.F.", + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "raw_affiliations":[ + { + "value":"INR" + } + ] + }, + { + "full_name":"Guichard, A.", + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Gulkanyan, H." + }, + { + "full_name":"Haroutunian, R.", + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Idzik, M.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Jouan, D.", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Karavitcheva, T.L.", + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "raw_affiliations":[ + { + "value":"INR" + } + ] + }, + { + "full_name":"Kluberg, L.", + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Kurepin, A.B.", + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "raw_affiliations":[ + { + "value":"INR" + } + ] + }, + { + "full_name":"Le Bornec, Y.", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Lourem, C.", + "affiliations":[ + { + "value":"CERN" + } + ], + "raw_affiliations":[ + { + "value":"CERN" + } + ] + }, + { + "full_name":"MacCormick, M.", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Marzari-Chiesa, A.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Masera, M.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + }, + { + "value":"Guangdong, Inst. Mining Metallurgy" + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + }, + { + "value":"Univ. of Mining and Metallurgy" + } + ] + }, + { + "full_name":"Masoni, A." + }, + { + "full_name":"Monteno, M.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Musso, A.", + "affiliations":[ + { + "value":"Stuttgart U." + }, + { + "value":"Paris, IN2P3" + }, + { + "value":"Louis Pasteur U., Strasbourg I" + } + ], + "raw_affiliations":[ + { + "value":"IRS" + }, + { + "value":"CNRS-IN2P3" + }, + { + "value":"Univ. Louis Pasteur" + } + ] + }, + { + "full_name":"Petiau, P.", + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Piccotti, A.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Pizzi, J.R.", + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Prino, F.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Puddu, G." + }, + { + "full_name":"Quintans, C." + }, + { + "full_name":"Ramello, L.", + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ] + }, + { + "full_name":"Ramos, S." + }, + { + "full_name":"Riccati, L.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Santos, H." + }, + { + "full_name":"Saturnini, P.", + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Scomparin, E.", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Serci, S.", + "affiliations":[ + { + "value":"INFN, Cagliari" + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Cagliari/INFN" + } + ] + }, + { + "full_name":"Shahoyan, R.", + "affiliations":[ + { + "value":"LIP, Lisbon" + } + ], + "raw_affiliations":[ + { + "value":"LIP, Lisbon" + } + ] + }, + { + "full_name":"Sigaudo", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Sitta, M.", + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ] + }, + { + "full_name":"Sonderegger, P.", + "affiliations":[ + { + "value":"CERN" + }, + { + "value":"Lisbon, CENTRA" + } + ], + "raw_affiliations":[ + { + "value":"CERN" + }, + { + "value":"IST, Univ. Tecnica de Lisboa" + } + ] + }, + { + "full_name":"Tarrago", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Topilskaya, N.S.", + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "raw_affiliations":[ + { + "value":"INR" + } + ] + }, + { + "full_name":"Usai, G.L.", + "affiliations":[ + { + "value":"Cagliari U." + }, + { + "value":"INFN, Cagliari" + }, + { + "value":"CERN" + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Cagliari/INFN, Cagliari, Italy" + }, + { + "value":"CERN" + } + ] + }, + { + "full_name":"Vercellin", + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ] + }, + { + "full_name":"Villatte, L.", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Willis, N.", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + }, + { + "full_name":"Wu, T.", + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ] + } + ], + "external_system_identifiers":[ + { + "schema":"DESY", + "value":"DA16-kp46bf" + } + ], + "_collections":[ + "Literature" + ], + "urls":[ + { + "description":"Fulltext", + "value":"http://inspirehep.net/record/1496281/files/1436453_255-262.pdf" + }, + { + "description":"Fulltext", + "value":"http://inspirehep.net/record/1503327/files/1436453_255-262.pdf" + } + ], + "core":true, + "acquisition_source":{ + "method":"batchuploader", + "source":"ejl" + }, + "references":[ + { + "record":{ + "$ref":"http://localhost:5000/api/literature/648079" + }, + "reference":{ + "authors":[ + { + "full_name":"G.K.Mallot, " + } + ], + "label":"l", + "misc":[ + "COMPASS proposal CERN/SPSLC 96-14 (Geneva 1996) (2]" + ], + "publication_info":{ + "year":2004, + "journal_title":"Nucl.Instrum.Meth.", + "page_start":"121", + "page_end":"124", + "journal_volume":"A518" + } + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/451092" + }, + "reference":{ + "authors":[ + { + "full_name":"Adeva, B." + } + ], + "label":"l", + "misc":[ + "[3] at al" + ], + "publication_info":{ + "year":1998, + "journal_title":"Phys.Lett.", + "page_start":"180", + "page_end":"190", + "journal_volume":"B420" + } + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/654756" + }, + "reference":{ + "authors":[ + { + "full_name":"Airapetian, A." + } + ], + "label":"l", + "misc":[ + "(4] submitted to Phys. Rev D" + ], + "arxiv_eprint":"hep-ex/0407032" + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/471981" + }, + "reference":{ + "authors":[ + { + "full_name":"Acleva, B." + } + ], + "label":"l", + "misc":[ + "[5] at al" + ], + "publication_info":{ + "year":2001, + "artid":"112001", + "journal_volume":"D58", + "journal_title":"Phys.Rev." + } + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/473421" + }, + "reference":{ + "authors":[ + { + "full_name":"Airapetian, A." + } + ], + "label":"l", + "misc":[ + "(6]" + ], + "publication_info":{ + "year":1998, + "artid":"484", + "page_start":"484", + "journal_volume":"B442", + "journal_title":"Phys.Lett." + } + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/467140" + }, + "reference":{ + "authors":[ + { + "full_name":"Abe, K." + } + ], + "label":"l", + "misc":[ + "[7]" + ], + "publication_info":{ + "year":1998, + "artid":"112003", + "journal_volume":"D58", + "journal_title":"Phys.Rev." + } + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/530798" + }, + "reference":{ + "authors":[ + { + "full_name":"P.L.Anthony, " + } + ], + "label":"l", + "misc":[ + "[8]" + ], + "publication_info":{ + "year":2000, + "journal_title":"Phys.Lett.", + "page_start":"19", + "page_end":"28", + "journal_volume":"B493" + } + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/81094" + }, + "reference":{ + "authors":[ + { + "full_name":"J.Ellis, " + }, + { + "full_name":"R.Jaffe, " + } + ], + "label":"l", + "misc":[ + "[9] 260" + ], + "publication_info":{ + "year":1974, + "artid":"1444", + "page_start":"1444", + "journal_volume":"D9", + "journal_title":"Phys.Rev." + } + }, + "curated_relation":false + } + ], + "self":{ + "$ref":"http://localhost:5000/api/literature/1503327" + }, + "_desy_bookkeeping":[ + { + "status":"abs", + "date":"2016-11-17", + "expert":"G" + }, + { + "status":"printed", + "date":"2016-11-20", + "expert":"G" + }, + { + "status":"final", + "date":"2016-11-30", + "expert":"G" + } + ], + "inspire_categories":[ + { + "term":"Experiment-HEP", + "source":"undefined" + } + ], + "number_of_pages":8, + "publication_info":[ + { + "page_end":"262", + "page_start":"255", + "cnum":"C04-09-27.1", + "parent_isbn":"5953000898", + "parent_record":{ + "$ref":"http://localhost:5000/api/literature/1436453" + } + }, + { + "page_end":"262", + "parent_isbn":"5953000898", + "page_start":"255", + "journal_volume":"V1", + "cnum":"C04-09-27.1", + "parent_record":{ + "$ref":"http://localhost:5000/api/literature/1436453" + } + } + ], + "document_type":[ + "conference paper" + ] +} \ No newline at end of file diff --git a/tests/fixtures/pub2pub/head.json b/tests/fixtures/pub2pub/head.json new file mode 100644 index 0000000..1f9c9b5 --- /dev/null +++ b/tests/fixtures/pub2pub/head.json @@ -0,0 +1,1307 @@ +{ + "core":true, + "acquisition_source":{ + "source":"ejl", + "method":"batchuploader" + }, + "_collections":[ + "Literature" + ], + "control_number":1503327, + "public_notes":[ + { + "value":"*Temporary record*" + } + ], + "self":{ + "$ref":"http://localhost:5000/api/literature/1503327" + }, + "number_of_pages":8, + "publication_info":[ + { + "parent_isbn":"5953000898", + "cnum":"C04-09-27.1", + "page_start":"255", + "page_end":"262", + "parent_record":{ + "$ref":"http://localhost:5000/api/literature/1436453" + } + } + ], + "_files":[ + + ], + "inspire_categories":[ + { + "source":"undefined", + "term":"Experiment-HEP" + } + ], + "titles":[ + { + "title":"Investigation of charmonium states production in p-A And nucleus-nucleus collisions at the CERN SPS" + } + ], + "references":[ + { + "record":{ + "$ref":"http://localhost:5000/api/literature/524685" + }, + "reference":{ + "publication_info":{ + "journal_volume":"C33", + "page_start":"33", + "year":2000, + "artid":"33", + "journal_title":"Eur.Phys.J." + }, + "label":"l", + "misc":[ + "(NA50 Collaboration) and references therein. [2] B.Alessandro et al (NA50 Collaboration)" + ], + "authors":[ + { + "full_name":"M.C.Abreu, " + } + ] + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/624624" + }, + "reference":{ + "publication_info":{ + "journal_volume":"G30", + "page_start":"679", + "year":2003, + "artid":"81175", + "journal_title":"J.Phys." + }, + "label":"l", + "misc":[ + "(NA50 Collaboration) [3] B.Alessandro et al (NA50 Collaboration), CERN-PH-EP/2004-052, submitted to Eur. Phys. J.C. [4] G. Borges et al (NA50 Collaboration) [5] H.8antos et al.(NA50 Collaboration)" + ], + "authors":[ + { + "full_name":"P.Cortese, " + } + ] + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/537484" + }, + "reference":{ + "publication_info":{ + "journal_volume":"B499", + "page_start":"85", + "year":2001, + "artid":"85", + "journal_title":"Phys.Lett." + }, + "label":"l", + "misc":[ + "[6] (NA50 Collaboration)" + ], + "authors":[ + { + "full_name":"M.Abreu, " + } + ] + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/631943" + }, + "reference":{ + "publication_info":{ + "journal_volume":"A721", + "page_start":"249", + "year":2003, + "artid":"249", + "journal_title":"Nucl.Phys." + }, + "label":"l", + "misc":[ + "[7] (NA50 Collaboration)" + ], + "authors":[ + { + "full_name":"A.B.Kurepin, " + } + ] + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/624623" + }, + "reference":{ + "publication_info":{ + "journal_volume":"A715", + "page_start":"675", + "year":2003, + "artid":"675", + "journal_title":"Nucl.Phys." + }, + "misc":[ + "[8] N.8.Topilskaya et al. (NA50 Collaboration)" + ], + "label":"l" + }, + "curated_relation":false + } + ], + "urls":[ + { + "description":"Fulltext", + "value":"http://inspirehep.net/record/1503327/files/1436453_255-262.pdf" + } + ], + "authors":[ + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Alessandro, B." + }, + { + "raw_affiliations":[ + { + "value":"IFA" + } + ], + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "full_name":"Alexa, C." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Arnaldi, R." + }, + { + "full_name":"Atayan, M." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Beole, S." + }, + { + "raw_affiliations":[ + { + "value":"IFA" + } + ], + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "full_name":"Boldea, V." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Tecnica de Lisboa" + } + ], + "affiliations":[ + { + "value":"Lisbon, Tech. U." + } + ], + "full_name":"Bordalo, P." + }, + { + "full_name":"Borges, G." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Castanier, C." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Castor, J." + }, + { + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Chaurand, B." + }, + { + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Cheynis, B." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Chiavassa, E." + }, + { + "full_name":"Cicalo, C." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Comets, M.P." + }, + { + "raw_affiliations":[ + { + "value":"IFA" + } + ], + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "full_name":"Constantinescu, S." + }, + { + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ], + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "full_name":"Cortese, P." + }, + { + "full_name":"Falco, A.De" + }, + { + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ], + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "full_name":"Dellacasa, G." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"De Marco, N." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Devaux, A." + }, + { + "raw_affiliations":[ + { + "value":"IFA" + } + ], + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "full_name":"Dita, S." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Fargeix, J." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Force, P." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Gallio, M." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Gerschel, C." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Giubellino, P." + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Golubeva, M.B." + }, + { + "full_name":"Grigorian, A.A." + }, + { + "full_name":"Grigorian, S." + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Guber, F.F." + }, + { + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Guichard, A." + }, + { + "full_name":"Gulkanyan, H." + }, + { + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Haroutunian, R." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Idzik, M." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Jouan, D." + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Karavitcheva, T.L." + }, + { + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Kluberg, L." + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Kurepin, A.B." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Le Bornec, Y." + }, + { + "raw_affiliations":[ + { + "value":"CERN" + } + ], + "affiliations":[ + { + "value":"CERN" + } + ], + "full_name":"Lourem, C." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"MacCormick, M." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Marzari-Chiesa, A." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + }, + { + "value":"Univ. of Mining and Metallurgy" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + }, + { + "value":"Guangdong, Inst. Mining Metallurgy" + } + ], + "full_name":"Masera, M." + }, + { + "full_name":"Masoni, A." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Monteno, M." + }, + { + "raw_affiliations":[ + { + "value":"IRS" + }, + { + "value":"CNRS-IN2P3" + }, + { + "value":"Univ. Louis Pasteur" + } + ], + "affiliations":[ + { + "value":"Stuttgart U." + }, + { + "value":"Paris, IN2P3" + }, + { + "value":"Louis Pasteur U., Strasbourg I" + } + ], + "full_name":"Musso, A." + }, + { + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Petiau, P." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Piccotti, A." + }, + { + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Pizzi, J.R." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Prino, F." + }, + { + "full_name":"Puddu, G." + }, + { + "full_name":"Quintans, C." + }, + { + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ], + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "full_name":"Ramello, L." + }, + { + "full_name":"Ramos, S." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Riccati, L." + }, + { + "full_name":"Santos, H." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Saturnini, P." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Scomparin, E." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Cagliari/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Cagliari" + } + ], + "full_name":"Serci, S." + }, + { + "raw_affiliations":[ + { + "value":"LIP, Lisbon" + } + ], + "affiliations":[ + { + "value":"LIP, Lisbon" + } + ], + "full_name":"Shahoyan, R." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Sigaudo" + }, + { + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ], + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "full_name":"Sitta, M." + }, + { + "raw_affiliations":[ + { + "value":"CERN" + }, + { + "value":"IST, Univ. Tecnica de Lisboa" + } + ], + "affiliations":[ + { + "value":"CERN" + }, + { + "value":"Lisbon, CENTRA" + } + ], + "full_name":"Sonderegger, P." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Tarrago" + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Topilskaya, N.S." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Cagliari/INFN, Cagliari, Italy" + }, + { + "value":"CERN" + } + ], + "affiliations":[ + { + "value":"Cagliari U." + }, + { + "value":"INFN, Cagliari" + }, + { + "value":"CERN" + } + ], + "full_name":"Usai, G.L." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Vercellin" + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Villatte, L." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Willis, N." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Wu, T." + } + ], + "keywords":[ + { + "value":"* Automatic Keywords *", + "schema":"INSPIRE" + }, + { + "source":"bibclassify", + "value":"nucleus nucleus", + "schema":"INSPIRE" + }, + { + "source":"bibclassify", + "value":"charmonium", + "schema":"INSPIRE" + }, + { + "source":"bibclassify", + "value":"CERN SPS", + "schema":"INSPIRE" + } + ], + "_private_notes":[ + { + "value":"From Grobid by jerdelet: title, authors, affiliations, abstract" + } + ], + "$schema":"http://localhost:5000/schemas/records/hep.json", + "document_type":[ + "conference paper" + ], + "texkeys":[ + "Alessandro:2005kfh" + ], + "imprints":[ + { + "date":"2005", + "publisher":"Joint Institute for Nuclear Research", + "place":"Dubna" + } + ] +} \ No newline at end of file diff --git a/tests/fixtures/pub2pub/root.json b/tests/fixtures/pub2pub/root.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/tests/fixtures/pub2pub/root.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/tests/fixtures/pub2pub/update.json b/tests/fixtures/pub2pub/update.json new file mode 100644 index 0000000..f175f44 --- /dev/null +++ b/tests/fixtures/pub2pub/update.json @@ -0,0 +1,1428 @@ +{ + "_collections":[ + "Literature" + ], + "public_notes":[ + { + "value":"*Temporary record*" + } + ], + "titles":[ + { + "title":"Investigation of charmonium states production in p-A And nucleus-nucleus collisions at the CERN SPS" + } + ], + "references":[ + { + "record":{ + "$ref":"http://localhost:5000/api/literature/648079" + }, + "reference":{ + "publication_info":{ + "journal_volume":"A518", + "page_start":"121", + "page_end":"124", + "journal_title":"Nucl.Instrum.Meth.", + "year":2004 + }, + "authors":[ + { + "full_name":"G.K.Mallot, " + } + ], + "misc":[ + "COMPASS proposal CERN/SPSLC 96-14 (Geneva 1996) (2]" + ], + "label":"l" + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/451092" + }, + "reference":{ + "publication_info":{ + "journal_volume":"B420", + "page_start":"180", + "page_end":"190", + "journal_title":"Phys.Lett.", + "year":1998 + }, + "authors":[ + { + "full_name":"Adeva, B." + } + ], + "misc":[ + "[3] at al" + ], + "label":"l" + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/654756" + }, + "reference":{ + "authors":[ + { + "full_name":"Airapetian, A." + } + ], + "label":"l", + "misc":[ + "(4] submitted to Phys. Rev D" + ], + "arxiv_eprint":"hep-ex/0407032" + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/471981" + }, + "reference":{ + "publication_info":{ + "journal_volume":"D58", + "journal_title":"Phys.Rev.", + "artid":"112001", + "year":2001 + }, + "authors":[ + { + "full_name":"Acleva, B." + } + ], + "misc":[ + "[5] at al" + ], + "label":"l" + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/473421" + }, + "reference":{ + "publication_info":{ + "journal_volume":"B442", + "page_start":"484", + "journal_title":"Phys.Lett.", + "artid":"484", + "year":1998 + }, + "authors":[ + { + "full_name":"Airapetian, A." + } + ], + "misc":[ + "(6]" + ], + "label":"l" + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/467140" + }, + "reference":{ + "publication_info":{ + "journal_volume":"D58", + "journal_title":"Phys.Rev.", + "artid":"112003", + "year":1998 + }, + "authors":[ + { + "full_name":"Abe, K." + } + ], + "misc":[ + "[7]" + ], + "label":"l" + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/530798" + }, + "reference":{ + "publication_info":{ + "journal_volume":"B493", + "page_start":"19", + "page_end":"28", + "journal_title":"Phys.Lett.", + "year":2000 + }, + "authors":[ + { + "full_name":"P.L.Anthony, " + } + ], + "misc":[ + "[8]" + ], + "label":"l" + }, + "curated_relation":false + }, + { + "record":{ + "$ref":"http://localhost:5000/api/literature/81094" + }, + "reference":{ + "publication_info":{ + "journal_volume":"D9", + "page_start":"1444", + "journal_title":"Phys.Rev.", + "artid":"1444", + "year":1974 + }, + "authors":[ + { + "full_name":"J.Ellis, " + }, + { + "full_name":"R.Jaffe, " + } + ], + "misc":[ + "[9] 260" + ], + "label":"l" + }, + "curated_relation":false + } + ], + "external_system_identifiers":[ + { + "value":"DA16-kp46bf", + "schema":"DESY" + } + ], + "keywords":[ + { + "value":"talk: Dubna 2004/09/27", + "schema":"INSPIRE" + }, + { + "value":"heavy ion: scattering", + "schema":"INSPIRE" + }, + { + "value":"p nucleus: interaction", + "schema":"INSPIRE" + }, + { + "value":"lead", + "schema":"INSPIRE" + }, + { + "value":"transverse momentum: momentum spectrum", + "schema":"INSPIRE" + }, + { + "value":"transverse momentum dependence", + "schema":"INSPIRE" + }, + { + "value":"impact parameter: dependence", + "schema":"INSPIRE" + }, + { + "value":"charmonium: suppression", + "schema":"INSPIRE" + }, + { + "value":"J/psi(3100): suppression", + "schema":"INSPIRE" + }, + { + "value":"CERN SPS", + "schema":"INSPIRE" + }, + { + "value":"experimental results", + "schema":"INSPIRE" + } + ], + "publication_info":[ + { + "page_end":"262", + "parent_isbn":"5953000898", + "cnum":"C04-09-27.1", + "journal_volume":"V1", + "parent_record":{ + "$ref":"http://localhost:5000/api/literature/1436453" + }, + "page_start":"255" + } + ], + "$schema":"http://localhost:5000/schemas/records/hep.json", + "control_number":1496281, + "self":{ + "$ref":"http://localhost:5000/api/literature/1496281" + }, + "_files":[ + + ], + "inspire_categories":[ + { + "source":"undefined", + "term":"Experiment-HEP" + } + ], + "texkeys":[ + "Alessandro:2005pjf" + ], + "core":true, + "_desy_bookkeeping":[ + { + "date":"2016-11-17", + "status":"abs", + "expert":"G" + }, + { + "date":"2016-11-20", + "status":"printed", + "expert":"G" + }, + { + "date":"2016-11-30", + "status":"final", + "expert":"G" + } + ], + "authors":[ + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Alessandro, B." + }, + { + "raw_affiliations":[ + { + "value":"IFA" + } + ], + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "full_name":"Alexa, C." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Arnaldi, R." + }, + { + "full_name":"Atayan, M." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Beole, S." + }, + { + "raw_affiliations":[ + { + "value":"IFA" + } + ], + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "full_name":"Boldea, V." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Tecnica de Lisboa" + } + ], + "affiliations":[ + { + "value":"Lisbon, Tech. U." + } + ], + "full_name":"Bordalo, P." + }, + { + "full_name":"Borges, G." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Castanier, C." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Castor, J." + }, + { + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Chaurand, B." + }, + { + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Cheynis, B." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Chiavassa, E." + }, + { + "full_name":"Cicalo, C." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Comets, M.P." + }, + { + "raw_affiliations":[ + { + "value":"IFA" + } + ], + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "full_name":"Constantinescu, S." + }, + { + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ], + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "full_name":"Cortese, P." + }, + { + "full_name":"Falco, A.De" + }, + { + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ], + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "full_name":"Dellacasa, G." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"De Marco, N." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Devaux, A." + }, + { + "raw_affiliations":[ + { + "value":"IFA" + } + ], + "affiliations":[ + { + "value":"Uppsala U." + } + ], + "full_name":"Dita, S." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Fargeix, J." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Force, P." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Gallio, M." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Gerschel, C." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Giubellino, P." + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Golubeva, M.B." + }, + { + "full_name":"Grigorian, A.A." + }, + { + "full_name":"Grigorian, S." + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Guber, F.F." + }, + { + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Guichard, A." + }, + { + "full_name":"Gulkanyan, H." + }, + { + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Haroutunian, R." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Idzik, M." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Jouan, D." + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Karavitcheva, T.L." + }, + { + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Kluberg, L." + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Kurepin, A.B." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Le Bornec, Y." + }, + { + "raw_affiliations":[ + { + "value":"CERN" + } + ], + "affiliations":[ + { + "value":"CERN" + } + ], + "full_name":"Lourem, C." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"MacCormick, M." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Marzari-Chiesa, A." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + }, + { + "value":"Univ. of Mining and Metallurgy" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + }, + { + "value":"Guangdong, Inst. Mining Metallurgy" + } + ], + "full_name":"Masera, M." + }, + { + "full_name":"Masoni, A." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Monteno, M." + }, + { + "raw_affiliations":[ + { + "value":"IRS" + }, + { + "value":"CNRS-IN2P3" + }, + { + "value":"Univ. Louis Pasteur" + } + ], + "affiliations":[ + { + "value":"Stuttgart U." + }, + { + "value":"Paris, IN2P3" + }, + { + "value":"Louis Pasteur U., Strasbourg I" + } + ], + "full_name":"Musso, A." + }, + { + "raw_affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Ecole Polytechnique" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Petiau, P." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Piccotti, A." + }, + { + "raw_affiliations":[ + { + "value":"IPN, Univ. Claude Bernard" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Lyon, IPN" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Pizzi, J.R." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Prino, F." + }, + { + "full_name":"Puddu, G." + }, + { + "full_name":"Quintans, C." + }, + { + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ], + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "full_name":"Ramello, L." + }, + { + "full_name":"Ramos, S." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Riccati, L." + }, + { + "full_name":"Santos, H." + }, + { + "raw_affiliations":[ + { + "value":"Univ. Blaise Pascal" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"U. Blaise Pascal, Clermont-Ferrand" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Saturnini, P." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Scomparin, E." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Cagliari/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Cagliari" + } + ], + "full_name":"Serci, S." + }, + { + "raw_affiliations":[ + { + "value":"LIP, Lisbon" + } + ], + "affiliations":[ + { + "value":"LIP, Lisbon" + } + ], + "full_name":"Shahoyan, R." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Sigaudo" + }, + { + "raw_affiliations":[ + { + "value":"Univ. de! Piemonte Orientale" + }, + { + "value":"INFN-Torino" + } + ], + "affiliations":[ + { + "value":"Piemonte Orientale U., Alessandria" + }, + { + "value":"INFN, Turin" + } + ], + "full_name":"Sitta, M." + }, + { + "raw_affiliations":[ + { + "value":"CERN" + }, + { + "value":"IST, Univ. Tecnica de Lisboa" + } + ], + "affiliations":[ + { + "value":"CERN" + }, + { + "value":"Lisbon, CENTRA" + } + ], + "full_name":"Sonderegger, P." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Tarrago" + }, + { + "raw_affiliations":[ + { + "value":"INR" + } + ], + "affiliations":[ + { + "value":"Moscow, INR" + } + ], + "full_name":"Topilskaya, N.S." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Cagliari/INFN, Cagliari, Italy" + }, + { + "value":"CERN" + } + ], + "affiliations":[ + { + "value":"Cagliari U." + }, + { + "value":"INFN, Cagliari" + }, + { + "value":"CERN" + } + ], + "full_name":"Usai, G.L." + }, + { + "raw_affiliations":[ + { + "value":"Univ. di Torino/INFN" + } + ], + "affiliations":[ + { + "value":"INFN, Turin" + }, + { + "value":"Turin U." + } + ], + "full_name":"Vercellin" + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Villatte, L." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Willis, N." + }, + { + "raw_affiliations":[ + { + "value":"IPNO" + }, + { + "value":"Univ. de Paris-Sud" + }, + { + "value":"CNRS-IN2P3" + } + ], + "affiliations":[ + { + "value":"Orsay, IPN" + }, + { + "value":"Orsay" + }, + { + "value":"Paris, IN2P3" + } + ], + "full_name":"Wu, T." + } + ], + "document_type":[ + "conference paper" + ], + "acquisition_source":{ + "source":"ejl", + "method":"batchuploader" + }, + "number_of_pages":8, + "_private_notes":[ + { + "value":"From Grobid by jerdelet: title, authors, affiliations, abstract" + } + ], + "urls":[ + { + "description":"Fulltext", + "value":"http://inspirehep.net/record/1496281/files/1436453_255-262.pdf" + } + ], + "imprints":[ + { + "date":"2005", + "publisher":"Joint Institute for Nuclear Research", + "place":"Dubna" + } + ] +} \ No newline at end of file diff --git a/tests/integration/test_json_merger.py b/tests/integration/test_json_merger.py new file mode 100644 index 0000000..31b21a6 --- /dev/null +++ b/tests/integration/test_json_merger.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# +# This file is part of INSPIRE. +# Copyright (C) 2017 CERN. +# +# INSPIRE is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# INSPIRE is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with INSPIRE. If not, see . +# +# In applying this license, CERN does not waive the privileges and immunities +# granted to it by virtue of its status as an Intergovernmental Organization +# or submit itself to any jurisdiction. + +from __future__ import absolute_import, division, print_function + +import pytest + +from inspire_json_merger.inspire_json_merger import inspire_json_merge + + +@pytest.mark.parametrize('scenario', [ + 'arxiv2arxiv', 'pub2arxiv', 'pub2pub' +]) +def test_complete_merge(update_fixture_loader, scenario): + root, head, update, expected_conflict, expected_merged = update_fixture_loader.load_test(scenario) + + merged, conflict = inspire_json_merge(root, head, update) + + assert merged == expected_merged + assert conflict == expected_conflict