Page 2 of 2

Re: Occupation missing from Census tab

Posted: 28 Aug 2017 19:27
by tatewise
I have quickly analysed the situation.

Firstly, the Plugin gives no feedback that it has done anything and runs very quickly.
So running it five times has created five duplicated sets of Occupation facts.
(Five pairs for 7 Apr 1861 and 2 Apr 1871 in your screenshot.)

Secondly, it has a bug in recognising your "occupation shown as:" label.
It is actually looking for the label "occupation shown as :" by mistake with a space before the colon, which is not found.
Thus the created Occupation facts have no occupation and the Note has not been removed from Census.

Thirdly, if any Census had a Note regardless of the label, then an Occupation would get created in error.
(This is what is currently happening and explains why the Census Note is copied across to Occupation Note.)

Fourthly, the Address and Age and Note fields should NOT get copied from Census to Occupation.
This is necessary to mimic how AS creates Occupation facts.

Jane, should be able to easily fix those problems.

Re: Occupation missing from Census tab

Posted: 28 Aug 2017 19:43
by bbottomley
Thanks Mike

Yep, repeated tries muddied the waters a tad but thanks for the observations.

BTW, greatly appreciate the work Jane and yourself put in to this site to help the likes of me.

Brian

Re: Occupation missing from Census tab

Posted: 29 Aug 2017 07:16
by Jane
Try this one
Convert Census Note to Fact.fh_lua
(3.88 KiB) Downloaded 188 times

Re: Occupation missing from Census tab

Posted: 29 Aug 2017 10:47
by Jane
bbottomley wrote:There's over 180 people with an average of 3 census notes each showing "occupation shown as : ******" so it might not be worth your while Jane.
BTW I copied the selection text from the above which is why that part of the plugin was incorrect.

Re: Occupation missing from Census tab

Posted: 29 Aug 2017 11:11
by tatewise
Understood, but all the multiple earlier screenshots don't include that space before the colon.

Re: Occupation missing from Census tab

Posted: 29 Aug 2017 16:25
by bbottomley
Jane,I'm not going to be at my PC for a few days so the outcome will have to wait I'm afraid. Will get back asap with the results.

Thanks
Brian

Re: Occupation missing from Census tab

Posted: 03 Sep 2017 20:57
by bbottomley
Thanks very much for that Jane, all sorted now.

I even managed to modify the plugin because I'd made another narrative entry that I had forgotten with "occupation recorded as" which obviously didn't get captured on the first run through.

I think that's the limit of my plugin editing skill though!! :lol:

Anyway, many thanks to everyone involved

Brain