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

Editor / Conditional helpers are not picked up properly if more than 2 choices #988

Closed
fxprunayre opened this issue May 11, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@fxprunayre
Copy link
Member

eg.

<element name="gmd:useLimitation" id="68.0">
        <label>Use limitation</label>
        <description>Limitation affecting the fitness for use of the resource. Example, _not to be
            used for navigation_</description>

    <helper displayIf="ancestor::node()[
              name()='gmd:MD_Metadata' and
              contains(gmd:metadataStandardName/gco:CharacterString, 'EMODNET - HYDROGRAPHY')]"
            editorMode="radio">
      <option value="Public">Public</option>
      <option value="Confidential">Confidential</option>
    </helper>
    <helper displayIf="ancestor::node()[
              name()='gmd:MD_Metadata' and
              contains(gmd:metadataStandardName/gco:CharacterString, 'MedSea')]"
            editorMode="radio">
      <option value="No charge">No charge</option>
      <option value="Distribution cost charge">Distribution cost charge</option>
      <option value="Collection cost charge">Collection cost charge</option>
      <option value="Commercial cost charge">Commercial cost charge</option>
      <option value="Cost charge depends on intended use and category of users">Cost charge depends on intended use and category of users</option>
      <option value="Not documented">Not documented</option>
    </helper>
    <helper>
      <option value="No condition applies">No condition applies</option>
      <option value="Data under Licence ouverte / Open licence : http://www.etalab.gouv.fr/pages/licence-ouverte-open-licence-5899923.html">Data under Licence ouverte / Open licence : http://www.etalab.gouv.fr/pages/licence-ouverte-open-licence-5899923.html</option>
      <option value="Creative Commons license to apply : Attribution (BY) : http://creativecommons.org/licenses/?lang=en">Creative Commons license to apply : Attribution (BY) : http://creativecommons.org/licenses/?lang=en</option>
      <option value="Creative Commons license to apply : Attribution + No Derivs (BY-ND) : http://creativecommons.org/licenses/?lang=en">Creative Commons license to apply : Attribution + No Derivs (BY-ND) : http://creativecommons.org/licenses/?lang=en</option>
      <option value="Creative Commons license to apply : Attribution + Non Commercial + No Derivs (BY-NC-ND) : http://creativecommons.org/licenses/?lang=en">Creative Commons license to apply : Attribution + Non Commercial + No Derivs (BY-NC-ND) : http://creativecommons.org/licenses/?lang=en</option>
      <option value="Creative Commons license to apply : Attribution + Non Commercial (BY-NC) : http://creativecommons.org/licenses/?lang=en">Creative Commons license to apply : Attribution + Non Commercial (BY-NC) : http://creativecommons.org/licenses/?lang=en</option>
      <option value="Creative Commons license to apply : Attribution + Non Commercial + Share Alike (BY-NC-SA) : http://creativecommons.org/licenses/?lang=en">Creative Commons license to apply : Attribution + Non Commercial + Share Alike (BY-NC-SA) : http://creativecommons.org/licenses/?lang=en</option>
      <option value="Creative Commons license to apply : Attribution + Share Alike (BY-SA) : http://creativecommons.org/licenses/?lang=en">Creative Commons license to apply : Attribution + Share Alike (BY-SA) : http://creativecommons.org/licenses/?lang=en</option>
    </helper>

Both the default, and the matching ones are displayed. Should be only the one matching the current record or the default.

@fxprunayre fxprunayre added the bug label May 11, 2015
@fxprunayre fxprunayre self-assigned this May 11, 2015
@fxprunayre fxprunayre added this to the 3.0.1 milestone May 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant