The "global prefix" of an SDO is the document identifier prefix that is globally declared to be the SDOs, e.g.:
- ISO uses the "ISO", "ISO/IEC", "ISO/IEC/IEEE" etc prefixes
- IEC uses the "IEC", "ISO/IEC", "IEC/ISO", "IEC/IEEE", "IECEE", "IECEx" etc prefixes
- NIST uses the "NIST" and "NBS" prefixes
- IEEE uses the "IEEE", "AIEE", "IEEE/{copublisher}" prefixes
- BSI uses the "BS" "BS ISO" "BS EN ISO" "BS PAS" etc prefixes
These global prefixes need to be defined in the respective gems that provide bibliographic information for that SDO. e.g. the "NIST" and "NBS" prefixes should be encoded in the relaton-nist gem.
Notice that these prefixes can conflict, e.g. both ISO and IEC conflicts at the "ISO/IEC", "IEC/ISO", "ISO/IEC/IEEE" etc prefixes. At the global level, the Relaton library should know to query the relaton-iso gem and then the relaton-iec gem.
There is likely to be a method:
Relaton.prefix_flavor("NIST")
=> Relaton::Nist
Relaton.prefix_flavor("ISO/IEC")
=> [ Relaton::Iso, Relaton::Iec ]
The way to implement this is through the registration phase, where at gem startup it does:
Relaton.add_flavor(Relaton::Iso)
And the Relaton library is able to read the prefix information from Relaton::Iso.
From @opoudjis : metanorma/metanorma-iso#755 (comment)
The "global prefix" of an SDO is the document identifier prefix that is globally declared to be the SDOs, e.g.:
These global prefixes need to be defined in the respective gems that provide bibliographic information for that SDO. e.g. the "NIST" and "NBS" prefixes should be encoded in the relaton-nist gem.
Notice that these prefixes can conflict, e.g. both ISO and IEC conflicts at the "ISO/IEC", "IEC/ISO", "ISO/IEC/IEEE" etc prefixes. At the global level, the Relaton library should know to query the relaton-iso gem and then the relaton-iec gem.
There is likely to be a method:
The way to implement this is through the registration phase, where at gem startup it does:
And the Relaton library is able to read the prefix information from Relaton::Iso.
From @opoudjis : metanorma/metanorma-iso#755 (comment)