Open skalee opened 4 years ago
The upper (non-localized) one The upper one is displayed with following piece of code, where part_number is the first segment of term ID, i.e. 112 in this case, as requested in #4. Note that "IEC 60050-" part is fixed and cannot be overridden (I'm not sure if that's a problem though).
Yes this was a hack back then. It is true that all IEV entries come from "IEC 60050-*", and the part number is the first segment of the concept ID.
We should probably give a link to the IEV page (of this same site) that contains the part that lists out all terms.
I'm quite surprised that concept "main" source works differently than translation source. ronaldtse Please confirm that this is how it should be.
Yes this is how it works. There is a "main" concept source, and the translations can come from other sources (sometimes they are the same as the concept source).
Please clarify how to display concept's authoritative source on IEV site.
There are two places where authoritative source appears: the non-localized part (the upper one on picture below) and the localized one. They are defined in a quite different ways.
The upper (non-localized) one
The upper one is displayed with following piece of code, where
part_number
is the first segment of term ID, i.e. 112 in this case, as requested in #4.https://github.com/glossarist/iev-demo-site/blob/fc31fd57732c6ab16b61fe5bf2012f7e02342821/_source/_includes/concept-source.html#L2-L7
Note that "IEC 60050-" part is fixed and cannot be overridden (I'm not sure if that's a problem though).
The lower (localized) one
The lower one is displayed with a following piece of code:
https://github.com/glossarist/iev-demo-site/blob/fc31fd57732c6ab16b61fe5bf2012f7e02342821/_source/_includes/localized-concept.html#L28-L42
It relies on a hash composed of
ref
,clause
andlink
entries similarly to the other Geolexica sites. It is displayed only ifauthoritative_source.ref
in given translation is different than ineng
translation (note that one of them may be null).Question
I'm quite surprised that concept "main" source works differently than translation source. @ronaldtse Please confirm that this is how it should be.
Concept source
The screenshot was taken from concept 112-01-32 defined as follows (some portions omitted):