Whilst small files can be uploaded to forum posts, if you have a custom theme or module to contribute please add it on the "Add-ons" page.
  • Page:
  • 1

TOPIC:

Default tags for Source record 5 months 2 weeks ago #1

  • eatzema
  • eatzema's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 11
I would like to add a _URL "fact" to the default drop-down menu on the input page for all source records. I added the tag to the source tag list in gedcomTag.php and the tag now shows up in the drop-down menu that I can use to customize the "Facts for Source Records" for a given tree on the preferences page for that tree. Therefore, I can achieve what I want for all records for an individual tree. However, since I have a fair number of trees, I would like the _URL tag to be part of the default list for source records on the preferences page for any tree. In other words, I would like to add _URL to the four default facts (note, repository, restriction, shared_note) or perhaps add the tag to the unique facts. That way, I do not have to make changes for each individual tree. How to go about this? I am okay with making minor changes to the code, but I am having a hard time finding where in the code the default facts to a record are assigned.

Thanks,
Eisso

Please Log in or Create an account to join the conversation.

Default tags for Source record 5 months 2 weeks ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13364
> How to go about this? I am okay with making minor changes to the code

Towards the end of the template resources/views/admin/trees-preferences.phtml are two options,
which are commented out (using <!-- HTML comments -->).
This was an idea that I never finished developing, but which probably works and may be what you want...
It provides two new options:

"Use these settings for all trees"
"Use these settings for new trees"


Alternatively, use SQL to update the appropriate entries in the table wt_gedcom_setting.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Default tags for Source record 5 months 2 weeks ago #3

I know, I am not giving an answer to your question.

I use an repository with name Internet, and into the field Call number I am entering the URL for this source.

Ladislav
webtrees 2.0.7 + ⚶ Vesta modules (from cissee.de/ )
on PHP Version 7.3.14

Please Log in or Create an account to join the conversation.

Default tags for Source record 5 months 1 week ago #4

  • eatzema
  • eatzema's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 11
Thanks, Greg, commenting out the end of the template file did the job for me. Since I had not realized that most of the settings are stored in the MySQL database, I am now wondering what exactly I need to backup my set-up of WebTrees (data + settings). Before I give it a try, am I right that all I need is data/config.ini.php plus a dump of the database? Also, on an even less related note, it seems I cannot add a source or repository from a fact/event in the same way I can add a family member starting from an individual. Putting in the source as an unrelated record and then going back to link it to whatever I was working on is a bit clunky. Is that actually the recommended way to do this? Other than that, I very much like your program.

Thanks again,
Eisso

Please Log in or Create an account to join the conversation.

Default tags for Source record 5 months 1 week ago #5

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13364
> I am now wondering what exactly I need to backup my set-up of WebTrees (data + settings).

A full backup consists of:

* a database dump (genealogy data, user accounts, settings)
* the /data folder (media files)

For a quick backup, just export/download a GEDCOM file.

> Also, on an even less related note, it seems I cannot add a source or repository from a fact/event in the same way I can add a family member starting from an individual.

You can create a new source when adding/editing facts. Click the "+" button in the source-selector.


Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Attachments:

Please Log in or Create an account to join the conversation.

Default tags for Source record 5 months 6 hours ago #6

  • eatzema
  • eatzema's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 11
Thanks again, Greg. Of course, this is how you create a new source. Anyway, I have been using WebTrees fairly intensively in the last few days and I have a few comments and questions:

1) I noticed that sometimes (such as for source and marriage records) the unique identifier and ref.no are displayed. This is not a big deal and I imagine this is more of a bug than anything. Is there a way to hide these references, short of you fixing this with the next version?
2) Along the same lines, I imported a GEDCOM file from GEDitCOM II which turns out to have its own unique identifiers. I did not realize that and now these identifiers are displayed with every record. I can just remove them as I look at records, but perhaps there is a better way to either hide or remove these identifiers? I would prefer not to have to go to the MySQL database or export my trees as a GEDCOM, remove the identifiers and then import the file again--also because I am not quite sure what will happen to the WebTrees identifiers.
3) I am putting in a fair number of residence records and I noticed that WebTrees helpfully computes how long somebody has been at a certain location. However, that time gets the label "age" rather than "period", "timeframe" or whatever term one would like to use.
4) When putting in new "facts" for an individual there is really little telling in what order these facts will be displayed. Now, I can go back to the GEDCOM and fix the order that I want there, but for some users it might be preferable to rearrange the order of the facts without having to do that. Is there another way already?
5) Finally, is there a way to easily get to the head and submitter records? Again, I noticed after the fact that the GEDCOM file that I imported had quite a bit of gunk in the HEAD record that probably should be cleaned out and I also would like to be to able to make changes to the SUBM record.

