Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2624

Provide unique CSS classes for each metadata type in JSPUI

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      5
    • Documentation Status:
      Complete or Committed

      Description

      Currently it is not possible to identify the different metadata fields in the detail view with CSS selectors. The current HTML looks like this:

      <td class="metadataFieldLabel">This is the label</td>
      <td class="metadataFieldValue">This is the value</td>

      Therefore I propose, that we add a metadata-type-dependent CSS class to each rendered field of the detail view.

      I created a simple pull request to insert a class according to the pattern:

      schema_element_qualifier

      The code ignores the wildcard qualifier for the Item.ANY constant, because asterisks are forbidden characters in CSS class names. As separator between schema, element and qualifier I propose an underscore but we can easily make this configurable. An example of the result after the integration of the pull request is:

      <td class="metadataFieldLabel dc_title_alternative">This is the label</td>
      <td class="metadataFieldValue dc_title_alternative">This is the value</td>

      Pull request: https://github.com/DSpace/DSpace/pull/967

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Eike Eike Kleiner
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: