diff --git a/public/test_files/2018340701.xml b/public/test_files/2018340701.xml new file mode 100644 index 00000000..9ea9210d --- /dev/null +++ b/public/test_files/2018340701.xml @@ -0,0 +1,622 @@ + + + + United Arab Emirates Qānūn al-ijrāʼāt al-jazāʼīyah + unitedarabemiratesqānūnalijrāʼātaljazāʼīyah + + + + + Arabic + ara + + + + + bibliography + bibliography + + + + + United Arab Emirates + a-ts--- + + + + + KMV4604.51992 + .A4 2017 + + + United States, Library of Congress + DLC + dlc + US-dlc + + + + + used by assigner + uba + + + + + + + + + + + United Arab Emirates + 151 $aUnited Arab Emirates + اتحاد إمارات الخليج العربي + 451 $aاتحاد إمارات الخليج العربي + a-ts--- + + + + + enacting jurisdiction + enj + + + + + + + Qānūn al-ijrāʼāt al-jazāʼīyah + قانون الإجراءات الجزائية + + + + + text + txt + + + + + + Criminal procedure--United Arab Emirates + Criminal procedure--United Arab Emirates + + + Library of Congress Subject Headings + + + + + Criminal procedure + 150 $aCriminal procedure + + + United Arab Emirates + 181 $zUnited Arab Emirates + دولة الإمارات العربية المتحدة + 4102 $aدولة الإمارات العربية المتحدة + + + criminalprocedureunitedarabemirates + + + Library of Congress Subject Headings + + + + + + + + Rehabilitation--Law and legislation--United Arab Emirates + Rehabilitation--Law and legislation--United Arab Emirates + + + Library of Congress Subject Headings + + + + + Rehabilitation + 150 $aRehabilitation + + + Law and legislation + 180 $xLaw and legislation + + + United Arab Emirates + 181 $zUnited Arab Emirates + دولة الإمارات العربية المتحدة + 4102 $aدولة الإمارات العربية المتحدة + + + rehabilitationlawandlegislationunitedarabemirates + + + Library of Congress Subject Headings + + + + + + + + + 2 + 2 + + + + + + transcribed + t + + + + + Silsilat al-tashrīʻāt al-ittiḥādīyah + سلسلة التشريعات الإتحادية ؛ + + + + + + + + + + 2 + 2 + + + + + + transcribed + t + + + + + Silsilat al-tashrīʻāt wa-al-qawānīn al-ittiḥādīyah fī dawlat al-Imārāt al-ʻArabīyah al-Muttaḥidah + سلسلة التشريعات والقوانين الإتحادية في دولة الإمارات العربية المتحدة ؛ + + + + + + + + + + + related work + relatedwork + + + + + United Arab Emirates Qānūn al-Ijrāʼāt al-Jazāʼīyah (1992) + + + + + + + United Arab Emirates + 151 $aUnited Arab Emirates + اتحاد إمارات الخليج العربي + 451 $aاتحاد إمارات الخليج العربي + a-ts--- + + + + + contributor + ctb + + + + + + + Qānūn al-Ijrāʼāt al-Jazāʼīyah (1992) + + + + + Qānūn Ittiḥādī raqm 35 (1992) + + + + + + + + + + + related work + relatedwork + + + + + United Arab Emirates Qānūn Radd al-Iʻtibār (1992) + + + + + + + United Arab Emirates + 1101 $aUnited Arab Emirates. + + + + + contributor + ctb + + + + + + + Qānūn Radd al-Iʻtibār (1992) + + + + + Qānūn Ittiḥādī raqm 36 (1992) + + + + + + + + + + + + new + n + + + 2018-05-03 + + + + United States, Library of Congress + DLC + dlc + US-dlc + + + + + + + + + changed + c + + + 2024-12-12T07:48:54 + + + + United States, Library of Congress + DLC + dlc + US-dlc + + + + + + + + + changed + c + + + + + + United States, Library of Congress, Network Development and MARC Standards Office + DLC-MRC + dlcmrc + US-dlcmrc + + + + 2024-12-16T09:40:27.434778-05:00 + + + + + + + + full + f + + + + + ISBD: International standard bibliographic description + isbd + + + + + 20481788 + + + United States, Library of Congress + DLC + dlc + US-dlc + + + + + =906 $a 7 $b cbc $c origode $d 2 $e ncip $f 20 $g y-nonroman + =925 0 $a acquire $b 1 shelf copy $x policy default + =955 $b we52 2018-05-12; $i we52 2024-11-20 to LL + + + English + eng + + + + + Resource description and access + rda + + + + + + 040 $aDLC$beng$erda$cDLC + + + + + Program for Cooperative Cataloging + pcc + + + + + LC Overseas Data Entry + lcode + + + =985 $e ODE-ca + + + + + + + single unit + mono + + + + + + 2017 + + + United Arab Emirates + ts + + + al-Shāriqah + الشارقة + Jamʻīyat al-Imārāt lil-Muḥāmīn wa-al-Qānūnīyīn + جمعية الإمارات للمحامين والقانونيين، + 2017 + 2017 + + + al-Shāriqah: Jamʻīyat al-Imārāt lil-Muḥāmīn wa-al-Qānūnīyīn, 2017 + الشارقة: جمعية الإمارات للمحامين والقانونيين،, 2017 + + + 2018340701 + + + + + 9789948237792 + + + + + Qānūn al-ijrāʼāt al-jazāʼīyah + al-Qānūn al-Ittiḥādī raqm 35 li-sanat 1992 M ; Qānūn Radd al-Iʻtibār, al-Qānūn al-Ittiḥādī raqm 36 li-sanat 1992 M. + قانون الإجراءات الجزائية + القانون الإتحادي رقم ٣٥ لسنة ١٩٩٢ م ؛ قانون رد الإعتبار، القانون الإتحادي رقم ٣٦ لسنة ١٩٩٢ م + + + al-Ṭabʻah al-ūlá + الطبعة الأولى + + + 108 pages + + + 21 cm + + + unmediated + n + + + + + volume + nc + + + + + "Aḥdath al-taʻdīlāt li-ʻām, 2017"--cover. + + + + + + Includes bibliographical references. + + + + + + + + + new + n + + + 2018-05-03 + + + + United States, Library of Congress + DLC + dlc + US-dlc + + + + + + + + + changed + c + + + 2024-12-12T07:48:54 + + + + United States, Library of Congress + DLC + dlc + US-dlc + + + + + + + + + changed + c + + + + + + United States, Library of Congress, Network Development and MARC Standards Office + DLC-MRC + dlcmrc + US-dlcmrc + + + + 2024-12-16T09:40:27.434778-05:00 + + + + + + + + full + f + + + + + ISBD: International standard bibliographic description + isbd + + + + + 20481788 + + + United States, Library of Congress + DLC + dlc + US-dlc + + + + + =906 $a 7 $b cbc $c origode $d 2 $e ncip $f 20 $g y-nonroman + =925 0 $a acquire $b 1 shelf copy $x policy default + =955 $b we52 2018-05-12; $i we52 2024-11-20 to LL + + + English + eng + + + + + Resource description and access + rda + + + + + + 040 $aDLC$beng$erda$cDLC + + + + + Program for Cooperative Cataloging + pcc + + + + + LC Overseas Data Entry + lcode + + + =985 $e ODE-ca + + + + diff --git a/src/lib/utils_parse.js b/src/lib/utils_parse.js index b29bcda8..a05fa662 100644 --- a/src/lib/utils_parse.js +++ b/src/lib/utils_parse.js @@ -1614,6 +1614,19 @@ const utilsParse = { sucessfulElements.push(e.outerHTML) + + // check if we marked this component deepHierarchy + if (populateData.deepHierarchy){ + // check if it is a relation with a URI, if so it is okay + if (populateData.userValue['http://id.loc.gov/ontologies/bibframe/relation'] && populateData.userValue['http://id.loc.gov/ontologies/bibframe/relation'][0]){ + if (populateData.userValue['http://id.loc.gov/ontologies/bibframe/relation'][0]['http://id.loc.gov/ontologies/bibframe/associatedResource'] && populateData.userValue['http://id.loc.gov/ontologies/bibframe/relation'][0]['http://id.loc.gov/ontologies/bibframe/associatedResource'][0]){ + if (populateData.userValue['http://id.loc.gov/ontologies/bibframe/relation'][0]['http://id.loc.gov/ontologies/bibframe/associatedResource'][0]['@id']){ + delete populateData.deepHierarchy + } + } + } + } + // since we created a brand new populateData we either need to // replace the orginal in the profile or if there is more than one we // need to make a new one and add it to the resource template list diff --git a/src/stores/config.js b/src/stores/config.js index 1b3ecab5..357c1bc3 100644 --- a/src/stores/config.js +++ b/src/stores/config.js @@ -277,6 +277,10 @@ export const useConfigStore = defineStore('config', { {lccn:'2023920086',label:"The Serby saga (IBC)", idUrl:'https://id.loc.gov/resources/instances/23354934.html', profile:'Monograph',profileId:'lc:RT:bf2:Monograph:Instance'}, {lccn:'2024398050',label:"Wehasŭ sonyŏn (Compilation)", idUrl:'https://id.loc.gov/resources/instances/23799873.html', profile:'Monograph',profileId:'lc:RT:bf2:Monograph:Instance'}, + {lccn:'2018340701',label:"Qānūn al-ijrāʼāt al-jazāʼīyah", idUrl:'https://id.loc.gov/resources/instances/2018340701.html', profile:'Monograph',profileId:'lc:RT:bf2:Monograph:Instance'}, + + + {lccn:'2007052988',label:"A journey to the Western Islands of Scotland", idUrl:'https://id.loc.gov/resources/instances/15146892.html', profile:'Monograph',profileId:'lc:RT:bf2:Monograph:Instance'}, {lccn:'2023546355',label:"'P'osŭt'ŭ cheguk' ŭi Tong Asia", idUrl:'https://id.loc.gov/resources/instances/23591130.html', profile:'Monograph',profileId:'lc:RT:bf2:Monograph:Instance'}, @@ -302,6 +306,8 @@ export const useConfigStore = defineStore('config', { + + ],