New Form for gramps.

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

New Form for gramps.

GRAMPS - User mailing list
Hello all,

I have been trying to write a Form for the old GRO indexes for the birth, marriage and death books. 
The first one was for the births section from 1837 to 1910
I have placed the file custom.xml in the same folder as the gramplet form file but it does does not  work. Do not wish to put the file up for testing until i at least get it to run here.
Can someone please have a look.....


<?xml version="1.0" encoding="utf-8"?>
<forms>
<form id="UKBirthIndex" type="Birth" title="English Civil Registration Birth Index">
heading>
<_attribute>Year Registered</_attribute>
</heading>
heading>
<_attribute>Vol & Page</_attribute>
</heading>
<heading>
<_attribute>Surname of Parent</_attribute>
</heading>
<heading>
<_attribute>Name (if any) or Sex of Child</_attribute>
</heading>
<heading>
<_attribute>Registration District</_attribute>
</heading>
</section>
</form>
</forms>

Thanks

Tom


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

Brad Rogers
On Fri, 1 Mar 2019 14:42:32 +0000
Tom Beckham via Gramps-users <[hidden email]> wrote:

Hello Tom,

>I have been trying to write a Form for the old GRO indexes for the
>birth, marriage and death books.

That work has already been done.

As the form attribute, enter UKBirth, UKMarriage or UKDeath as required,
in the usual place.

--
 Regards  _
         / )           "The blindingly obvious is
        / _)rad        never immediately apparent"
If Adolf Hitler flew in today, they'd send a limousine anyway
(White Man) In Hammersmith Palais - The Clash


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org

attachment0 (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

Nick Hall
In reply to this post by GRAMPS - User mailing list
On 01/03/2019 14:42, Tom Beckham via Gramps-users wrote:
> <_attribute>Vol & Page</_attribute>

You will need to escape the "&" character:

<_attribute>Vol &amp; Page</_attribute>


Nick.




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

GRAMPS - User mailing list
In reply to this post by Brad Rogers
Hello Brad,

Thanks for your reply. 
Unfortunately it has not.  These indexes are the book's that give you the data to order a certificate and as my listing on my form shows they have different content. 
The forms you mention which i use addre for the certificates. 

Tom

On Fri, 1 Mar 2019, 2:57 pm Brad Rogers, <[hidden email]> wrote:
On Fri, 1 Mar 2019 14:42:32 +0000
Tom Beckham via Gramps-users <[hidden email]> wrote:

Hello Tom,

>I have been trying to write a Form for the old GRO indexes for the
>birth, marriage and death books.

That work has already been done.

As the form attribute, enter UKBirth, UKMarriage or UKDeath as required,
in the usual place.

--
 Regards  _
         / )           "The blindingly obvious is
        / _)rad        never immediately apparent"
If Adolf Hitler flew in today, they'd send a limousine anyway
(White Man) In Hammersmith Palais - The Clash
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

GRAMPS - User mailing list
In reply to this post by Nick Hall
Thanks Nick,

Would this stop the form working?

Tom

On Fri, 1 Mar 2019, 3:38 pm Nick Hall, <[hidden email]> wrote:
On 01/03/2019 14:42, Tom Beckham via Gramps-users wrote:
> <_attribute>Vol & Page</_attribute>

You will need to escape the "&" character:

<_attribute>Vol &amp; Page</_attribute>


Nick.




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

prculley
The form needs to be called either custom.xml or test.xml to be recognized.  After that, in addition to the '&amp;', you have some 'heading>' tags that are not right, should be '<heading>' (two places).  Then there is the </section> tag to close out a section, but you never opened the section to begin with.

