Web based family history software

Question media types

  • klausthaler
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #1 by klausthaler
media types was created by klausthaler
Background: our webtrees appearance is a copy of a Legacy database, the GEDCOM via a compiler adapted to the needs of webtrees. This is still 1.7, because I am just learning if and how most of the functionality could be ported to version 2.

1. The List -> Media page displays the contents of any Folder if I enter the folder name. Filtering by Type however always yields "Media objects found 0". I think this is a bug.

2. I got there on search of a replacement for _PRIM Y which I really miss, because for me using the first media as primary is NOT a solution. We got some 2.500 media, many pictures, photos, and often a portrait, a "Passbild", to be displayed with the individual.

Btw. is there a reason for the proposed media type entries? A functionality connected to the types? (other than a technical one. I assume that audio might be handled otherwise than video or still picture)

Klaus

klausthaler.de/familie
webtrees 2.1, Apache/2.4 (Linux 3.10), PHP 8.2, MySQL 8.2

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

  • norwegian_sardines
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 11 months ago - 2 years 11 months ago #2 by norwegian_sardines
Replied by norwegian_sardines on topic media types
Most of the media types come directly from the GEDCOM v5.5.1 specification as listed:
[ audio | book | card | electronic | fiche | film | magazine | manuscript | map | newspaper | photo | tombstone | video ]
(NOTE: GEDCOM v7.0 does not change this list except to add the ability to have a user defined text)

I'm not sure of all of the current or potential functionality attached to the use of the MEDIA.TYPE but one for sure is the front page "Slide Show" where you can select what media types are used in the display. Other uses may come in the future!

It is too bad that Legacy does not follow the GEDCOM Standard regarding the use of the first entry of a tag (be it an image or a "fact") as the primary item. It would be so easy for the GEDCOM output from Legacy to just search for their _PRIM flag and put it first with others to follow!

Ken
Last edit: 2 years 11 months ago by norwegian_sardines. Reason: Add v7 NOTE

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 years 11 months ago - 2 years 11 months ago #3 by bertkoor
Replied by bertkoor on topic media types
Been browsing your site, the media list is always empty indeed, whatever is selected. Not ok. It works on other sites, so I suspect it's something with your data or config.

Do you have an example of an individual that has a portrait?

Have you checked privacy settings for media objects?

