Closed CAMOBAP closed 3 years ago
@andrew2net this is an urgent one. Can you please help? Thanks!
@CAMOBAP I'm trying to reproduce the error running make clean all
in mn-samples-bip dir and got another error:
mkdir -p documents
BUILT_TARGET="sources/JCTLM/jctlm-ec-07.adoc"; \
if [ "$BUILT_TARGET" = "" ] || [ "$BUILT_TARGET" = "null" ]; then \
BUILT_TARGET=sources/JCTLM/jctlm-ec-07.xml; \
echo "Running locally via bundle ..."; bundle exec metanorma -x xml "${BUILT_TARGET//xml/adoc}"; \
else \
if [ -f "$BUILT_TARGET" ] && [ "${BUILT_TARGET##*.}" == "xml" ]; then \
cp "$BUILT_TARGET" sources/JCTLM/jctlm-ec-07.xml; \
else \
echo "Running locally via bundle ..."; bundle exec metanorma -x xml $BUILT_TARGET; \
cp "${BUILT_TARGET//adoc/xml}" sources/JCTLM/jctlm-ec-07.xml; \
fi \
fi
Running locally via bundle ...
Metanorma XML Style Warning: (XML Line 000132): Hanging paragraph in clause
Metanorma XML Style Warning: (XML Line 000139): Hanging paragraph in clause
Metanorma XML Style Warning: (XML Line 000155): Hanging paragraph in clause
Metanorma XML Style Warning: (XML Line 000198): Hanging paragraph in clause
Syntax Valid!
cp: sources/JCTLM/jctlm-ec-07.xml and sources/JCTLM/jctlm-ec-07.xml are identical (not copied).
make: *** [sources/JCTLM/jctlm-ec-07.xml] Error 1
rm sources/JCTLM/jctlm-ec-07.xml
Do you have any suggestions why does it happen?
@CAMOBAP any way this error happens because the copyright element is made with from
date equal nil
. According to the bibliographic model the copyright's date, form
is mandatory:
copyright =
element copyright {
from, to?, owner+, copyright_scope?
}
I can't see from the log which source document case the error.
@andrew2net according to logs from CI it's https://github.com/metanorma/mn-samples-bipm/blob/master/sources/monographie/bipm-7/document.adoc
@CAMOBAP I see there is :copyright-year: 2007
in the monographie/bipm-7/document.adoc
, but the conversion into a bibmodel happens somewhere in metanorma.
I'm trying to reproduce this issue to understand where the :copyright-year:
becomes nil, but get another issue.
@CAMOBAP there isn't sources/monographie/bipm-7/document.adoc
in the metanorma.yml
file. Shouldn't it be there?
@CAMOBAP the issue is in the sources/JCTLM/jctlm_executive-15-03.adoc
. It has an empty :copyright-year:
.
https://github.com/metanorma/mn-samples-bipm/pull/30/checks?check_run_id=1982120757