Opened 11 years ago
Closed 11 years ago
#840 closed defect (invalid)
RSyncTextArea requires escaping entity within a GS2 format statement
Reported by: | ak19 | Owned by: | nobody |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Collection Building | Severity: | major |
Keywords: | Cc: |
Description
RSyncTextArea requires escaping comma with entity in the following GS2 format statement: The assoc file demo collection on nzdl at http://www.nzdl.org/gsdlmod?a=p&p=about&c=assocext-e
contains the following format statement:
<td valign="top">[link][icon]link</td> <td valign="top">[ex.equivDocLink][ex.equivDocIcon][ex./equivDocLink]</td> <td valign="top">[highlight] {Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} highlight{If}{[dc.Creator],: [sibling(All', '):dc.Creator]}</td>
The last line causes the displayed output to appear like:
greenstone1 '):dc.Creator]}
instead of
greenstone1 :pinky, lala
By converting the comma separator for siblings to its html entity equivalent of ,, things work as expected:
<td valign="top">[link][icon]link</td>
<td valign="top">[ex.equivDocLink][ex.equivDocIcon][ex./equivDocLink]</td>
<td valign="top">[highlight]
{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled} highlight{If}{[dc.Creator],:[sibling(All', '):dc.Creator]}</td>
Change History (5)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
It doesn't have to do with the change to using RSyncTextarea for the format statements, since by just modifying the collect.cfg file by hand (and therefore without GLI), the comma in the sibling statement produces the same erroneous output.
comment:4 by , 11 years ago
Perhaps this is a case of where the About page is not sufficiently formatted: the collect.cfg file that the nzdl collection links to, escapes the comma with a backslash:
highlight{If}{[dc.Creator],: <i>[sibling(All\'\, \'):dc.Creator]</i>}</td>
(This works in GLI and the surrounding single quotes are automatically escaped in the collect.cfg when I try the same thing in GLI.)
comment:5 by , 11 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
RSyncTextArea requires escaping comma with entity in the following GS2 format statement: The assoc file demo collection on nzdl at http://www.nzdl.org/gsdlmod?a=p&p=about&c=assocext-e
contains the following format statement:
The last line causes the displayed output to appear like:
greenstone1 '):dc.Creator]}
instead of
greenstone1 :pinky, lala
By converting the comma separator for siblings to its html entity equivalent of ,, things work as expected:
<td valign="top">[link][icon]link</td>
<td valign="top">[ex.equivDocLink][ex.equivDocIcon][ex./equivDocLink]</td>
<td valign="top">[highlight]
{Or}{[dc.Title],[exp.Title],[ex.Title],Untitled}
highlight{If}{[dc.Creator],:[sibling(All', '):dc.Creator]}</td>