Any of these will prevent the form from loading.  If you start Gramps in debug mode, it will spit out error messages to the console when the file is read.  Like the following:
Traceback (most recent call last):
  File "C:\Users\prc\workspace\GrampsM\main\gramps\gen\plug\_manager.py", line 239, in load_plugin
    _module = self.import_plugin(pdata)
  File "C:\Users\prc\workspace\GrampsM\main\gramps\gen\plug\_manager.py", line 272, in import_plugin
    module = __import__(pdata.mod_name)
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\formgramplet.py", line 46, in <module>
    from editform import EditForm
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\editform.py", line 53, in <module>
    from form import ORDER_ATTR, GROOM, BRIDE
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line 207, in <module>
    FORM = Form()
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line 109, in __init__
    self.__load_definitions(full_path)
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line 112, in __load_definitions
    dom = xml.dom.minidom.parse(definition_file)
  File "H:\msys64\mingw64\lib\python3.7\xml\dom\minidom.py", line 1958, in parse
    return expatbuilder.parse(file)
  File "H:\msys64\mingw64\lib\python3.7\xml\dom\expatbuilder.py", line 911, in parse
    result = builder.parseFile(fp)
  File "H:\msys64\mingw64\lib\python3.7\xml\dom\expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 19, column 2

The last line is from your mismatched </section> tag.

I suggest you compare with one of the working forms in form_gb.xml to understand the meaning of the various lines when creating your own form.

Paul C.

On Fri, Mar 1, 2019 at 9:58 AM Tom Beckham via Gramps-users <[hidden email]> wrote:
Thanks Nick,

Would this stop the form working?

Tom

On Fri, 1 Mar 2019, 3:38 pm Nick Hall, <[hidden email]> wrote:
On 01/03/2019 14:42, Tom Beckham via Gramps-users wrote:
> <_attribute>Vol & Page</_attribute>

You will need to escape the "&" character:

<_attribute>Vol &amp; Page</_attribute>


Nick.




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

GRAMPS - User mailing list
Thanks Paul,

I thought I had followed the examples!

I called the form custom.xml.

I will digest the very interesting reply and will let you know when I get it to work. 

Appreciate all the helpful replies. 

Tom

On Fri, 1 Mar 2019, 5:15 pm Paul Culley, <[hidden email]> wrote:
The form needs to be called either custom.xml or test.xml to be recognized.  After that, in addition to the '&amp;', you have some 'heading>' tags that are not right, should be '<heading>' (two places).  Then there is the </section> tag to close out a section, but you never opened the section to begin with.

Any of these will prevent the form from loading.  If you start Gramps in debug mode, it will spit out error messages to the console when the file is read.  Like the following:
Traceback (most recent call last):
  File "C:\Users\prc\workspace\GrampsM\main\gramps\gen\plug\_manager.py", line 239, in load_plugin
    _module = self.import_plugin(pdata)
  File "C:\Users\prc\workspace\GrampsM\main\gramps\gen\plug\_manager.py", line 272, in import_plugin
    module = __import__(pdata.mod_name)
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\formgramplet.py", line 46, in <module>
    from editform import EditForm
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\editform.py", line 53, in <module>
    from form import ORDER_ATTR, GROOM, BRIDE
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line 207, in <module>
    FORM = Form()
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line 109, in __init__
    self.__load_definitions(full_path)
  File "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line 112, in __load_definitions
    dom = xml.dom.minidom.parse(definition_file)
  File "H:\msys64\mingw64\lib\python3.7\xml\dom\minidom.py", line 1958, in parse
    return expatbuilder.parse(file)
  File "H:\msys64\mingw64\lib\python3.7\xml\dom\expatbuilder.py", line 911, in parse
    result = builder.parseFile(fp)
  File "H:\msys64\mingw64\lib\python3.7\xml\dom\expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 19, column 2

The last line is from your mismatched </section> tag.

I suggest you compare with one of the working forms in form_gb.xml to understand the meaning of the various lines when creating your own form.

Paul C.

On Fri, Mar 1, 2019 at 9:58 AM Tom Beckham via Gramps-users <[hidden email]> wrote:
Thanks Nick,

Would this stop the form working?

Tom

On Fri, 1 Mar 2019, 3:38 pm Nick Hall, <[hidden email]> wrote:
On 01/03/2019 14:42, Tom Beckham via Gramps-users wrote:
> <_attribute>Vol & Page</_attribute>

You will need to escape the "&" character:

<_attribute>Vol &amp; Page</_attribute>


