Commit 7fbe5a64 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish the user interfaces for harvesters.

Labels Controller and Category are replaced by Category and Code.
This provide a uniform use of Category/Code across the application.
parent 9c2e82d2
......@@ -430,7 +430,6 @@
'proceeding': 'acte de conférence',
'Proceedings': 'Actes de conférence',
'Process': 'Analyser',
'Process as': 'Analyser comme',
'Profile': 'Profile',
'project': 'projet',
'Project': 'Projet',
......
......@@ -20,12 +20,12 @@ T("Authorize automatic scan.")
db.define_table("harvesters",
Field("id_teams", "reference teams", label='Team', notnull=True),
Field("id_projects", "reference projects", label='Project', notnull=True),
Field("controller", "string", length=255, comment=tp_controller, label='Harvester', notnull=True),
Field("controller", "string", length=255, comment=tp_controller, label='Category', notnull=True),
Field("host", "string", length=255, comment=tp_host, default=STORES[0], label='Store', notnull=True),
Field("collections", "string", length=255, comment=tp_collections, notnull=True),
Field("ratio", "double", comment=tp_ratio, default=1.0, notnull=True),
Field("id_categories", "reference categories", comment=tp_category, label='Code', notnull=True),
Field("scan", "boolean", comment=tp_scan, default=False),
Field("id_categories", "reference categories", comment=tp_category, label='Category', notnull=True),
migrate="harvesters.table")
db.harvesters.collections.filter_in = dbui.CLEAN_SPACES
......
# -*- coding: utf-8 -*-
""" edit_insert_selector (virtual table)
""" edit_insert_selector (virtual table)
"""
#-------------------------------------------------------------------------------
......@@ -14,8 +14,8 @@ virtdb.define_table('edit_insert_selector',
Field('id_projects', 'reference projects', label='Project'),
Field('host', 'string', default=STORES[0], label='Store'),
Field('record_id', 'integer', comment=tp_record_id),
Field('controller', 'string', label='Harvester'),
Field('id_categories', 'reference categories', label='Category'))
Field('controller', 'string', label='Category'),
Field('id_categories', 'reference categories', label='Code'))
virtdb.edit_insert_selector.controller.requires = IS_IN_SET(CONTROLLERS)
......
# -*- coding: utf-8 -*-
""" free_harvester_selector (virtual table)
""" free_harvester_selector (virtual table)
"""
#-------------------------------------------------------------------------------
......@@ -15,8 +15,8 @@ virtdb.define_table('free_harvester_selector',
Field('host', 'string', default=STORES[1], label='Store'),
Field('collections', 'string', default="find ..."),
Field('ratio', 'double', default=1.0),
Field('controller', 'string', label='Harvester'),
Field('id_categories', 'reference categories', label='Category'),
Field('controller', 'string', label='Category'),
Field('id_categories', 'reference categories', label='Code'),
Field('mode', 'string', default=MODE_DRY_RUN))
virtdb.free_harvester_selector.host.requires = IS_IN_SET(STORES)
......
# -*- coding: utf-8 -*-
""" marc12_selector (virtual table)
""" marc12_selector (virtual table)
"""
#-------------------------------------------------------------------------------
......@@ -14,8 +14,8 @@ virtdb.define_table('marc12_selector',
Field('id_teams', 'reference teams', label='Team'),
Field('id_projects', 'reference projects', label='Project'),
Field('xml', 'text', comment=tp_xml, label='MARCXML'),
Field('controller', 'string', label='Process as'),
Field('id_categories', 'reference categories', label='Category'),
Field('controller', 'string', label='Category'),
Field('id_categories', 'reference categories', label='Code'),
Field('mode', 'string', default=MODE_DRY_RUN))
......
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