@pubid/pubid 0.1.74 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifact/corpus.json.gz +0 -0
- package/dist/flavors/nist/generated/substrate.d.ts +3 -3
- package/dist/flavors/nist/generated/substrate.js +4 -4
- package/dist/flavors/nist/implementation.js +14 -2
- package/dist/flavors/nist/model.js +10 -1
- package/dist/parg/artifacts/nist.d.ts +1 -1
- package/dist/parg/artifacts/nist.js +1 -1
- package/package.json +1 -1
- package/vendor/parg/nist.json +1 -1
|
@@ -290,6 +290,11 @@ export class NistSupplement {
|
|
|
290
290
|
return "";
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
+
// Series whose MR face prints dotted while the value keeps its space
|
|
294
|
+
// (the gem's Identifiers::Base::MR_SERIES_FACES).
|
|
295
|
+
const MR_SERIES_FACES = {
|
|
296
|
+
"NWIRP GCR": "NWIRP.GCR",
|
|
297
|
+
};
|
|
293
298
|
const LETTER_PRESERVING = {
|
|
294
299
|
preserveLetterSuffix: true,
|
|
295
300
|
modernEditionDate: false,
|
|
@@ -576,8 +581,12 @@ export class NistIdentifier extends BaseIdentifier {
|
|
|
576
581
|
renderMr() {
|
|
577
582
|
let result = (this.publisher ?? "NIST").toString();
|
|
578
583
|
const effectiveSeries = this.effectiveSeries();
|
|
584
|
+
// The NWIRP GCR series keeps its space in the value but prints
|
|
585
|
+
// dotted in the MR face (the gem's MR_SERIES_FACES; to_mr_style
|
|
586
|
+
// deliberately does NOT read the data/nist/series.yaml mr table —
|
|
587
|
+
// wiring that in would move many faces, MONO → MN among them).
|
|
579
588
|
if (effectiveSeries !== undefined)
|
|
580
|
-
result += `.${effectiveSeries}`;
|
|
589
|
+
result += `.${MR_SERIES_FACES[effectiveSeries] ?? effectiveSeries}`;
|
|
581
590
|
if (this.number !== undefined)
|
|
582
591
|
result += `.${this.number}`;
|
|
583
592
|
if (this.parts !== undefined && this.parts.length > 0) {
|