1921 UK Census Form

Linux Mint Cinnamon .
GRAMPS: 5.1.2
Python: 3.8.10 (default, Nov 26 2021, 20:14:08) …
BSDDB: 6.2.7 (5, 3, 28)
sqlite: 3.31.1 (2.6.0)
LANG: en_GB.UTF-8
OS: Linux
Distribution: 5.4.0-96-generic
Tree database type is BSDDB.

I have created a new 1921 UK Census form and saved in Forms as ‘_custom.xml’
Created a related source with the ID attribute ‘UK1921’
I checked the form syntax which seems to correct, however the form does not appear in the list of available forms under the ‘new’ tab.
If I save the form as custom.xml (no underscore) no forms appear at all in gramps.
Any help appreciated. Thank You

I think the source attribute has to have the key Form. See form configurations

Thank you for your response. Yes, I have that set…Type =Form Value = UK1921. Will keep trying!

2 Likes

I tried adding a new form again to ‘form_gb.xml’ and after checking for any errors saved the file.
I added a new sources with the attribute ‘Form’ and ‘UK1921’ to corresponding persons.
Save GRAMPS and backup GRAMPS. Then reboot system, and the new forms are available to use.
So it seems the re-boot was needed to finish the job?
I will also try another new form using the ’ _custom.xml later.
Thank you for your assistance.

Try renaming _custom.xml to custom.xml

From the wiki
https://gramps-project.org/wiki/index.php/Addon:Forms_Gramplet#Configuration

Although you can add your definitions to the pre-defined entries in form_xx.xml , it is recommended you create a separate file called custom.xml or test.xml for this purpose.

I created a 1921 form in test.xml. I restarted Gramps - possibly I didn’t need to - and it worked without any issues straight away.

No need for a reboot (and from a technical standpoint there’s no reason, with this architecture of Gramps just reading an XML file, that a reboot would be required; indeed the only reason a Gramps restart would be required is if Gramps reads the file in a one-off operation as it starts up).

I think the restart is probably due to the way the cache is refreshed for add-ons. It is only when Gramps starts that it runs through the directories and looks for Python source that has changed and rebuilds that cache. Since the list of form collections is hard-coded and the form.py processes those collection lists the cache Form Gramplet file includes the lists & the forms.

Since Forms Gramplet is loaded in the sidebar, that cache has to be rebuilt when Gramps is not running.

I suppose you could try manually deleting the cache subdirectory in Forms Gramplet folder. But even if the cache then rebuilds, that rebuilt cache file might not supplant what is already loaded.

If the code was changed to reload the list of forms & validate them on the fly, starting the forms Gramplet could become a very slow & unreliable feature. This way, there will only be one vulnerable start per session instead of every time data on a form is shown.

1 Like

Yes, I am going to try that next. I did notice that the filename in the GRAMPS configuration file does omit the underscore from the filename.
Thanks

Thanks for the explanation. That would seem to make sense.

1 Like

Have you found a place to download re-mastered 1921 UK Census forms in PDF? I found a scan of the blank form with instructions on the webarchive.nationalarchives.gov.uk but that is 402kb. A re-mastered form would be a lot smaller & searchable.

I’m hoping that, in the future, the Forms GUI might be redesigned to let the (unlabeled) fields be dragged into a PDF (or scan) backdrop. That kind of layout control would make forms feel a lot less like data entry on a VT-100 terminal. [OK… Maybe a VT-220]

No I have not yet, will let you know if I do, thanks for the link though, some interesting items in the archive section.

1 Like

It is still ever so much superior to what it COULD have felt like… It’d feel more like the 50’s punch card stations if it were a blind import instead of a GUI:

Hello, could someone help me create a UK Census 1921 Form template for use with the Forms Gramplet, please?

I usually select the gramplet on the menu, click NEW and then select the appropriate form, but 1921 isn’t yet available. I’m surprised that nobody else has ever asked for this.

Martin

Thank you to whoever merged my request with previous ones. I did search first!

Martin

Wasn’t certain if the solution was clear enough. (I haven’t used forms much.)

But moving your posting to this thread should reel people into the conversation who have pertinent knowledge .

Hi @Martnal
There is a proposed UK 1921 census form in this pull request: 1921 England & Wales census forms, plus minor changes by mwlsyn · Pull Request #544 · gramps-project/addons-source · GitHub
There are two variants, for England and Wales. Hopefully that will save you reinventing the wheel!

Steve

1 Like

PR #544 has now been merged into the gramps52 branch.

@Martnal

Are you comfortable with copying the updated file in the GitHub repository to your personal computer? Or do you need more detailed instructions?

(If you need further details, please note your OS and Gramps version.)

Thanks @emyoulation This is useful, I am in the process of writing a 1921 UK census form after a break from my ancestry research.

1 Like

To clarify, there are England & Wales 1921 UK forms definitions that are complete and ready to download, install, and use. (see UK1921 and CY1921 in form_gb.xml found in the GitHub repository.)

So, by “in the process of writing a 1921 UK census form”, hopefully you mean that you’re “in the process of transcribing 1921 UK census form data”.