#597: BibConvert: do not interpret "EOL" keywords in source field value
-------------------------+-----------------
Reporter: jcaffaro | Owner:
Type: enhancement | Status: new
Priority: major | Milestone:
Component: BibConvert | Version:
Keywords: |
-------------------------+-----------------
When some source field contains string "EOL", BibConvert replaces
'''EOL''' with a new line (\n). For eg. for a source field:
{{{
$ cat MYFIELD
The School was jointly organised and sponsored by CERN, INFN, ACEOLE (a
Marie Curie Initial Training Network at CERN)
}}}
with the following basic template:
{{{
MYFIELD---<datafield tag="520" ind1="" ind2=""><subfield
code="a"><:MYFIELD::MYFIELD:></subfield></datafield>
}}}
would result in:
{{{
<datafield tag="520" ind1="" ind2=""><subfield code="a">The School was
jointly organised and sponsored by CERN, INFN, AC
E (a Marie Curie Initial Training Network at CERN)</subfield></datafield>
}}}
This is probably not wanted. It should be possible to disable this
behaviour, or/and it should be documented in the BibConvert admin guide.
(Other similar, but less intrusive substitutions are performed by
BibConvert:
{{{
def sub_keywd(out):
"bibconvert keywords literal substitution"
out = string.replace(out, "EOL", "\n")
out = string.replace(out, "_CR_", "\r")
out = string.replace(out, "_LF_", "\n")
out = string.replace(out, "\\", '\\')
out = string.replace(out, "\r", '\r')
out = string.replace(out, "BSLASH", '\\')
out = string.replace(out, "COMMA", ',')
out = string.replace(out, "LEFTB", '[')
out = string.replace(out, "RIGHTB", ']')
out = string.replace(out, "LEFTP", '(')
out = string.replace(out, "RIGHTP", ')')
return out
}}}
)
--
Ticket URL: <http://invenio-software.org/ticket/597>
Invenio <http://invenio-software.org>