Ticket #840 (closed defect: invalid)

Opened 5 years ago

Last modified 5 years ago

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 &#44;, 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'&#44; '):dc.Creator]}</td>

Change History

Changed 5 years ago by ak19

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 &#44;, 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'&#44; '):dc.Creator]}</td>

Changed 5 years ago by ak19

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.

Changed 5 years ago by ak19

Separators like colon and hyphen are not a problem, but the comma is.

Changed 5 years ago by ak19

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.)

Changed 5 years ago by ak19

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.