EQAR / eqar_backend

REST API backend for the DEQAR database.
GNU General Public License v3.0
1 stars 0 forks source link

Europass: institution names #430

Closed ctueck closed 2 years ago

ctueck commented 2 years ago

Currently, we make the English name the <prefLabel/> and the official name the <altLabel/>:

https://github.com/EQAR/eqar_backend/blob/496fb2bebccae2a64ca13309b99942e522c090be/connectapi/europass/accrediation_xml_creator.py#L327-L345

That's okay when there are both. But we have cases where English name is empty and only official name set (this is valid by our requirements, the opposite isn't).

I guess in that case, the official name should be <prefLabel/> and there's no <altLabel/>. What happens now is that you have an empty <prefLabel/> and the official name as <altLabel/>, example from https://backend.deqar.eu/connectapi/v1/europass/accreditations/aut:

<organization id="https://data.deqar.eu/institution/6533">
  <registration spatialID="http://publications.europa.eu/resource/authority/country/AUT">https://data.deqar.eu/institution/6533</registration>
  <identifier schemeAgencyName="ETER" schemeID="https://www.eter-project.com/">AT0072</identifier>
  <prefLabel>
    <text lang="en" content-type="text/plain"/>
  </prefLabel>
  <altLabel>
    <text lang="de" content-type="text/plain">JML Jam Music Lab Private University for Jazz and Popular Music Vienna</text>
  </altLabel>
...
</organization>