Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F67829311
bibedit_config.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jun 24, 14:23
Size
5 KB
Mime Type
text/x-python
Expires
Wed, Jun 26, 14:23 (2 d)
Engine
blob
Format
Raw Data
Handle
18477900
Attached To
R3600 invenio-infoscience
bibedit_config.py
View Options
## This file is part of CDS Invenio.
## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 CERN.
##
## CDS Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## CDS Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with CDS Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
"""BibEdit Configuration."""
__revision__
=
"$Id$"
from
invenio.config
import
CFG_ETCDIR
import
os
## CFG_BIBEDIT_FILENAME - default filename for BibEdit files.
CFG_BIBEDIT_FILENAME
=
"bibedit_record"
## The CFG_BIBEDIT_JS_* constants are passed on and used by the BibEdit
## Javascript engine.
## CFG_BIBEDIT_JS_HASH_CHECK_INTERVAL - interval (in ms) between checking if
## hash has changed.
CFG_BIBEDIT_JS_HASH_CHECK_INTERVAL
=
250
## CFG_BIBEDIT_JS_CHECK_SCROLL_INTERVAL - interval (in ms) between menu
## repositioning.
CFG_BIBEDIT_JS_CHECK_SCROLL_INTERVAL
=
250
## CFG_BIBEDIT_JS_STATUS_INFO_TIME - display status info messages for how long
## (in ms).
CFG_BIBEDIT_JS_STATUS_INFO_TIME
=
1000
## CFG_BIBEDIT_JS_STATUS_ERROR_TIME - display status error messages for how long
## (in ms).
CFG_BIBEDIT_JS_STATUS_ERROR_TIME
=
2000
## CFG_BIBEDIT_JS_CLONED_RECORD_COLOR - Color of cloned record ID highlighting.
CFG_BIBEDIT_JS_CLONED_RECORD_COLOR
=
'yellow'
## CFG_BIBEDIT_JS_CLONED_RECORD_COLOR_FADE_DURATION - Duration (in ms) for the
## fading of cloned record ID highlighting.
CFG_BIBEDIT_JS_CLONED_RECORD_COLOR_FADE_DURATION
=
5000
## CFG_BIBEDIT_JS_NEW_ADD_FIELD_FORM_COLOR - Color of new field forms'
## highlighting.
CFG_BIBEDIT_JS_NEW_ADD_FIELD_FORM_COLOR
=
'lightblue'
## CFG_BIBEDIT_JS_NEW_ADD_FIELD_FORM_COLOR_FADE_DURATION - Duration (in ms) for
## the fading of new field forms' highlighting.
CFG_BIBEDIT_JS_NEW_ADD_FIELD_FORM_COLOR_FADE_DURATION
=
2000
## CFG_BIBEDIT_JS_NEW_FIELDS_COLOR - Color of new fields' highlighting
CFG_BIBEDIT_JS_NEW_FIELDS_COLOR
=
'lightgreen'
## CFG_BIBEDIT_JS_NEW_FIELDS_COLOR_FADE_DURATION - Duration (in ms) for the
## fading of new fields' highlighting.
CFG_BIBEDIT_JS_NEW_FIELDS_COLOR_FADE_DURATION
=
2000
## CFG_BIBEDIT_JS_NEW_CONTENT_HIGHLIGHT_DELAY - Duration (in ms) before
## highlighting newly modified content.
## WARNING: If set to low, the Jeditable plugin won't have time to update the
## cell with the new content (recommended: >50).
CFG_BIBEDIT_JS_NEW_CONTENT_HIGHLIGHT_DELAY
=
50
## CFG_BIBEDIT_JS_NEW_FIELDS_COLOR - Color of new fields' highlighting
CFG_BIBEDIT_JS_NEW_CONTENT_COLOR
=
'lightgreen'
## CFG_BIBEDIT_JS_NEW_FIELDS_COLOR_FADE_DURATION - Duration (in ms) for the
## fading of new fields' highlighting.
CFG_BIBEDIT_JS_NEW_CONTENT_COLOR_FADE_DURATION
=
2000
## CFG_BIBEDIT_JS_TICKET_REFRESH_DELAY - Duration (in ms) before refreshing
## a record's tickets after the user clicks on the link to create a new one.
## WARNING: If set to low, the request for RT to generate the ticket won't have
## time to finish (recommended: >2000).
CFG_BIBEDIT_JS_TICKET_REFRESH_DELAY
=
5000
## CFG_BIBEDIT_AJAX_RESULT_CODES - dictionary of result codes and messages used
## by the Ajax engine.
CFG_BIBEDIT_AJAX_RESULT_CODES
=
{
0
:
''
,
1
:
'Search completed'
,
2
:
'Tag format changed'
,
3
:
'Record loaded'
,
4
:
'Record submitted'
,
5
:
'Cancelled'
,
6
:
'Record created (new)'
,
7
:
'Record created (from template)'
,
8
:
'Record created (from existing)'
,
9
:
'Record cloned'
,
10
:
'Record deleted'
,
11
:
'Cache deleted'
,
12
:
'Record ready for merge'
,
20
:
'Added controlfield'
,
21
:
'Added field'
,
22
:
'Added subfield'
,
23
:
'Added subfields'
,
24
:
'Content modified'
,
25
:
'Subfield moved'
,
26
:
'Field deleted'
,
27
:
'Fields deleted'
,
28
:
'Subfield deleted'
,
29
:
'Subfields deleted'
,
30
:
'Selection deleted'
,
31
:
'Tickets retrieved'
,
100
:
'Error: Not logged in'
,
101
:
'Error: Permission denied'
,
102
:
'Error: Non-existent record'
,
103
:
'Error: Deleted record'
,
104
:
'Error: Record locked by user'
,
105
:
'Error: Record locked by queue'
,
106
:
'Error: Cache file missing'
,
107
:
'Error: Cache file changed'
,
108
:
'Error: Template file missing'
,
109
:
'Error: Invalid template file'
,
110
:
'Error: Invalid content in record'
}
## CFG_BIBEDIT_MAX_SEARCH_RESULTS
CFG_BIBEDIT_MAX_SEARCH_RESULTS
=
99
## CFG_BIBEDIT_TAG_FORMAT - default format to use when displaying MARC tags.
CFG_BIBEDIT_TAG_FORMAT
=
'MARC'
## CFG_BIBEDIT_TO_MERGE_SUFFIX - default filename suffix for XML file to be
## merged. Filename will then be constructed like this:
## <CFG_BIBEDIT_FILENAME>_<RECID>_<UID>_<CFG_BIBEDIT_TO_MERGE_SUFFIX>.xml
CFG_BIBEDIT_TO_MERGE_SUFFIX
=
'merge'
# CFG_BIBEDIT_RECORD_TEMPLATES_PATH - path to record template directory
CFG_BIBEDIT_RECORD_TEMPLATES_PATH
=
"
%s%s
bibedit
%s
record_templates"
%
(
CFG_ETCDIR
,
os
.
sep
,
os
.
sep
)
Event Timeline
Log In to Comment