colonial-heritage / research-guides-dev

Development repo for integrating the research guides from NIOD into the Datahub
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

nesting of elements in "Breakdown" of niveau0 #34

Closed valevo closed 1 month ago

valevo commented 1 month ago

an entry of the form

  - "How can I use the data hub for my research?":
    link: "niveau1/English/HowToUseTheDataHub_20240424.yml"
    rel_type: "see also"

becomes when parsed:

{'How can I use the data hub for my research?': None,
  'link': 'niveau1/English/HowToUseTheDataHub_20240424.yml',
  'rel_type': 'see also'} 

it should instead be of the form:

  - "How can I use the data hub for my research?":
        link: "niveau1/English/HowToUseTheDataHub_20240424.yml"
        rel_type: "see also"

so that the parsed dictionary becomes:

{'How can I use the data hub for my research?': {'link': 'niveau1/English/HowToUseTheDataHub_20240424.yml',
   'rel_type': 'see also'}}

(notice that the name of the RG is now the key for a dictionary that contains the other info; in the version above it is a key that has no value)

valevo commented 1 month ago

FOR THIS ONCE: fixed by me