Using image filename (gallery) as default Reference title

For official document I scan those and add them as filenames like “--”, e.g. “Birth-Certificate-John-Smith.png”.

Now when I add this as a reference. I always need to repeat “Birth certificate John Smith” as title (“band/film/page”) for the reference.

Any way or setting to make the dialog use the image filename as the default title? So I do not have to type it in again.

GRAMPS: 5.1.5
Ubuntu 22.04
Python: 3.10.6 (main, Nov 14 2022, 16:10:14) [GC…
BSDDB: 6.2.9 (5, 3, 28)
sqlite: 3.37.2 (2.6.0)
LANG: de_DE.UTF-8
BS: Linux
Verteilung: 5.15.0-60-generic

If you go to the folder with the image file.
Click and hold the mouse on the Image File
Drag it to the Gallery whitespace that you wish it to appear in and drop it
Voila

If you use the drag-n-drop method as described by @GBaynes or from the gallery tab where the image will be attached to a record, using the [ + ] Add icon will launch the Gramps’ file selector window, The file selected will automatically add the file’s name to the media record’s Title field.

Do not manually type the file’s name into the media record’s Path field.

Hi @GBaynes and @DaveSch , sorry, but that drag’n’dropping is not adding the Volume/Page title. See screencast: Peek 2023-03-02 08-13.mp4 - Google Drive

I always have to type it in again. This is rather cumbersome if you have several scanned documents.

Or what’s your workflow here? I do not really get your point to be honest. I do not add documents (birth certificats etc) as standalone media but directly to the gallery tab of a citation. I only add media as standalone for photos.

Your problem is entering citations, not images.
There really is no way round entering the page data for a citation. Unless you copy and paste from another citation. After all each citation is different (by defiinition).
George

PS If you are entering mutiple images with the same citation, you should just add them to the Gallery of the one citation, not greate a separate citation for each.

What I put into the v/p of the Citation always varies based upon what it is, where I got it, etc. But if the v/p will be some or all of the Title of the supporting Gallery entry then I copy and paste it into the v/p. Drag-n-Drop will also work from the open Media record into the Citation.

Thanks for the answers so far!

I seem to have a very different workflow for adding a citation for documents like birth certificates or a marriage certificate.

For example: say I have a marriage certificate. I would scan it and save it as “Marriage-Certificate-John-Smith-and-Jane-Doe.png”. The Source would be the book where I found it like “Family Book of Smith”. Because the Certificate is usually just a page within the book/slides within this family book.

Then I add a citiation for this. Here I add “Family Book of Smith” as source of the citation. Within the below Gallery tab I add the image (Drag’n’Drop). Then I have to retype Marriage Certificate John Smith and Jane Doe (without typos) into the Volume/Page title.

This citation I can then reference in person records, a standalone Media record cannot be referenced as Citation.

So, if I understand correctly, you do it the same, but you first add the scanned image file as a Media record? I do not see why one should do this first - it would be yet another step. But I am a novice user, not sure I should change my workflow…

I am doing basically the same for my workflow.

I have a scan of a Marriage Certificate which I name: Groom Surname, Given & Bride Surname, Given (Maiden Name if needed) YYYY-MM-DD. I place this file in my system folder Media\Marriages

I add a new Citation on the Marriage event and select the Source (or create it). Then I add the image to the Gallery tab which creates the Media record. Adding the image automatically places Groom Surname, Given & Bride Surname, Given (Maiden Name if needed) YYYY-MM-DD in the Media record’s Title field. I move the date from the Title to the Media record’s date field. I add to the front of the Title field the specific terminology of the document; i.e. Certificate of a Marriage: or just Marriage Record: when no header is present.

If there is a file number on the document that would be understood by the source, I put this and the date in the Citation. If not, I copy and paste the information from the Media record’s Title field to the Volume/Page field of the Citation.

Close/Save the Media record. Close/Save the Citation record.

Writing out the steps of my process seems like a lot of work but in practice it really is not. Notice, I only typed the basic information once when I named the raw file scan image. And I agree, retyping the same info into the various field results in typos. Copy and paste or drag-n-drop prevents typos.

1 Like

Well, now I understand my misconception. I did not know that adding an image to the Gallery tab of a citation would also automatically add a Media record. I clicked on the Media tab now for the first time in weeks and have dozens of Media files now. I thought when adding directly to the Gallery tab would prefend adding a Media record. I got it now.

Thank you for writing it down.

If not, I copy and paste the information from the Media record’s Title field to the Volume/Page field of the Citation.

Yeah, that’s where I’d like to have a default placeholder value being set. I hoped there would have been some addon or setting. Too bad there isn’t. But okay… :slight_smile:

1 Like

Define that placeholder (something like {MT} for Media Tittle), write a little SuperTool script to detect it and obtain media’s tittle from the media associated to that citation, then replace the placeholder by the tittle and rewrite citation v/p. Run that script after you enter all your citations with the {MT} placeholder to replace all these placeholders at once.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.