Print all notes

In such a circumstance, I resort to a dirty hack: I export my tree as Gramps XML without compression. This produces a HUGE text file. I then use a “macro-generator” program to keep only <note … </note> sequences.

You display the filtered out file in any text editor.

To be more selective, my “filter” includes a type="xxx" attribute with an ad hoc xxx: <note … type="xxx" … </note>.

This requires some computer programming skill (to drive the macro generator) and may not fit everyone.

Maybe the Note Report could have some References options?

Similar to the elements of the References gramplet for the Notes category:


But the list would benefit from a Count of references and a listing limit option. Such as 5 or 10 references.

(This might help the OP’s issue with Notes generated for his GEDCOM import failures. The “RIN” in the Note wasn’t explicit. But a Reference IDing the Person would reduce the need for a lookup.)

To give back references for each note is not impossible but as there is no References field in the Note Record, it would involve checking the long way, Looking at each Person, Marriage, Place, Citation, Source, Repository, Event, Event_Ref and any other xxx_Ref record there is looking for any note in the Note Filter.
I usually use these text reports to identify errors in the notes themselves. You need to go back to Gramps to make corrections. It is easier in a word processor to read through the notes, (the text is bigger for a start) and you can mark your progress through the file, something you cannot do in Gramps.

@Korotvicka

“RIN files” – sorry, I have no idea what that acronym stands for.

Name display:

Either:

  1. When you open a Note, click on the “References” tab (top left). See circled area of your screen grab. This will display all objects that the Note is attached to. A Note can be shared by multiple People or Events, etc.

  2. In the Notes window, by default, there are a couple of Quick View widgets at the bottom of the screen: “References” and “Quick View”. Click on “References” to see which object(s) the selected Note is attached to. In the example below, The Note text is just a link to the FamilySearch web site. It is attached to “Bower, Lily A.” in my database. For certainty, she has Gramps ID I2459 in case there are multiple people with the same name. Note that doubling-clicking on a Reference line will bring up the associated editor dialog for that object.

Note ID

I think the Note ID is a red herring. It is just a number assigned by Gramps when the Note object was created. I can’t imagine why you would need a catalogue of the Notes. Nonetheless, using “File → Export View…” in the Notes window will produce a file showing all the the Note IDs.

HTH

Craig

Some other genealogy tools use Record Identification Number as a term for their Unique IDentifiers (UID or UUID). Like the Gramps IDs or handles, most tend to be sequential or are seeded from a timestamp. So they are arbitrary and not helpful for predicting content.

For example, see Legacy Family Tree’s KB article How to change RIN and MRIN numbers

It would helpful to know which program generated the GEDCOM file that was imported.

1 Like

The Gedcom was generated by Family Tree Maker Version 9 (NOT 2019, it’s much older)

1 Like

The question was how to print the notes, however , as I now see what they are gedcom error records, I see no point printing them. What you need to do is open each person record and make the appropriate correction, then delete the note. The examples that I can see are a bunch of date errors.

@Korotvicka How many people are in this gedcom/database? From the screen shot, I see Note IDs greater than 17,000!! That is a surprisingly large number!

In the screen shot, all the Notes start with “!See …”. To me, that doesn’t appear to be something that Gramps added while trying to import the Gedcom. At a guess, I wonder if your mother converted from some prior genealogy software to Family Tree Maker and FTM added many of these warnings? Then FTM put them in the Gedcom and Gramps imported them like any other note?

If that is true, you might want to just ignore them since it would suggest that your mother did just that!

If you want to prevent such Notes from appearing on reports, I presume there is a way to mark all Notes starting with !See as either private or locked (or both). Offhand, I’m not sure how to do that but I’m sure someone here will know if that is something you want.

Craig

1 Like

Hi Craig,
There are about 6500 people in my Mother’s original gedcom.
(For a variety of reasons) I don’t imagine she ever used anything but FTM .

Sadly, there is a lot of secondary chatter occupying this thread now and it is getting difficult for me to follow my original topic. Therefore, I have cut and paste all your responses into a doc and will be re-visiting your suggestions.
I feel I have a better grasp of this now and will get back to you if I get stuck again.

Your help has been a game-changer for me. Thank-you.
Kevin Korotev

I’m glad that I’ve given you some ideas on how to proceed. Feel free to post follow-up questions as you run into them.

I know that thread replies can sometimes head off in all directions and be hard to follow. But that diversity of ideas can also lead to better solutions! I learn new things about the Gramps software all the time here even though I’ve been using it for more than 10 years. Sharing our experience means that we don’t each have to search out all the cool little features!

Craig

In the forums I visit about things I KNOW a little (or a lot) about, I agree wholeheartedly.
“Gramps” is not one of these :wink:

There is another topic to demonstrate adding a Custom Filter selector to the Configure screen of a Gramplet. (Linked from the “Filters are great! Why don't all reports use them?” topic.) But if the selector code is either standardized or documented, improvements could be retrofitted into other plugs… like Reports and Tools.

Testing your Report suggested an enhancement: make a tooltip for each Custom Filter from the Description. Will have to explore that.

Tried the Notes report in a Book consisting a Table of Contents and the Notes Report. It fails.

173945420: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
  File "/app/lib/python3.11/site-packages/gramps/gui/plug/report/_bookdialog.py", line 711, in on_book_ok_clicked
    BookDialog(
  File "/app/lib/python3.11/site-packages/gramps/gui/plug/report/_bookdialog.py", line 993, in __init__
    self.make_book()
  File "/app/lib/python3.11/site-packages/gramps/gui/plug/report/_bookdialog.py", line 1063, in make_book
    rpt.write_report()
  File "/home/districtsupport/.gramps/gramps52/plugins/NoteReport/note_report.py", line 115, in write_report
    self.write_note(note_handles)
  File "/home/districtsupport/.gramps/gramps52/plugins/NoteReport/note_report.py", line 198, in write_note
    self.doc.write_styled_note(
  File "/app/lib/python3.11/site-packages/gramps/plugins/docgen/odfdoc.py", line 1502, in write_styled_note
    markuptext = self._backend.add_markup_from_styled(text, s_tags, "\n")
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/gramps/gen/plug/docbackend/docbackend.py", line 290, in add_markup_from_styled
    tag = self.find_tag_by_stag(s_tag)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/gramps/gen/plug/docbackend/docbackend.py", line 231, in find_tag_by_stag
    if tagtype.STYLE_TYPE[typeval] == bool:
       ~~~~~~~~~~~~~~~~~~^^^^^^^^^
KeyError: -1

Does it work outside of a book?
I ran the report on my database with no problem but then I have well formed notes.

Need to test this old error again. But an away from the computer for the day.