Nick.




_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

Brad Rogers
In reply to this post by GRAMPS - User mailing list
On Fri, 1 Mar 2019 15:33:21 +0000
Tom Beckham via Gramps-users <[hidden email]> wrote:

Hello Tom,

>Unfortunately it has not.  These indexes are the book's that give you
>the data to order a certificate and as my listing on my form shows they

Yeah, I misread your post, so got the wrong end of the stick.

I'm not sure though, what you're trying to achieve by making these index
entries separate from the current BMD forms.  Unless this is just a
stepping stone to incorporating them into the current forms.

Don't let the fact that the indexes change over time stop you creating
all the fields, even if unused, from 1837 onwards.  The existence of a
field doesn't mean it *has* to have a value entered.  Further, having
multiple forms for the same event only complicates maintenance.  For a
start, they have to have unique names.  Also, I don't know whether
Gramps can handle multiple Form attributes for a Source successfully,
meaning that you _may_ need multiple Sources for the same event, making
it tiresome, at best, picking the right one.

--
 Regards  _
         / )           "The blindingly obvious is
        / _)rad        never immediately apparent"
I guess I shouldn't have strangled her to death
Ugly - The Stranglers


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org

attachment0 (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

GRAMPS - User mailing list
In reply to this post by Brad Rogers
Hello Brad, 

I am doing the history of all the family in the uk and the indexes are useful as they are a source of data along side the certificates.  It is usually the first point of call before getting a certificate. I can link families early on in research by using the birth, marriage and death indexes only. 

They are a useful source of data in their own right.  I feel they should be a separate item.

I have taken on board your comments about one form from 1837 to present.

Tom


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

Brad Rogers
On Fri, 1 Mar 2019 22:23:33 +0000
Tom Beckham via Gramps-users <[hidden email]> wrote:

Hello Tom,

There's no need to CC me, I'm subbed to the list.

>They are a useful source of data in their own right.

No, they aren't.  Relying on information gleaned from the indexes is
sheer folly.  Even when additions (mother's maiden name, for example)
are included.

I know of several dozen people researching some of my family tree's
branches, and they've all fallen for it.  Admittedly, some will simply
have copied another person's faulty research.  If, however, *any* of
those people had taken the trouble to buy the relevant certs, they'd see
that those certificates apply to the wrong persons.  Not such a big
problem with a death maybe (although that's bad enough), but when it's a
birth or a marriage, you then end up with a wildly inaccurate tree, with
people being partnered to the wrong spouse, or attached to the wrong
parents.

I am aware also that, on occasion, even the info on the certificate is
wrong, especially on death certificates.  So, even with a cert in hand,
one needs to be careful with the data.

The index really is only useful as (part of) a citation.

--
 Regards  _
         / )           "The blindingly obvious is
        / _)rad        never immediately apparent"
Just coz they do it in the movies, doesn't mean to say that it's cool
Keep It Clean - The Vibrators


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org

attachment0 (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

Kurt Caulley
In reply to this post by Brad Rogers
Tom see if this works for you.
<?xml version="1.0" encoding="UTF-8" ?>
<forms>
    <form id='UKBirthIndex' type='Birth' title='English Civil Registration
Birth Index'>
        <heading>
            <_attribute>Year Registered</_attribute>
        </heading>
        <heading>
            <_attribute>Vol &amp; Page</_attribute>
        </heading>
        <heading>
            <_attribute>Registration District</_attribute>
        </heading>
        <section role='Primary' type='person' title='Child'>
            <column>
                <_attribute>Surname of Parent</_attribute>
            </column>
            <column>
                <_attribute>Name</_attribute>
            </column>
            <column>
                <_attribute>Sex of Child</_attribute>
            </column>
        </section>
    </form>
</forms>



--
Sent from: http://gramps.1791082.n4.nabble.com/GRAMPS-User-f1807095.html


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org
Reply | Threaded
Open this post in threaded view
|

Re: New Form for gramps.

GRAMPS - User mailing list
In reply to this post by GRAMPS - User mailing list



Hi Tom

No need for new form

Just put

GRO Reference: 1885  S Quarter in ST NEOTS  Volume 03B  Page 284"
Date would be yrear of Registration no Qtr field won't take it and then
place is the registration district

in the reference box of the required existing form and then select only
the person it refers to not filling in any further information


Regards
Phil
MLFHS 12583
Dumfries
On 01/03/2019 17:27, Tom Beckham via Gramps-users wrote:

> Thanks Paul,
>
> I thought I had followed the examples!
>
> I called the form custom.xml.
>
> I will digest the very interesting reply and will let you know when I get
> it to work.
>
> Appreciate all the helpful replies.
>
> Tom
>
> On Fri, 1 Mar 2019, 5:15 pm Paul Culley, <[hidden email]> wrote:
>
>> The form needs to be called either custom.xml or test.xml to be
>> recognized.  After that, in addition to the '&amp;', you have some
>> 'heading>' tags that are not right, should be '<heading>' (two places).
>> Then there is the </section> tag to close out a section, but you never
>> opened the section to begin with.
>>
>> Any of these will prevent the form from loading.  If you start Gramps in
>> debug mode, it will spit out error messages to the console when the file is
>> read.  Like the following:
>> Traceback (most recent call last):
>>    File "C:\Users\prc\workspace\GrampsM\main\gramps\gen\plug\_manager.py",
>> line 239, in load_plugin
>>      _module = self.import_plugin(pdata)
>>    File "C:\Users\prc\workspace\GrampsM\main\gramps\gen\plug\_manager.py",
>> line 272, in import_plugin
>>      module = __import__(pdata.mod_name)
>>    File
>> "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\formgramplet.py",
>> line 46, in <module>
>>      from editform import EditForm
>>    File
>> "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\editform.py",
>> line 53, in <module>
>>      from form import ORDER_ATTR, GROOM, BRIDE
>>    File
>> "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line
>> 207, in <module>
>>      FORM = Form()
>>    File
>> "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line
>> 109, in __init__
>>      self.__load_definitions(full_path)
>>    File
>> "C:\Users\prc\AppData\Roaming\gramps\gramps50\plugins\Form\form.py", line
>> 112, in __load_definitions
>>      dom = xml.dom.minidom.parse(definition_file)
>>    File "H:\msys64\mingw64\lib\python3.7\xml\dom\minidom.py", line 1958, in
>> parse
>>      return expatbuilder.parse(file)
>>    File "H:\msys64\mingw64\lib\python3.7\xml\dom\expatbuilder.py", line
>> 911, in parse
>>      result = builder.parseFile(fp)
>>    File "H:\msys64\mingw64\lib\python3.7\xml\dom\expatbuilder.py", line
>> 207, in parseFile
>>      parser.Parse(buffer, 0)
>> xml.parsers.expat.ExpatError: mismatched tag: line 19, column 2
>>
>> The last line is from your mismatched </section> tag.
>>
>> I suggest you compare with one of the working forms in form_gb.xml to
>> understand the meaning of the various lines when creating your own form.
>>
>> Paul C.
>>
>> On Fri, Mar 1, 2019 at 9:58 AM Tom Beckham via Gramps-users <
>> [hidden email]> wrote:
>>
>>> Thanks Nick,
>>>
>>> Would this stop the form working?
>>>
>>> Tom
>>>
>>> On Fri, 1 Mar 2019, 3:38 pm Nick Hall, <[hidden email]> wrote:
>>>
>>>> On 01/03/2019 14:42, Tom Beckham via Gramps-users wrote:
>>>>> <_attribute>Vol & Page</_attribute>
>>>>
>>>> You will need to escape the "&" character:
>>>>
>>>> <_attribute>Vol &amp; Page</_attribute>
>>>>
>>>>
>>>> Nick.
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Gramps-users mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/gramps-users
>>>> https://gramps-project.org
>>>>
>>> _______________________________________________
>>> Gramps-users mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/gramps-users
>>> https://gramps-project.org
>>
>>
>
>
>
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users
> https://gramps-project.org
>


_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
https://gramps-project.org