Thanks,
Eisso

Please Log in or Create an account to join the conversation.

Default tags for Source record 5 months 5 hours ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13364
> 1) I noticed that sometimes (such as for source and marriage records) the unique identifier and ref.no are displayed.

The only time we normally show these IDs (XREFs) is when there is no corresponding record.

e.g. if you have a link to source S123, but there is no source S123, we'll show the XREF in red.

If this isn't what you are seeing, post a screenshot.

> 2) Along the same lines, I imported a GEDCOM file from GEDitCOM II which turns out to have its own unique identifiers. I did not realize that and now these identifiers are displayed with every record.

These could be UID, REFN, RIN, RFN - or some other field.
Hard to know what you are describing. Maybe post a screenshot?
You can hide these using privacy rules.

> 3) I am putting in a fair number of residence records and I noticed that WebTrees helpfully computes how long somebody has been at a certain location. However, that time gets the label "age" rather than "period"

It is calculating the person's age (at the start of the residency) - not the length of time they were there

> 4) When putting in new "facts" for an individual there is really little telling in what order these facts will be displayed.

We sort by date (for facts with dates), and then intersperse other events according to type. e.g. birth, baptism, marriage, death, burial.

If dates overlap, they are sorted equally. e.g. "12 JUN 1900" doesn't come before or after "1900".

> Now, I can go back to the GEDCOM and fix the order that I want there

Really? What facts are these? Even if you put death before birth, webtrees will ignore the order and show birth first.

> 5) Finally, is there a way to easily get to the head and submitter records?

You can go directly to a record by typing the XREF into the header search box.
For the header record, type HEAD into the search box...

You should have a list of submitter records in the main menu (Lists -> Submitters).
If not, you need to enable the "submitter list" module in the control panel.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Default tags for Source record 5 months 4 hours ago #8

  • eatzema
  • eatzema's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 11
Greg,

Thanks again for your quick reply. This was helpful. Here is my response to your reply:

1) See attached screenshot. The REFN comes from GEDitCom II, but the unique identifier (_UID) comes from WebTrees I think. My SUBM record also shows the _UID and there are other records that do so as well. As far as I can tell INDI records never show the _UID. I am okay with the REFN, but I would prefer for the _UID not to show (which for most records is in fact what happens).

2)The identifier that came with the GEDCOM file has label _GCID and the lines "1 _GCID ...." show with _GCID in red -- See attached screenshot. I will look into the privacy rules. This one is not a big deal (really "my bad," as they say).

3) Oops, never realized that.

4) Again, I guess I was looking for some other organizational principle, but date works fine. In a few case, I would like to have property or residence records next to each other and not be interspersed with other facts. I agree, however, that date is probably the best organizational principle for the facts of most records.

5) I did not know that, but that works very well.

Thanks again,
Eisso
Attachments:

Please Log in or Create an account to join the conversation.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Default tags for Source record 5 months 4 hours ago #9

  • eatzema
  • eatzema's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 11
Mmm, seems the first attachment disappeared... Here it is.
Eisso
Attachments:

Please Log in or Create an account to join the conversation.

Default tags for Source record 5 months 2 hours ago #10

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13364
> I would prefer for the _UID not to show

Control panel -> Family tree -> Privacy -> Default privacy restrictions -> UID -> Hide from everyone

> 2)The identifier that came with the GEDCOM file has label _GCID and the lines "1 _GCID ...." show with _GCID in red

You can probably hide these with

Control panel -> Family tree -> Preferences -> GEDCOM errors -> hide
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Default tags for Source record 4 months 4 weeks ago #11

  • eatzema
  • eatzema's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 11
Suggestion #2 works (although the code I uncommented to apply the new setting to all family trees does not seem to work). When I try to set up a rule for hiding for _UID, however, I do not seem to be able to save the rule. Clicking "save" just gets me back to the control panel with a message that the preferences have changed, but no rule has been added on the privacy rules page and I can still see the UID.

Thanks,
Eisso

Please Log in or Create an account to join the conversation.

Default tags for Source record 4 months 4 weeks ago #12

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13364
> I do not seem to be able to save the rule.

Seems to be a bug. I'll take a look.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum