Commit f65801ca authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

The usual categories are now well defined.

parent a0a4adac
......@@ -59,12 +59,23 @@ DIRS = ['ASC', 'DESC']
AXES = ['', 'categories', 'projects', 'teams', 'time']
AXES_2 = ['categories', 'projects', 'publishers', 'teams', 'time']
ONE_HOUR = 3600000
CAT_USUAL = [T('article'),
T('book'),
T('patent'),
T('poster'),
T('proceeding'),
T('report'),
T('talk'),
T('thesis'),
undef]
CAT_USUAL.sort()
MODE_DRY_RUN = T(harvest_tools.DRY_RUN)
MODE_CHANGE_STATUS = T('change status')
MODE_LOAD_IN_DB = T('load in the database')
ONE_HOUR = 3600000
STORES = ['cds.cern.ch', 'inspirehep.net']
#-------------------------------------------------------------------------------
......
......@@ -10,5 +10,6 @@ db.define_table("categories",
migrate="categories.table")
db.categories._before_delete.append(INHIBIT_CASCADE_DELETE)
db.categories.usual.requires = dbui.IS_IN_USET(CAT_USUAL)
db.categories.code.filter_in = dbui.CLEAN_SPACES
db.categories.usual.filter_in = dbui.CLEAN_SPACES
\ No newline at end of file
......@@ -77,6 +77,7 @@ if db(db.categories).count() == 1:
db.categories.insert(id=13,
code='DO',
usual=T('book'),
definition='Directions d’ouvrages ou de revues')
db.categories.insert(id=14,
......
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