Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the predefined copyright statement #1132

Closed
Intelligent2013 opened this issue Mar 14, 2024 · 4 comments
Closed

Change the predefined copyright statement #1132

Intelligent2013 opened this issue Mar 14, 2024 · 4 comments
Assignees
Labels

Comments

@Intelligent2013
Copy link
Contributor

In continue of #1104 (comment)
Source issue: metanorma/metanorma.org#728

I'm trying to override the predefined copyright statement via the document attribute :boilerplate-authority: (https://www.metanorma.org/develop/topics/metadata-and-boilerplate/#boilerplate).

I've tried to specify a few variants - xml or adoc:

  • boilerplate.xml
:boilerplate-authority: boilerplate.xml
<boilerplate>
	<copyright-statement>
		<title>COPYRIGHT</title>
		<clause>
			<p id="boilerplate-message">The custom copyright test.</p>
			<p id="boilerplate-place">Published in Switzerland</p>
			<p>Some additional text.</p>
		</clause>
	</copyright-statement>
</boilerplate>
  • boilerplate.adoc
:boilerplate-authority: boilerplate.adoc

boilerplate.adoc:

== copyright-statement

=== COPYRIGHT

[[boilerplate-message]]
The custom copyright test.

[[boilerplate-place]]
Published in Switzerland.

Some additional text.
  • without file name
:boilerplate-authority: 

and boilerplate.xml (by default).

But the resulted Presentation XML doesn't contain any new content.

What do I doing wrong?

@opoudjis
Copy link
Contributor

... You do look to be doing the right things, and there is a test in standoc to guarantee that. In fact I've just recently implemented functionality to overwrite only the statements supplied in boilerplate, and not the whole boilerplate.

So, I don't know, and I will investigate tonight.

@opoudjis
Copy link
Contributor

I can't replicate this behaviour:

= SMRL Innovation -- Modernizing the ISO 10303 authoring and publication processes
:docnumber: 1
:technical-committee-number: 184
:technical-committee: Industrial Automation Systems and Integration
:subcommittee-number: 4
:subcommittee: Industrial Data
:workgroup-number: 1
:workgroup-type: TF
:document-scheme: 1987
:no-pdf:
:boilerplate-authority: boilerplate.adoc

== Scope

[[figureA-1]]
.Split-it-right sample divider
[width=text-width]
image::spec/assets/rice_image1.png[Alt1]

[width=900]
image::spec/assets/rice_image1.png[Alt1]

and

boilerplate.adoc

== copyright-statement

=== COPYRIGHT

[[boilerplate-message]]
The custom copyright test.

[[boilerplate-place]]
Published in Switzerland.

Some additional text.

Gives a.xml

<boilerplate><copyright-statement>

<clause id="_copyright" inline-header="false" obligation="normative">
<title>COPYRIGHT</title>
<p id="boilerplate-message">The custom copyright test.</p>

<p id="boilerplate-place">Published in Switzerland.</p>

<p id="_5cbccd9a-849d-b063-9efe-2c7a56f72b82">Some additional text.</p>
</clause>
</copyright-statement>
</boilerplate>

@Intelligent2013
Copy link
Contributor Author

Today I can't repeat the issue.

@opoudjis
Copy link
Contributor

Hm. Strange. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants