From bfc344f74c315312208007b34bd5a4fd4a2c6443 Mon Sep 17 00:00:00 2001 From: Saksham Arora Date: Tue, 5 Mar 2024 13:57:57 +0100 Subject: [PATCH] Rename library locations and internal locations to be specific --- cds_ils/cli.py | 2 +- cds_ils/demo_data/libraries.json | 34 +++++++++---------- .../xml_imports/data/multivolume.json | 2 +- tests/migrator/xml_imports/data/serial.json | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/cds_ils/cli.py b/cds_ils/cli.py index e253777cd..ee9ad548a 100644 --- a/cds_ils/cli.py +++ b/cds_ils/cli.py @@ -148,7 +148,7 @@ def location(): ) location = { "pid": RecordIdProviderV2.create().pid.pid_value, - "name": "CERN Central Library", + "name": "CERN Library", "address": "Rue de Meyrin", "email": "library.desk@cern.ch", "opening_weekdays": opening_weekdays, diff --git a/cds_ils/demo_data/libraries.json b/cds_ils/demo_data/libraries.json index fd7763433..57f863774 100644 --- a/cds_ils/demo_data/libraries.json +++ b/cds_ils/demo_data/libraries.json @@ -18,7 +18,7 @@ "email": "" }, { - "name": "CERN Central Library", + "name": "Central Library", "notes": "", "legacy_id": 6, "phone": "", @@ -27,7 +27,7 @@ "email": "library.desk@cern.ch" }, { - "name": "CERN LHC Library", + "name": "LHC Library", "notes": "", "legacy_id": 7, "phone": "", @@ -36,7 +36,7 @@ "email": "library.desk@cern.ch" }, { - "name": "CERN SPS Library", + "name": "SPS Library", "notes": "", "legacy_id": 8, "phone": "", @@ -45,7 +45,7 @@ "email": "library.desk@cern.ch" }, { - "name": "CERN LSL Library", + "name": "LSL Library", "notes": "", "legacy_id": 9, "phone": "", @@ -54,7 +54,7 @@ "email": "library.desk@cern.ch" }, { - "name": "CERN Group Library", + "name": "Group Library", "notes": "", "legacy_id": 10, "phone": "", @@ -63,7 +63,7 @@ "email": "library.desk@cern.ch" }, { - "name": "CERN EP Library", + "name": "EP Library", "notes": "", "legacy_id": 11, "phone": "", @@ -72,7 +72,7 @@ "email": "library.desk@cern.ch" }, { - "name": "CERN Depot 2, bldg. 2 (DE2)", + "name": "Depot 2, bldg. 2 (DE2)", "notes": "", "legacy_id": 12, "phone": "", @@ -81,7 +81,7 @@ "email": "" }, { - "name": "CERN Depot 1, bldg. 2 (DE1)", + "name": "Depot 1, bldg. 2 (DE1)", "notes": "", "legacy_id": 13, "phone": "", @@ -90,7 +90,7 @@ "email": "library.desk@cern.ch" }, { - "name": "CERN ARC Library", + "name": "ARC Library", "notes": "", "legacy_id": 14, "phone": "", @@ -99,7 +99,7 @@ "email": "library.desk@cern.ch" }, { - "name": "CERN GL Library", + "name": "GL Library", "notes": "", "legacy_id": 15, "phone": "", @@ -297,7 +297,7 @@ "email": "" }, { - "name": "CERN Depot 3, bldg. 2 (DE3)", + "name": "Depot 3, bldg. 2 (DE3)", "notes": "", "legacy_id": 38, "phone": "", @@ -306,7 +306,7 @@ "email": "" }, { - "name": "CERN Depot 4, bldg. 500-S-023 (DE4)", + "name": "Depot 4, bldg. 500-S-023 (DE4)", "notes": "", "legacy_id": 39, "phone": "", @@ -315,7 +315,7 @@ "email": "" }, { - "name": "CERN Central Storage (STO)", + "name": "Central Storage (STO)", "notes": "", "legacy_id": 40, "phone": "", @@ -405,7 +405,7 @@ "email": "" }, { - "name": "CERN Didactic Library", + "name": "Didactic Library", "notes": "", "legacy_id": 50, "phone": "", @@ -504,7 +504,7 @@ "email": "" }, { - "name": "CERN Courier", + "name": "Courier", "notes": "", "legacy_id": 61, "phone": "", @@ -513,7 +513,7 @@ "email": "" }, { - "name": "CERN Central Library BIB", + "name": "Central Library BIB", "notes": "", "legacy_id": 62, "phone": "", @@ -522,7 +522,7 @@ "email": "" }, { - "name": "CERN TE-VSC Library", + "name": "TE-VSC Library", "notes": "{'2016-12-21 16:15:45': 'In case Sergio Calatroni is not available, ask Patricia Clerc'}", "legacy_id": 63, "phone": "73070", diff --git a/tests/migrator/xml_imports/data/multivolume.json b/tests/migrator/xml_imports/data/multivolume.json index 35d4f53f6..be3b106d6 100644 --- a/tests/migrator/xml_imports/data/multivolume.json +++ b/tests/migrator/xml_imports/data/multivolume.json @@ -1 +1 @@ -[{"files": [], "collections": null, "recid": 104450, "record": [{"marcxml": "\n 104450\n SzGeCERN\n 20210326105325.0\n \n 0444855012\n print version (v.5)\n \n \n 0444867120\n print version (v.6)\n \n \n 0444869298\n print version (v.9)\n \n \n 0444899723\n print version (v.10)\n \n \n 0720418003\n print version (v.7)\n \n \n 9780080870991\n electronic version (v.1)\n electronic version (v.1)\n \n \n 9780080871004\n electronic version (v.2)\n electronic version (v.2)\n \n \n 9780080871011\n electronic version (v.3)\n electronic version (v.3)\n \n \n 9780080871028\n electronic version (v.4)\n electronic version (v.4)\n \n \n 9780080871035\n electronic version (v.5)\n electronic version (v.5)\n \n \n 9780080871059\n electronic version (v.7)\n electronic version (v.7)\n \n \n 9780080871066\n electronic version (v.8)\n electronic version (v.8)\n \n \n 9780080871073\n electronic version (v.9)\n electronic version (v.9)\n \n \n 9780444513366\n print version (v.11)\n \n \n 9780444529466\n print version (v.12)\n \n \n 9780444865014\n print version (v.5)\n \n \n 9780444867124\n print version (v.6)\n \n \n 9780444869296\n print version (v.9)\n \n \n 9780444870032\n print version (v.8)\n \n \n 9780444898920\n print version (v.7)\n \n \n 9780444899729\n print version (v.10)\n \n \n 9780720418002\n print version (v.7)\n \n \n 9780720418019\n print version (v.1)\n \n \n 9780720418026\n print version (v.2)\n \n \n 9780720418033\n print version (v.3)\n \n \n 9780720418040\n print version (v.4)\n \n \n oai:cds.cern.ch:104450\n cerncds:BOOK\n \n \n 0322501CERCER\n \n \n 0011937CERCER\n \n \n 0016711CERCER\n \n \n 0230285CERCER\n \n \n 0009722CERCER\n \n \n 0007995CERCER\n \n \n 0007919CERCER\n \n \n 0007918CERCER\n \n \n 0001842CERCER\n \n \n 0007917CERCER\n \n \n eng\n \n \n 53(08)\n \n \n 53\n \n \n 92\n \n \n 539.17.014\n \n \n 539.171.01\n \n \n 537.534.75\n \n \n 539.186.2\n \n \n v.1\n 72-2408-2\n \n \n v.10\n B00014307\n \n \n v.11\n CM-B00059276\n \n \n v.12\n CM-B00059277\n \n \n v.2\n 82-0165-9\n \n \n v.3\n 76-0846-6\n \n \n v.4\n 77-0542-9\n \n \n v.5\n 85-0045-6\n \n \n v.6\n 85-0828-5\n \n \n v.7\n B00002600\n \n \n v.7\n B00009616\n \n \n v.8\n 88-0037-7\n \n \n v.9\n 86-0361-5\n \n \n Bohr, Niels Henrik David\n \n \n Niels Bohr\n collected works\n \n \n v.1\n Early work (1905-1911)\n \n \n v.2\n Work on atomic physics (1912-1917)\n \n \n v.3\n The correspondence principle (1918-1923)\n \n \n v.4\n The periodic system (1920-1923)\n \n \n v.5\n The emergence of quantum mechanics (mainly 1924-1926)\n \n \n v.6\n Foundations of quantum physics I (1926-1932)\n \n \n v.7\n Foundations of quantum physics II (1933-1958)\n \n \n v.8\n The penetration of charged particles through matter (1912-1954)\n \n \n v.9\n Nuclear physics (1929-1952)\n \n \n v.10\n Complementarity beyond physics (1928-1962)\n \n \n v.11\n The political arena (1934-1961)\n \n \n v.12\n Popularization and people (1911-1962)\n \n \n Amsterdam\n North-Holland\n 1976-2006\n \n \n 12 v\n Phys.Desc.\n \n \n paper\n \n \n ebook\n \n \n EBLlink deleted\n \n \n ELS201605\n \n \n MULTIVOLUMESX\n \n \n SzGeCERN\n Physics in General\n \n \n SzGeCERN\n Biography, Geography, History\n \n \n SzGeCERN\n General Theoretical Physics\n \n \n CERN\n correspondence\n \n \n BOOK\n \n \n Nielsen, J Rud\n ed.\n \n \n Hoyer, Ulrich\n ed.\n \n \n Rosenfeld, L\u00e9on\n ed.\n \n \n Ruedinger, Erik\n ed.\n \n \n Stolzenburg, Klaus\n ed.\n \n \n Kalckar, J\u00f8rgen\n ed.\n \n \n Thorsen, Jens\n ed.\n \n \n Aaserud, Finn\n ed.\n \n \n Favrhold, David\n ed.\n \n \n CERN Central Library\n 92(08) Bohr\n \n \n CERN Depot 1, bldg. 2 (DE1)\n 92(08) Bohr\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/4\n ebook (v.4)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/6\n ebook (v.6)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/7\n ebook (v.7)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/8\n ebook (v.8)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/9\n ebook (v.9)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/10\n ebook (v.10)\n \n \n ELS\n m\n 198502\n \n \n 21\n \n \n 20091110\n 1801\n CER01\n 19900127\n \n \n PUBLIC\n \n \n 0001\n \n \n 000322501CER\n \n \n 000011937CER\n \n \n 000016711CER\n \n \n 000230285CER\n \n \n 000009722CER\n \n \n 000007995CER\n \n \n 000007919CER\n \n \n 000007918CER\n \n \n 000001842CER\n \n \n 000007917CER\n \n \n BOOK\n \n \n 99592\n \n \n 104451\n \n \n 104452\n \n \n 104510\n \n \n 105615\n \n \n 307956\n \n \n 111329\n \n \n 107305\n \n \n 396136\n \n", "json": null, "modification_datetime": "2021-03-26T09:53:25+00:00"}]}] +[{"files": [], "collections": null, "recid": 104450, "record": [{"marcxml": "\n 104450\n SzGeCERN\n 20210326105325.0\n \n 0444855012\n print version (v.5)\n \n \n 0444867120\n print version (v.6)\n \n \n 0444869298\n print version (v.9)\n \n \n 0444899723\n print version (v.10)\n \n \n 0720418003\n print version (v.7)\n \n \n 9780080870991\n electronic version (v.1)\n electronic version (v.1)\n \n \n 9780080871004\n electronic version (v.2)\n electronic version (v.2)\n \n \n 9780080871011\n electronic version (v.3)\n electronic version (v.3)\n \n \n 9780080871028\n electronic version (v.4)\n electronic version (v.4)\n \n \n 9780080871035\n electronic version (v.5)\n electronic version (v.5)\n \n \n 9780080871059\n electronic version (v.7)\n electronic version (v.7)\n \n \n 9780080871066\n electronic version (v.8)\n electronic version (v.8)\n \n \n 9780080871073\n electronic version (v.9)\n electronic version (v.9)\n \n \n 9780444513366\n print version (v.11)\n \n \n 9780444529466\n print version (v.12)\n \n \n 9780444865014\n print version (v.5)\n \n \n 9780444867124\n print version (v.6)\n \n \n 9780444869296\n print version (v.9)\n \n \n 9780444870032\n print version (v.8)\n \n \n 9780444898920\n print version (v.7)\n \n \n 9780444899729\n print version (v.10)\n \n \n 9780720418002\n print version (v.7)\n \n \n 9780720418019\n print version (v.1)\n \n \n 9780720418026\n print version (v.2)\n \n \n 9780720418033\n print version (v.3)\n \n \n 9780720418040\n print version (v.4)\n \n \n oai:cds.cern.ch:104450\n cerncds:BOOK\n \n \n 0322501CERCER\n \n \n 0011937CERCER\n \n \n 0016711CERCER\n \n \n 0230285CERCER\n \n \n 0009722CERCER\n \n \n 0007995CERCER\n \n \n 0007919CERCER\n \n \n 0007918CERCER\n \n \n 0001842CERCER\n \n \n 0007917CERCER\n \n \n eng\n \n \n 53(08)\n \n \n 53\n \n \n 92\n \n \n 539.17.014\n \n \n 539.171.01\n \n \n 537.534.75\n \n \n 539.186.2\n \n \n v.1\n 72-2408-2\n \n \n v.10\n B00014307\n \n \n v.11\n CM-B00059276\n \n \n v.12\n CM-B00059277\n \n \n v.2\n 82-0165-9\n \n \n v.3\n 76-0846-6\n \n \n v.4\n 77-0542-9\n \n \n v.5\n 85-0045-6\n \n \n v.6\n 85-0828-5\n \n \n v.7\n B00002600\n \n \n v.7\n B00009616\n \n \n v.8\n 88-0037-7\n \n \n v.9\n 86-0361-5\n \n \n Bohr, Niels Henrik David\n \n \n Niels Bohr\n collected works\n \n \n v.1\n Early work (1905-1911)\n \n \n v.2\n Work on atomic physics (1912-1917)\n \n \n v.3\n The correspondence principle (1918-1923)\n \n \n v.4\n The periodic system (1920-1923)\n \n \n v.5\n The emergence of quantum mechanics (mainly 1924-1926)\n \n \n v.6\n Foundations of quantum physics I (1926-1932)\n \n \n v.7\n Foundations of quantum physics II (1933-1958)\n \n \n v.8\n The penetration of charged particles through matter (1912-1954)\n \n \n v.9\n Nuclear physics (1929-1952)\n \n \n v.10\n Complementarity beyond physics (1928-1962)\n \n \n v.11\n The political arena (1934-1961)\n \n \n v.12\n Popularization and people (1911-1962)\n \n \n Amsterdam\n North-Holland\n 1976-2006\n \n \n 12 v\n Phys.Desc.\n \n \n paper\n \n \n ebook\n \n \n EBLlink deleted\n \n \n ELS201605\n \n \n MULTIVOLUMESX\n \n \n SzGeCERN\n Physics in General\n \n \n SzGeCERN\n Biography, Geography, History\n \n \n SzGeCERN\n General Theoretical Physics\n \n \n CERN\n correspondence\n \n \n BOOK\n \n \n Nielsen, J Rud\n ed.\n \n \n Hoyer, Ulrich\n ed.\n \n \n Rosenfeld, L\u00e9on\n ed.\n \n \n Ruedinger, Erik\n ed.\n \n \n Stolzenburg, Klaus\n ed.\n \n \n Kalckar, J\u00f8rgen\n ed.\n \n \n Thorsen, Jens\n ed.\n \n \n Aaserud, Finn\n ed.\n \n \n Favrhold, David\n ed.\n \n \n CERN Library\n 92(08) Bohr\n \n \n CERN Depot 1, bldg. 2 (DE1)\n 92(08) Bohr\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/4\n ebook (v.4)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/6\n ebook (v.6)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/7\n ebook (v.7)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/8\n ebook (v.8)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/9\n ebook (v.9)\n \n \n https://ezproxy.cern.ch/login?url=http://www.sciencedirect.com/science/bookseries/18760503/10\n ebook (v.10)\n \n \n ELS\n m\n 198502\n \n \n 21\n \n \n 20091110\n 1801\n CER01\n 19900127\n \n \n PUBLIC\n \n \n 0001\n \n \n 000322501CER\n \n \n 000011937CER\n \n \n 000016711CER\n \n \n 000230285CER\n \n \n 000009722CER\n \n \n 000007995CER\n \n \n 000007919CER\n \n \n 000007918CER\n \n \n 000001842CER\n \n \n 000007917CER\n \n \n BOOK\n \n \n 99592\n \n \n 104451\n \n \n 104452\n \n \n 104510\n \n \n 105615\n \n \n 307956\n \n \n 111329\n \n \n 107305\n \n \n 396136\n \n", "json": null, "modification_datetime": "2021-03-26T09:53:25+00:00"}]}] diff --git a/tests/migrator/xml_imports/data/serial.json b/tests/migrator/xml_imports/data/serial.json index a437d93e2..1acadbfd2 100644 --- a/tests/migrator/xml_imports/data/serial.json +++ b/tests/migrator/xml_imports/data/serial.json @@ -41,7 +41,7 @@ "recid": 213298, "record": [ { - "marcxml": "\n 213298\n SzGeCERN\n 20210319100207.0\n \n oai:cds.cern.ch:213298\n cerncds:FULLTEXT\n cerncds:REPORT\n INIS\n cerncds:CERN:FULLTEXT\n cerncds:CERN\n \n \n SPIRES\n 6388019\n \n \n Inspire\n 43880\n \n \n Mottelson, Benjamin Roy\n CERN\n \n \n 000125459CER\n \n \n REPORT\n \n \n SzGeCERN\n Nuclear Physics\n \n \n REPORT\n \n \n CERN\n \n \n YELLOW REPORT\n \n \n m\n 199043\n a1957\n \n \n 21\n \n \n This document exists only as a journal publication: it is not in the CERN Official Collection bound volume\n \n \n Open Access\n \n \n ILSSYNC\n \n \n CERN-57-38\n \n \n 1-174\n 16\n Dan. Mat. Fys. Medd.\n 27\n 1953\n \n \n CERN Depot 4, bldg. 500-S-023 (DE4)\n CERN 57-38\n \n \n CERN Central Library\n Off.Coll.\n \n \n 174 p\n \n \n paper\n \n \n CERN Yellow Reports: Monographs\n \n \n http://documents.cern.ch/cgi-bin/setlink?base=cernrep&categ=Yellow_Report&id=1957-038\n \n \n http://cds.cern.ch/record/213298/files/p1.pdf\n DKDVS Published version, local copy\n \n \n CERN Yellow Report\n CERN-1957-038\n \n \n Collective and individual-particle aspects of nuclear structure\n \n \n 1953\n \n \n Bohr, Aage Niels\n CERN\n \n \n EP\n \n \n eng\n \n \n 0003\n \n \n 20100901\n 1603\n CER01\n 19901030\n \n \n PUBLIC\n \n", + "marcxml": "\n 213298\n SzGeCERN\n 20210319100207.0\n \n oai:cds.cern.ch:213298\n cerncds:FULLTEXT\n cerncds:REPORT\n INIS\n cerncds:CERN:FULLTEXT\n cerncds:CERN\n \n \n SPIRES\n 6388019\n \n \n Inspire\n 43880\n \n \n Mottelson, Benjamin Roy\n CERN\n \n \n 000125459CER\n \n \n REPORT\n \n \n SzGeCERN\n Nuclear Physics\n \n \n REPORT\n \n \n CERN\n \n \n YELLOW REPORT\n \n \n m\n 199043\n a1957\n \n \n 21\n \n \n This document exists only as a journal publication: it is not in the CERN Official Collection bound volume\n \n \n Open Access\n \n \n ILSSYNC\n \n \n CERN-57-38\n \n \n 1-174\n 16\n Dan. Mat. Fys. Medd.\n 27\n 1953\n \n \n CERN Depot 4, bldg. 500-S-023 (DE4)\n CERN 57-38\n \n \n CERN Library\n Off.Coll.\n \n \n 174 p\n \n \n paper\n \n \n CERN Yellow Reports: Monographs\n \n \n http://documents.cern.ch/cgi-bin/setlink?base=cernrep&categ=Yellow_Report&id=1957-038\n \n \n http://cds.cern.ch/record/213298/files/p1.pdf\n DKDVS Published version, local copy\n \n \n CERN Yellow Report\n CERN-1957-038\n \n \n Collective and individual-particle aspects of nuclear structure\n \n \n 1953\n \n \n Bohr, Aage Niels\n CERN\n \n \n EP\n \n \n eng\n \n \n 0003\n \n \n 20100901\n 1603\n CER01\n 19901030\n \n \n PUBLIC\n \n", "json": null, "modification_datetime": "2021-03-19T09:02:07+00:00" }