Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5091

nuxeo-dropdown-aggregation ignoring labels defined in Studio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      Steps to reproduce:

      • Create a Page Provider which includes and Date range aggregate in a date field, e.g. dc:modified
        Label From To
        label.ui.aggregate.last24h now-24H now
        label.ui.aggregate.lastWeek now-7d now-24H
        label.ui.aggregate.lastMonth now-1M now-7d
        label.ui.aggregate.lastYear now-1y now-1M
        label.ui.aggregate.priorToLastYear   now-1y
      • Use this page provider in a view
                  <nuxeo-data-table-column name="[[i18n('documentContentView.datatable.header.modified')]]"
                                           field="dc:modified" sort-by="[[_displaySort(document, 'dc:modified')]]"
                                           filter-by="dublincore_modified_agg"
                                           flex="50">
                    <template is="header">
                      <nuxeo-dropdown-aggregation
                        placeholder="[[i18n('documentContentView.datatable.header.modified')]]"
                        data="[[aggregations.dublincore_modified_agg]]"
                        value="{{column.filterValue}}" multiple>
                      </nuxeo-dropdown-aggregation>
                    </template>
                    <template>
                      <nuxeo-date datetime="[[item.properties.dc:modified]]" on-tap="_navigate"></nuxeo-date>
                    </template>
                  </nuxeo-data-table-column>
        
      • Add the translations for the labels used in your messages.json file:
          "label.ui.aggregate.last24h": "Last 24h",
          "label.ui.aggregate.lastMonth": "Last month",
          "label.ui.aggregate.lastWeek": "Last week",
          "label.ui.aggregate.lastYear": "Last year",
          
          "from_now-24H_to_now": "Last 24h",
          "from_now-7d_to_now-24H": "Last week",
          "from_now-1M_to_now-7d": "Last month",
          "from_now-1y_to_now-1M": "Last year",
          "from__to_now-1y": "More than 1 year ago"  
        
      • Depploy your changes
      • Click on the filter of the date column

      The labels defined for each range are ignored. The system is showing an autogenerated label

        Attachments

        1. Captura de pantalla 2018-12-20 a las 14.50.41.png
          1.17 MB
          Joaquin Garzon Pena
        2. Captura de pantalla 2018-12-20 a las 14.57.38.png
          357 kB
          Joaquin Garzon Pena
        3. Captura de pantalla 2018-12-20 a las 14.57.45.png
          366 kB
          Joaquin Garzon Pena
        4. Captura de pantalla 2018-12-20 a las 14.57.59.png
          715 kB
          Joaquin Garzon Pena
        5. Captura de pantalla 2018-12-20 a las 15.16.13.png
          521 kB
          Joaquin Garzon Pena
        6. image014.jpg
          15 kB
          Joaquin Garzon Pena
        7. image015.png
          8 kB
          Joaquin Garzon Pena

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: