PLegoux
September 25, 2021, 4:08pm
1
(Gramps 5.1.3 @win10 )
Where I can change the minimum confidence level used by default for filtering citations?
I would prefer to have the very low level by default in the place of the normal level.
(I think that question had already asked but I can’t find it nor the answer)
Thanks
DaveSch
September 25, 2021, 4:49pm
2
In program file
\gramps\gui\filters\sidebar\_citationsidebarfilter.py
at line 72
self.filter_conf.set_active(Citation.CONF_NORMAL)
The options are:
Citation.CONF_VERY_HIGH
Citation.CONF_HIGH
Citation.CONF_NORMAL
Citation.CONF_LOW
Citation.CONF_VERY_LOW
2 Likes
It could be useful to have a preference option for that.
This option could be used when we create a citation.
If you think it is important, make a feature request.
2 Likes
PLegoux
September 25, 2021, 6:30pm
4
I don’t ever do that. Is it like opening a bug in Mantis?
Yes. There are 2 ‘projects’ in the MantisBT tool: ‘Gramps’ for bug reports; and ‘Feature Requests’. (Or 3, if you choose ‘All Projects’.)
If you are set to ‘All Projects’ when you choose the ‘Report Issue’, then MantisBT will ask you to choose a project before showing the data entry form.
feature request was filed Jun 2020 but was not targeted for 5.2 as requested
0011797 feedback • Feature Requests • [Citation Confidence Levels]Change “Min. Conf.” to be set to “Very Low” by default, so that all citations are shown by default
There are 2 lines to be modified
Line 81
self.filter_src_note = BasicEntry()
self.filter_id = Gtk.Entry()
self.filter_page = Gtk.Entry()
self.filter_date = DateEntry(uistate, [])
self.filter_conf = Gtk.ComboBox()
model = Gtk.ListStore(str)
for conf_value in sorted(conf_strings.keys()):
model.append((_(conf_strings[conf_value]),))
self.filter_conf.set_model(model)
self.filter_conf.set_active(Citation.CONF_NORMAL)
self.filter_note = Gtk.Entry()
self.filter_regex = Gtk.CheckButton(label=_("Use regular expressions"))
self.sensitive_regex = Gtk.CheckButton(label=_("Case sensitive"))
self.tag = Gtk.ComboBox()
self.generic = Gtk.ComboBox()
SidebarFilter.__init__(self, dbstate, uistate, "Citation")
self.filter_conf.set_active(Citation.CONF_VERY_LOW)
Line 145
def clear(self, obj):
self.filter_src_id.set_text("")
self.filter_src_title.set_text("")
self.filter_src_author.set_text("")
self.filter_src_abbr.set_text("")
self.filter_src_pub.set_text("")
self.filter_src_note.set_text("")
self.filter_id.set_text("")
self.filter_page.set_text("")
self.filter_date.set_text("")
self.filter_conf.set_active(Citation.CONF_NORMAL)
self.filter_note.set_text("")
self.tag.set_active(0)
self.generic.set_active(0)
def get_filter(self):
src_id = str(self.filter_src_id.get_text()).strip()
src_title = str(self.filter_src_title.get_text()).strip()
src_author = str(self.filter_src_author.get_text()).strip()
src_abbr = str(self.filter_src_abbr.get_text()).strip()
src_pub = str(self.filter_src_pub.get_text()).strip()
self.filter_conf.set_active(Citation.CONF_VERY_LOW)
added “Change Citation view Filter gramplet defaults to find all PR#1601 ” (included 148 commits instead of just the 1)
Change Citation view Filter gramplet defaults to find all · Commit for #1601