gramps-project / gramps-web-api

A RESTful web API for Gramps - backend of Gramps Web
https://www.grampsweb.org
GNU Affero General Public License v3.0
82 stars 45 forks source link

Gramps ID format #551

Open chtiland opened 2 months ago

chtiland commented 2 months ago

Hello !

On my desktop Gramps I set id formats with %08d. But when I deployed Gramps Web and import gramps datas, ID is a %04d format.

Quite annoying because on the other hand I also use Dokuwiki for my genealogy, and links are "built" with %08d format as I use in desktop application.

When I add a new object in Gramps Web, then ID is %08d format. Something wrong with

Gramps Desktop 5.2.2 (from Ubuntu 24.04 LTS repos)

Gramps Web :

DavidMStraub commented 2 months ago

Hi,

this is a Gramps Web API question.

When you control your own server, you can set the Gramps config option on the command line, as Gramps Web API respects Gramps config settings.

emyoulation commented 4 weeks ago

Neither Gramps for desktops nor Gramps Web for servers respect the leading zeros format contained in the XML data imported. It seems wrong to do a transform by default. That should be an explicit override.

DavidMStraub commented 3 weeks ago

True but I don't even think we need to track that here specifically, because this is all handled by Gramps core.