Commit 49feb50a authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the synonym in the grid filter for collaborations, countries and publishers.

parent 87812cfd
...@@ -24,6 +24,7 @@ fieldsModifier.configure_field('synonyms', minimumRows=5) ...@@ -24,6 +24,7 @@ fieldsModifier.configure_field('synonyms', minimumRows=5)
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
gridModifier = dbui.GridModifier('collaborations') gridModifier = dbui.GridModifier('collaborations')
gridModifier.append_filter(('collaboration', 'contains', T('contains')), xtype='textfield') gridModifier.append_filter(('collaboration', 'contains', T('contains')), xtype='textfield')
gridModifier.append_filter(('synonyms', 'contains', T('contains')), xtype='textfield')
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300) gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter')) gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
......
...@@ -25,6 +25,7 @@ gridModifier = dbui.GridModifier('countries') ...@@ -25,6 +25,7 @@ gridModifier = dbui.GridModifier('countries')
gridModifier.configure_column('country', width=50) gridModifier.configure_column('country', width=50)
gridModifier.append_filter(('country', 'contains', T('contains'))) gridModifier.append_filter(('country', 'contains', T('contains')))
gridModifier.append_filter(('synonyms', 'contains', T('contains')), xtype='textfield')
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300) gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter')) gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
......
...@@ -24,6 +24,7 @@ fieldsModifier.configure_field('synonyms', minimumRows=5) ...@@ -24,6 +24,7 @@ fieldsModifier.configure_field('synonyms', minimumRows=5)
gridModifier = dbui.GridModifier('publishers') gridModifier = dbui.GridModifier('publishers')
gridModifier.append_filter(('publisher', 'contains', T('contains'))) gridModifier.append_filter(('publisher', 'contains', T('contains')))
gridModifier.append_filter(('abbreviation', 'contains', T('contains'))) gridModifier.append_filter(('abbreviation', 'contains', T('contains')))
gridModifier.append_filter(('synonyms', 'contains', T('contains')), xtype='textfield')
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300) gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter')) gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment