4811 Commits

Author SHA1 Message Date
SNoiraud
0a981f0ca6 Check that view exists before calling post_create method
Avoids 'NoneType' object has no attribute 'post_create' error.

Fixes #12638
2023-05-14 22:47:55 +01:00
Jingxuan He
9e81014fc6 Fix a wrong operator bug in the web calendar report 2023-05-14 22:27:59 +01:00
Himanshu Gohel
2da93aad1f Revert "Enclose tree report image path and file name in braces"
Fixes #12437 by reverting commit 75921ceaf40f3ced597d99c43794b98f81e49957 due to
reports of regression where processing of the generated TeX file fails due to
bad path specificiation for image files.

Change was introduced in bug fix for #10495.

Bugs #12437 and #12697 reported the regression and confirmed that reverting the
change fixes the regression.
2023-05-14 22:13:38 +01:00
SNoiraud
97434a0136 Geography View: Fix number of arguments in add_bookmark method
add_bookmark() takes 2 positional arguments but 3 were given

Fixes #12718
2023-05-14 21:54:33 +01:00
GaryGriffin
181e2d8540 Use date-specific place in report substitution variables
Fix place title in graphical reports which have user-defined display formats
to use date-specific alternate name.

This impacts Ancestor Tree, Descendant Tree, and Family Descendant Tree.

Fixes #12763.
2023-05-14 21:38:49 +01:00
John Ralls
36d03137dd Try to import berkeleydb if bsddb3 isn't found.
berkelydb is usable for python >= 3.6 and required for
python >= 3.10. See https://www.jcea.es/programacion/pybsddb.htm.
2023-05-14 21:11:55 +01:00
Vincent Smeets
f6ac1999dd HtmlDoc: Create a unique filename for cropped images 2023-05-14 21:00:28 +01:00
D.A.Lordemann
a99b48711f Fix corrupted NOTE tag in Gedcom export
Remove Python2 code obsoleted by Python3, which was corrupting GEDCOM export of Gramps Notes text that includes multi-byte utf-8 characters.

Fixes #12709.
2023-05-14 19:03:52 +01:00
SNoiraud
d5d86e9139 Fix IndexError that sometimes occurs when changing view
This occurs when restarting Gramps.

Fixes #12636, #12304, #12429, #12623, #12695.
2023-05-14 18:49:17 +01:00
SNoiraud
35f20a8893 Narrative web: Solves some problems
Force place name to be "Full" names.
Force the country field to be the last field of the place name
Force the State/province to be the penultimate field of the place name

We use place names that stop in the country, but iff we have place names
such as: city, province, country, continent, planet with the continent and
planet as the custom place type, the State/Province field will be
the name of the place continent... (should never happen, but...)

Fixes #12821
2023-05-14 18:15:30 +01:00
SNoiraud
09fd85ef09 Make "gramps -v" consistent with Prerequisites Checker
This patch is related to Bug report #012770.
When a problem occurs, we ask to the user the result of "gramps -v"
and not the result of the PrerequisitesCheckerGramplet
2023-05-12 22:49:07 +01:00
Christopher Horn
0eb562e67b Fix incorrect title of event schema attribute_list 2023-05-12 22:32:08 +01:00
SNoiraud
4ebba02b6b Fix crash when invalid note link
Fixes #012854
2023-05-12 22:11:29 +01:00
SNoiraud
e535fcefa5 Tags with color names don't work in pedigree views
Color tags work correctly in all views except in pedigree views.
These views modify colors:
...
 context.set_source_rgba(*(self.bordercolor[:3] + (0.4,)))
... and
 context.set_source_rgb(*self.bgcolor[:3])

As it works everywhere except in these views, I think it is a bug
even if we cannot enter color names in tags

Fixes #012866
2023-05-12 21:57:24 +01:00
grocanar
2c70982fab Add place name to place in geneweb import
Fixes #12710
2023-05-12 21:24:59 +01:00
Juan Saavedra
3a7b17af01 Give consistency to short months in Spanish 2023-05-12 20:52:07 +01:00
Matthias Urlichs
5e1d36b0ad Implement the GEDCOM tag "_RUFNAME"
RUFNAME is the German word for "call name", i.e. the part of the given
name commonly used to address somebody. Some official documents mark it
as such.

