Support for markup in citation date column in citation tree and list views

svn: r18537
This commit is contained in:
Tim G L Lyons 2011-11-29 22:41:42 +00:00
parent 28e83efd2a
commit df723409a1
2 changed files with 8 additions and 2 deletions

View File

@ -104,6 +104,8 @@ class CitationListView(ListView):
_('Source: Publication Information'), _('Source: Publication Information'),
_('Source: Last Changed'), _('Source: Last Changed'),
] ]
# columns that contain markup
MARKUP_COLS = [COL_DATE]
# default setting with visible columns, order of the col, and their size # default setting with visible columns, order of the col, and their size
CONFIGSETTINGS = ( CONFIGSETTINGS = (
('columns.visible', [COL_TITLE_PAGE, COL_ID, COL_DATE, ('columns.visible', [COL_TITLE_PAGE, COL_ID, COL_DATE,
@ -138,7 +140,8 @@ class CitationListView(ListView):
dbstate.db.get_citation_bookmarks(), dbstate.db.get_citation_bookmarks(),
Bookmarks.CitationBookmarks, nav_group, Bookmarks.CitationBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=CitationSidebarFilter) filter_class=CitationSidebarFilter,
markup = CitationListView.MARKUP_COLS)
self.func_list.update({ self.func_list.update({
'<CONTROL>J' : self.jump, '<CONTROL>J' : self.jump,

View File

@ -104,6 +104,8 @@ class CitationTreeView(ListView):
COL_SRC_ABBR, COL_SRC_ABBR,
COL_SRC_PINFO COL_SRC_PINFO
] ]
# columns that contain markup
MARKUP_COLS = [COL_DATE]
# default setting with visible columns, order of the col, and their size # default setting with visible columns, order of the col, and their size
CONFIGSETTINGS = ( CONFIGSETTINGS = (
('columns.visible', [COL_TITLE_PAGE, COL_ID, COL_SRC_AUTH, ('columns.visible', [COL_TITLE_PAGE, COL_ID, COL_SRC_AUTH,
@ -142,7 +144,8 @@ class CitationTreeView(ListView):
dbstate.db.get_citation_bookmarks(), dbstate.db.get_citation_bookmarks(),
Bookmarks.CitationBookmarks, nav_group, Bookmarks.CitationBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=SourceSidebarFilter) filter_class=SourceSidebarFilter,
markup = CitationTreeView.MARKUP_COLS)
self.func_list.update({ self.func_list.update({
'<CONTROL>J' : self.jump, '<CONTROL>J' : self.jump,