This Help forum is for issues relates to the latest release (1.0). For issues related to beta or svn version please use their own Help forum.
When requesting help please provide as much information as possible. Explain what version of webtrees, PHP and MYSQL you are using. If possible provide a URL to your site so we can see the problem first-hand.
Tip: Think about putting these details in your signature, so it appears in the footer of ALL your messages
  • Page:
  • 1

TOPIC:

Media and restriction 10 years 2 months ago #1

  • jjr
  • jjr's Avatar Topic Author
  • Visitor
  • Visitor
I wanted to insert records documents as media one and this has caused some errors when tested by gedcheck...
1) The access restriction is not provided for media in gedcheck.php : Is it a gedcheck problem or not accepted by Gedcom standard?
My solution in gedcheck.php, I add line 611 : add_element ($prefix.'OBJE:RESN', 0, 1, $TAG);
2) The list of media in gedcheck.php is not current, it gives an error for : certificate, coat, document, painting, other.
My solution in gedcheck.php, modification line 321 : $TAG ='audio|book|card|certificate|coat|document|electronic|fiche|film|magazine|manuscript|map|newspaper|photo|tombstone|video|painting|other';
3) The pdf format is not scheduled. I think it is the standard GEDCOM (not a bug), but I change it for me!
My solution in gedcheck.php, modification line 270 : $TAG ='(bmp|gif|jpeg|ole|pcx|tif|wav|pdf)';
4) The length of the filename is limited by the GEDCOM standard to 32 characters (not a bug) but I changed it, long ago, for me, to 100 characters.
My solution in gedcheck.php, modification line 269 $TAG ='.{1,30}'; // 30 --> 100

Now it works perfectly, I put my documents in pdf, in the subdirectory of media / acts. I declare it as a media, type document, in pdf format, with restricted access confidential.
In addition I have no error when checking the Gedcom.

Is the access restrictions are allowed by Gedcom standard and do you agree my modifications ?

Jean-Jacques

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

Re: Media and restriction 10 years 2 months ago #2

  • norwegian_sardines
  • norwegian_sardines's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 1993
If by "restriction" you mean the RESN tag, the OBJE record type does not have that tag in the GEDCOM standard. The RESN tag only exists on the FAM, INDI and EVEN/FACT (via EVENT_DETAIL) type tags.
Ken

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

Last edit: by norwegian_sardines.

Re: Media and restriction 10 years 2 months ago #3

  • jjr
  • jjr's Avatar Topic Author
  • Visitor
  • Visitor
That's what I feared!
I will keep my modifications and I'll redo it if necessary...

The point 2 is still a problem
2) The list of media in gedcheck.php is not current, it gives an error for : certificate, coat, document, painting, other.
My solution in gedcheck.php, modification line 321 : $TAG ='audio|book|card|certificate|coat|document|electronic|fiche|film|magazine|manuscript|map|newspaper|photo|tombstone|video|painting|other';

Jean-Jacques

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

Re: Media and restriction 10 years 2 months ago #4

  • norwegian_sardines
  • norwegian_sardines's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 1993
As defined in the GEDCOM:

MULTIMEDIA_FORMAT:= {Size=3:4}
[ bmp | gif | jpg | ole | pcx | tif | wav ]
Indicates the format of the multimedia data associated with the specific GEDCOM context. This
allows processors to determine whether they can process the data object. Any linked files should
contain the data required, in the indicated format, to process the file data.
Ken

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

Re: Media and restriction 10 years 2 months ago #5

  • jjr
  • jjr's Avatar Topic Author
  • Visitor
  • Visitor
OK ! The standard is so old!

But for my point number two just above?

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

Re: Media and restriction 10 years 2 months ago #6

  • norwegian_sardines
  • norwegian_sardines's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 1993
Sorry. Looked at the wrong line in your comment:

SOURCE_MEDIA_TYPE:= {Size=1:15}
[ audio | book | card | electronic | fiche | film | magazine |
manuscript | map | newspaper | photo | tombstone | video ]
A code, selected from one of the media classifications choices above, that indicates the type of
material in which the referenced source is stored.
Ken

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