The GEDCOM standards 5.5.1 and 5.5.5 mention this tag.
2023-05-12 20:36:14 +01:00
SNoiraud
0170e2b1e6 Crash when invalid event date 2023-04-05 18:41:27 +02:00
SNoiraud
54799df049 ListModel: Only the first level is managed
When we use checkboxes in columns.
The path was converted to int. Why ?
But when we have multiple level, the path format is "x:y" for two levels,
"x:y:z" for three levels, etc
2023-04-04 19:38:10 +02:00
David Straub
47f392ef70 Replace deprecated imp by importlib 2023-03-07 22:00:04 +00:00
DaveSch-gramps
a3122df673
Add Preferences and Plugin Manager toolbar buttons (#1139)
Add configurable Plugin Manager and Preferences buttons to the toolbar.

Make the Tools, Reports, Clipboard buttons on the toolbar configurable.
2023-03-07 21:29:57 +00:00
SNoiraud
1d977840e1 Narrative web: add noindex for robots 2023-02-09 09:10:29 +01:00
Serge Noiraud
e4264f837f
Narrative web: lightbox feature (#1410)
Deature request: #012801
Discourse: https://gramps.discourse.group/t/narrated-website-browsing-media-in-person-page/3195
2023-02-09 09:04:48 +01:00
Serge Noiraud
18da49cd75
The latest version of openlayers doesn't work (#1387)
* The latest version of openlayers doesn't work

Every years, openlayers change its "latest" version.
If this no longer works in the browser we need to change "latest"
by another version.
v6.15.1 is the latest working version and is available several years.
If this no longer the case for this version, we need to change this version
in the gramps.ini file.

The section will be:
...
[external_modules]
;;openlayers_version=‘v6.15.1’
…

You'll need to remove the two commas before openlayers_version and
change v6.15.1 to the working version.
Available versions are provided in the OLDER SECTION of https://openlayers.org/

Fixes #012680

* Change the location of js and css files

* Menu simplification and usage clarification

Show in which file the openlayers version should be modified.
Show the config name to modify.
2022-10-21 18:16:58 +02:00
Nick Hall
a22b43080a Fix Russian calendar unit test
The translation of "Julian" is hardcoded and the test and will
fail if the translation is updated.
2022-09-10 17:06:55 +01:00
Dave Scheipers
278c168f9b Add Stillbirth as pre-defined event type
Add Stillbirth as a fallback for both Birth and Death events.
2022-04-02 18:59:13 +01:00
Timo
222bfff175 Show index of person in ancestor tree report. 2022-04-02 18:37:29 +01:00
Nick Hall
b4536666b0 Add support for thumbnailer plugins 2022-03-26 19:10:24 +00:00
Nick Hall
a45d86f0ad Allow gramplets to have an orientation dependent layout
Use this for the gallery gramplets.

Implements #11527.
2022-03-26 18:58:02 +00:00
SNoiraud
3b2d845992 Add possibility to select the dialect of CSV export
You can also select a delimiter from a list
2022-03-20 22:55:14 +00:00
Nick Hall
0d131a0c5c Show note type in notes plugin
Also move page number next to forward/back buttons.

Implements #12402.
2022-03-19 21:49:38 +00:00
Nick Hall
e4953a32e9 Enable markup in ODF backend 2022-03-19 18:08:49 +00:00
Nick Hall
4dde3cad24 Merge branch 'gramps51' 2022-03-19 18:06:58 +00:00
Nick Hall
2ca3839904 Fix spouse's name and underlined call names in records
Fixes #12391
2022-03-19 17:51:06 +00:00
Nick Hall
2a9525c942 Fix unit tests requiring English locale 2022-03-18 23:05:41 +00:00
SNoiraud
d627d5648a Fix invalid Persian calendar dates
Fixes #12576
2022-03-18 22:32:18 +00:00
IOhannes m zmölnig
1e95d8a6b5 Skip test3b_delete_tree_constraint if $HOME is a subdirectory of /tmp
Closes: https://gramps-project.org/bugs/view.php?id=12577
2022-03-18 22:19:43 +00:00
SNoiraud
2cd14580ab Narweb: code simplification 2022-03-17 23:21:38 +00:00
SNoiraud
c2dd597a7f Narweb: Add a comment if invalid lat/long
Fixes #12565
2022-03-17 23:21:38 +00:00
SNoiraud
3df33ec3e1 Calendar gramplet: add day names
The first day is define according on the LANG

Fixes #12515
2022-03-17 22:23:57 +00:00
Dave Scheipers
e0d36df278 Add Back/Forward labels to citation tree view
Fixes #12510
2022-03-17 21:41:31 +00:00
SNoiraud
3834a73b94 Remove the "database is closed" warning
Fixes #12492
2022-03-17 17:30:54 +00:00
kulath
ea6b1612f9 Narweb: some fixes to alphabet_navigation
Ensure correct index letters according to normal indexing conventions by
using ICU AlphabeticIndex.

- Add ICU AlphabeticIndex
- Modify modules that use alphabet_navigation to use AlphabeticIndex

If Alphabetic index is not available, fix some other issues.

- Implement a local AlphabeticIndex for when ICU AlphabeticIndex is not
available, using existing code algorithms
- Fix Serbian contraction DŽ not being recognised
- Fix contractions not getting a separate entry in the
alphabet_navigation
- Ensure that import from either icu or PyICU works
- Fix primary_difference to set collation strength to PRIMARY
- Fix contractions lookup to use locale for current report
- Fix get_first_letter to pass current report locale

Fixes #12350
2022-03-17 16:51:25 +00:00
DaveSch-gramps
f850959726 Move privacy column in editor citation tabs 2022-03-16 23:15:24 +00:00
Matthias Kemmer
4f8dab224c Use replacement text for blank surname heading in person tree
This will use the replacement text defined in the preferences
instead of a blank heading in the person tree view and person
selector.
2022-03-15 21:57:25 +00:00
Stanislav Bolshakov
b10557d1bd Add context to place name strings
Needed for Russian translation.
2022-03-14 22:07:30 +00:00
Nick Hall
5e3ef36ebe Remove one last old translation context separator 2022-03-14 21:42:32 +00:00
Stanislav Bolshakov
355f98db5f Update confirmation message in the export assistant
1. Split big message into two small messages
2. Reorder buttons names to real button order
2022-03-14 21:15:40 +00:00
Stanislav Bolshakov
3b92c53822 Improve description of regular expressions in filter editor 2022-03-14 19:38:39 +00:00
Nick Hall
e4c17f52b4 Remove old translation context separators
They are no longer required and translators sometimes include
them in translated strings by mistake.

This change also makes it possible to use the vertical bar
character in translatable strings.
2022-03-14 18:08:28 +00:00