Others may know better than me (I'm still on v1.7 under php5), but v2 might have a "datafix" you can run from the control panel to put images with "_PRIM Y" first. Because that was a feature of webtrees v1 as well.

stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 2 years 11 months ago by bertkoor.

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

  • norwegian_sardines
  • Offline
  • Platinum Member
  • Platinum Member
More
2 years 11 months ago #4 by norwegian_sardines
Replied by norwegian_sardines on topic media types
I do see a data fix called "Convert _PRIM tags to GEDCOM 5.5.1"

I'm not sure what it does but you could try it to see what it does!

Ken

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

  • klausthaler
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #5 by klausthaler
Replied by klausthaler on topic media types
thanks Ken and BertKoor.
@Bertkoor: familie is 1.7 and all media are for members only. So you see nothing except the folder names.
My test site klausthaler.de/f2 has unrestricted media. There you can see my number 1 problem.
Select Folder "corona" and you get 23 pictures of type PHOTO. select Type "Photo" and you get 0.
@Ken: It helps to learn that use of the first item is GEDCOM standard, I can modify my compiler accordingly.
Where can I find the data fix? I haven't found that yet.

P.S. I don't appreciate that folder names of hidden data are shown to visitors. V 1.7 and 2

Klaus

klausthaler.de/familie
webtrees 2.1, Apache/2.4 (Linux 3.10), PHP 8.2, MySQL 8.2

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 years 11 months ago #6 by bertkoor
Replied by bertkoor on topic media types
Thanks for sharing the open site.

I see your media have set e.g. Format: image/jpeg, but none have a Type of either photo or document or whatever.

So of what I see it works as designed. You cannot query on an attribute that is never set.

stamboom.BertKoor.nl runs on webtrees v2.1.20

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

More
2 years 11 months ago #7 by Peter_S
Replied by Peter_S on topic media types

I do see a data fix called "Convert _PRIM tags to GEDCOM 5.5.1"

I'm not sure what it does but you could try it to see what it does!
If there is more than one media object in a GEDCOM structure, data fixing places the media object first in the sequence and then deletes the _PRIM tag. If there are multiple identical tags in a sequence, the first one is the most important.

Peter

webtrees 2.1.22, vesta modules, chart modules of magicsunday, extended family and imprint of hartenthaler
PHP 8.3.12, MariaDB 10.11.8
Webhosting: genonline.de

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

  • klausthaler
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago - 2 years 11 months ago #8 by klausthaler
Replied by klausthaler on topic media types
@Peter: thanks, found it too. Will be helpful to scan for unwanted portraits.

@bertkoor: sorry, I don't understand what you see. In the GEDCOM (exported from the f2 website) my media look like
.
0 @M12084@ OBJE
1 FORM JPG
1 FILE photo/1940 Chamois.JPG
1 TYPE PHOTO
1 _PRIM N
1 TITL 30. Oktober 1940, Chamois bei Paris
1 NOTE Franz, ein unbekannter 'Kurzer', Konrad
0 @M12085@ OBJE
1 FORM jpg
1 FILE face/1942 Sebastian.jpg
1 TYPE PHOTO
1 _PRIM N
1 TITL 1942 Sebastian
.
To my understanding the relative position of level 1 tags is irrelevant.
Btw: how could you see the format or type?

Do you have an example of an individual that has a portrait?

Just click on the leftmost portrait in the fancy-imagebar. 3 portrait photos for this person.

Klaus

klausthaler.de/familie
webtrees 2.1, Apache/2.4 (Linux 3.10), PHP 8.2, MySQL 8.2
Last edit: 2 years 11 months ago by klausthaler.

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 years 11 months ago - 2 years 11 months ago #9 by bertkoor
Replied by bertkoor on topic media types
The correct GEDCOM structure of a media object with type photo as I found it on the demo server is:
Code:
1 FILE Queen_Alexandra,_the_Princess_of_Wales.jpg 2 FORM jpeg 3 TYPE photo 2 TITL Alexandra of Denmark

Note "photo" is in all lower case. That is exactly what the GEDCOM specs say:

SOURCE_MEDIA_TYPE:= {Size=1:15}
[ audio | book | card | electronic | fiche | film | magazine |
manuscript | map | newspaper | photo| tombstone | video ]


I would expect any unexpected tag value to appear raw and untranslated, not hidden like it is now. So that's a bug imho.

Also I looked at the restrictions in v1.7 regarding access to the media object list. It would be logical when visitors don't have access to any media object, then the menu item "Lists - Media Objects" would be hidden as well. But it is not. Same is true btw for sources, repositories etc. Visitors may ask for a list but never get any results. So currently you cannot hide your internal structure of the media folder from curious visitors.

stamboom.BertKoor.nl runs on webtrees v2.1.20
Last edit: 2 years 11 months ago by bertkoor.

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

More
2 years 11 months ago #10 by Sir Peter
Replied by Sir Peter on topic media types
GEDCOM 5.5.1 standard says:
Code:
MULTIMEDIA_RECORD:= n @XREF:OBJE@ OBJE {1:1} +1 FILE <MULTIMEDIA_FILE_REFN> {1:M} p.54 +2 FORM <MULTIMEDIA_FORMAT> {1:1} p.54 +3 TYPE <SOURCE_MEDIA_TYPE> {0:1} p.62 +2 TITL <DESCRIPTIVE_TITLE> {0:1} p.48 +1 REFN <USER_REFERENCE_NUMBER> {0:M} p.63, 64 +2 TYPE <USER_REFERENCE_TYPE> {0:1} p.64 +1 RIN <AUTOMATED_RECORD_ID> {0:1} p.43 +1 <<NOTE_STRUCTURE>> {0:M} p.37 +1 <<SOURCE_CITATION>> {0:M} p.39 +1 <<CHANGE_DATE>> {0:1} p.31

So it seems you are using the wrong levels for FORM, TYPE and TITL. Maybe you are using an older version of GEDCOM standard or it doesn't follow any standard. Try to change the raw GEDCOM as follows:
Code:
0 @M12084@ OBJE 1 FILE photo/1940 Chamois.JPG 2 FORM JPG 3 TYPE PHOTO 2 TITL 30. Oktober 1940, Chamois bei Paris 1 _PRIM N 1 NOTE Franz, ein unbekannter 'Kurzer', Konrad

Peter

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
2 years 11 months ago #11 by bertkoor
Replied by bertkoor on topic media types
Well spotted, Sir Peter! It's the level of the TYPE tag that is wrong.
I tested with value PHOTO instead of photo and that shows correct and is also correctly handled in the list as a search criterium.

stamboom.BertKoor.nl runs on webtrees v2.1.20

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

  • klausthaler
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 11 months ago #12 by klausthaler
Replied by klausthaler on topic media types
thank you 2!
I learnt a lot and will be busy for some time.

(And switch off my media visibility again)

Klaus

klausthaler.de/familie
webtrees 2.1, Apache/2.4 (Linux 3.10), PHP 8.2, MySQL 8.2

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

Powered by Kunena Forum