metanorma / metanorma-iso

Metanorma processor for ISO standards
BSD 2-Clause "Simplified" License
14 stars 5 forks source link

Copyright text for old documents #1099

Closed Intelligent2013 closed 9 months ago

Intelligent2013 commented 9 months ago

Source issue: https://github.com/metanorma/metanorma-iso/issues/1089

@opoudjis I've tried to add old copyrights in the boilerplate.adoc, but I don't know how to retrieve the value from :document-scheme: to put values conditionally.

COPYRIGHT RESERVED

The copyright of ISO Recommendations and 1SO Standards
belongs to ISO Member Bodies. Reproduction of these
documents, in any country, may be authorized therefore only
by the national standards organization of that country, being
a member of ISO.

For each individual country the only valid standard is the national standard of that country.

Printed in Switzerland

Also issued in French and Russian. Copies to be obtained through the national standards organizations.
REPRODUCTION INTERDITE

Le droit de reproduction des Recommandations ISO et des Normes
ISO est la propriété des Comitks Membres de ISO. En consé-
quence, dans chaque pays, la reproduction de ces documents ne
peut être autorisée que par l’organisation nationale de normalisation
sation de ce pays, membre de I’ISO.

Seules les normes nationales sont valables dans leurs pays respectifs.

Imprimé en Suisse

Ce document est également édité en anglais et en russe. Il peut être obtenu auprès des organisations
nationales de normalisation.
opoudjis commented 9 months ago

I need to extract it into the Metadata object, so it can be accessed. It will be {{ document_scheme }}.

opoudjis commented 9 months ago

It turns out that the metadata is already being extracted as an array to {{presentation_metadata_document-scheme}}, but {{document_scheme}} is more polite.

So {%if document_scheme = "1951" %}, or whatever you need. I'd insert it myself, but I don't know what document schemes you want it for.

Intelligent2013 commented 9 months ago

@opoudjis I've added the copyright text for 1951 in English and French in https://github.com/metanorma/metanorma-iso/pull/1102.