Re: Media and restriction 10 years 2 months ago #7

  • norwegian_sardines
  • norwegian_sardines's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 1993
The standard is the standard. I will not argue that it is old, because it is. IMHO gedchk is a program to check against the current GEDCOM standard and should always remain that way until a new standard is created.

Comments about the GEDCHK program and GEDCOM have been made in other threads here and in the PGV forum, so I will not repeat them.
Ken

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

Re: Media and restriction 10 years 2 months ago #8

  • jjr
  • jjr's Avatar Topic Author
  • Visitor
  • Visitor
Probaly, I missed it!

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: 

Re: Media and restriction 10 years 2 months ago #9

  • kiwi
  • kiwi's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 4986
To add it Ken's comments...

Use of Gedcheck is only recommended very occasionally. It is not a core part of webtrees (see (wiki.webtrees.net/Category:FAQs#GEDCOM_Check) Perhasp one day it might be, but for now it is not actively supported, so issues such as those listed here are unlikely to be addressed.

The concept of gedcheck has always been to ONLY check data conformance with strict GEDCOM spec - outdated or not. So again, no issues that don't conform with that concept are likely to be considered for now.
Nigel

www.our-families.info

Hosted at:
Follow me at:

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

Re: Media and restriction 10 years 2 months ago #10

  • jjr
  • jjr's Avatar Topic Author
  • Visitor
  • Visitor
I think it's a good way to keep a clean Gedcom, and avoid disappointment when transmitting the gedcom to friends and stay in line with possible changes in the software!

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

Re: Media and restriction 10 years 2 months ago #11

  • ToyGuy
  • ToyGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 4925
@Jean Jacques
It was a tool, written by Greg as an occasional or one-time check of the quality of a gedcom.
Once used and problems solved, webtrees should not be creating additional conflicts, so there should be no purpose in any repeated use. Perhaps you misunderstand the concept?
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

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

Re: Media and restriction 10 years 2 months ago #12

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14515
<<It was a tool, written by Greg as an occasional or one-time check of the quality of a gedcom.>>

Actually, I wrote it to teach myself PHP.

It was never designed to be a useful tool :-)
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.

Re: Media and restriction 10 years 2 months ago #13

  • jjr
  • jjr's Avatar Topic Author
  • Visitor
  • Visitor
I run it each time I do something new. I think it's important to keep the gedcom clean. We risk to accumulate some small errors like those I got four years ago when I started with PGV...
I have note it's not warranty. I also noted that the new phylosophy is to focus development towards the database rather than the Gedcom. But it's important to keep the Gedcom with a good syntaxe, to transmit or transfert because it's the unique way to communicate.
I think it would be a shame to completely neglect or abandon this tool...

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

Re: Media and restriction 10 years 2 months ago #14

  • ToyGuy
  • ToyGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Live like it's Christmas every day - Santa Stephen
  • Posts: 4925
@jjr
Perhaps it is the language difference, but again, I must repeat - at least for other admins and users - unless a user edits with RAW EDIT and makes many typos, every action initiated upon any family tree with webtrees is structured to prevent the entry of data inconsistent with the standard. PGV does NOT compare favorably with webtrees' procedure and has had some data-corrupting bugs during its long life.

If an admin cleans their family tree (GEDCOM) content ONCE to where it is free of critical errors, there is absolutely no reason to have to use the 'tool' again.

English to French translation courtesy of Google:
Anglaise à la courtoisie traduction française de Google:

C'est peut-être la différence de langue, mais encore une fois, je le répète - au moins pour les autres administrateurs et les utilisateurs - à moins que l'utilisateur modifie avec RAW EDIT et fait de nombreuses fautes de frappe, chaque action engagée à la suite de tout arbre de famille avec webtrees est structuré de manière à empêcher l'entrée de données incompatible avec la norme. PGV ne pas la comparaison à la procédure webtrees et a eu quelques données de bogues corrompant au cours de sa longue vie.

Si un administrateur nettoie leur arbre généalogique (GEDCOM) contenu une fois à l'endroit où il est exempt d'erreurs critiques, il est absolument aucune raison d'avoir à utiliser le 'outil "à nouveau.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

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

  • Page:
  • 1
Powered by Kunena Forum