Web based family history software

Question Slide show - hide file path

More
3 years 7 months ago #1 by Yuk
Slide show - hide file path was created by Yuk
I would like to hide the photo's file path on the slide show. Looks really ugly and not a useful information for a user. It would be enough to show the path when user clicks on a photo. Is it possible to do?

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

More
3 years 7 months ago #2 by rsbarreiro
Replied by rsbarreiro on topic Slide show - hide file path
in the custom css module use:
figcaption.wt-slide-show-figcaption {display: none}

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

More
3 years 7 months ago #3 by fisharebest
Replied by fisharebest on topic Slide show - hide file path
We do not show the file path - we show the **title** of the media file.

Perhaps you did not give a title to your media?

(If there is no title, then the filename is used.)

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

More
3 years 7 months ago #4 by Yuk
Replied by Yuk on topic Slide show - hide file path
Hmm, I have TITL record for each file in GEDCOM, which is basically the file name without extension.
Thе GEDCOM was exported from Agelong Tree (Древо Жизни) v.5.5.

I don't see TITL record for media objects in webtrees. Is it non-standard? How the title is recorded?

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

More
3 years 7 months ago #5 by fisharebest
Replied by fisharebest on topic Slide show - hide file path
> I don't see TITL record for media objects in webtrees. Is it non-standard? How the title is recorded?

Here is an example from the demo site.

There is an edit link on the media-object page.
Code:
1 FILE Elizabeth_II_greets_NASA_GSFC_employees,_May_8,_2007_edit.jpg 2 FORM jpeg 3 TYPE photo 2 TITL Queen Elizabeth II

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

More
3 years 7 months ago - 3 years 7 months ago #6 by Yuk
Replied by Yuk on topic Slide show - hide file path
This is a part from GEDCOM I've imported:
Code:
1 OBJE 2 FILE kotliar2.files\Persons\Vasilievy\VasilievIvan.jpg 3 FORM jpg 2 TITL VasilievIvan

Here is what I see in WT when I go to "Edit raw GEDCOM" from an individual's page (I don't see any other way to edit the media object).


What I can do differently to have the file title imported?
Attachments:
Last edit: 3 years 7 months ago by Yuk.

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

More
3 years 7 months ago #7 by drblam
Replied by drblam on topic Slide show - hide file path

Here is what I see in WT when I go to "Edit raw GEDCOM" from an individual's page (I don't see any other way to edit the media object).

That is not how you edit the media object. You need to focus on the media object itself, not the individual. Let's start from the individual page for the person to whom the media object is attached. Click on the "Media" tab (it's near the center below the name) and you will see a list of media objects associated with this person. Beneath each media thumbnail, the title (or file name if there is no title) is a hyperlink to the page for editing that object. This allows you to see and/or modify the title.

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

More
3 years 7 months ago #8 by Yuk
Replied by Yuk on topic Slide show - hide file path
Oh, thanks a lot. I couldn't find it before.

So, there is no way to see raw GEDCOM records behind a media object? How fisharebest get is from the demo?

Do you know why there is this difference in format between my GEDCOM file and the one from demo posted by fisharebest? Which one is "more standard"?

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

More
3 years 7 months ago - 3 years 7 months ago #9 by Yuk
Replied by Yuk on topic Slide show - hide file path
OK, I found that if from the media file edit page I select "Edit raw GEDCOM" I can see more information:



So, the TITL record is there. Then why do I see the file path under the image instead of the title?

Attachments:
Last edit: 3 years 7 months ago by Yuk.

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

More
3 years 7 months ago #10 by fisharebest
Replied by fisharebest on topic Slide show - hide file path
> So, the TITL record is there

The title is not attached to the file.

You have "1 TITL xxx"

You should have "2 TITL xxx"

> This is a part from GEDCOM I've imported:
> 1 OBJE
> 2 FILE kotliar2.files\Persons\Vasilievy\VasilievIvan.jpg
> 3 FORM jpg
> 2 TITL VasilievIvan

This is "inline media data".
webtrees will convert this into a "media record".

Perhaps this conversion process has an error?

Which software created your GEDCOM file?

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

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

More
3 years 7 months ago - 3 years 7 months ago #11 by Yuk
Replied by Yuk on topic Slide show - hide file path

fisharebest wrote: >Which software created your GEDCOM file?

Thе GEDCOM was exported from Agelong Tree (Древо Жизни) , v.5.5.
I'll ask on their forum.
Last edit: 3 years 7 months ago by Yuk.

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

More
3 years 7 months ago #12 by Yuk
Replied by Yuk on topic Slide show - hide file path

rsbarreiro wrote: in the custom css module use:
figcaption.wt-slide-show-figcaption {display: none}


Do you mean this one? github.com/makitso/custom-css
So, I just add this line somewhere in custom.css?
Thanks

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

More
3 years 7 months ago #13 by rsbarreiro
Replied by rsbarreiro on topic Slide show - hide file path

Yuk wrote: Do you mean this one? github.com/makitso/custom-css
So, I just add this line somewhere in custom.css?
Thanks


no, i was referring to the custom css & js module that exists natively within webtrees ...
but if you are going to use titles in your images you will not have to worry about that, as the titles will replace the paths of the images ...

* translated by Google

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

More
3 years 7 months ago #14 by Yuk
Replied by Yuk on topic Slide show - hide file path
Ah, thanks!
CSS and JS module was disabled in my webtrees, but I figured it out.

It may take some time to correct the title issue with my gedcom. I will experiment with both approaches.

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

More
3 years 7 months ago - 3 years 7 months ago #15 by hermann
Replied by hermann on topic Slide show - hide file path
To correct the TITL records you can go to the "Contol panel/Manage family trees/Data fixes/Search and replace" and then search for "1 TITL " and replace them by "2 TITL " and select as record type "Media objects".

@Greg: I think that the original GEDCOM records are correct GEDCOM inline media data code and that there is an error in the conversion by webtrees

Hermann
Designer of the custom module "Extended Family"

webtrees 2.1.19 (all custom modules installed, PHP 8.2, MariaDB 10.6) @ ahnen.hartenthaler.eu
Last edit: 3 years 7 months ago by hermann.

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
3 years 7 months ago - 3 years 7 months ago #16 by bertkoor
Replied by bertkoor on topic Slide show - hide file path

hermann wrote: I think that the original GEDCOM records are correct GEDCOM inline media data code and that there is an error in the conversion by webtrees


Could be indeed...

Annotated GEDCOM specs v5.5.1 page 7:

Note: some systems may have output the following 5.5 structure. The new context above was
introduced in order to allow a grouping of related multimedia files to a particular context.

Code:
n OBJE +1 FILE <MULTIMEDIA_FILE_REFERENCE> +1 FORM <MULTIMEDIA_FORMAT> +1 TITLE <DESCRIPTIVE_TITLE> +1 <<NOTE_STRUCTURE>>


And page 73:

Code:
MULTIMEDIA_LINK:= [ n OBJE @<XREF:OBJE>@ | n OBJE +1 FILE <MULTIMEDIA_FILE_REFERENCE> +2 FORM <MULTIMEDIA_FORMAT> +3 MEDI <SOURCE_MEDIA_TYPE> +1 TITL <DESCRIPTIVE_TITLE> ]
[...]

Here's the GEDCOM 5.5 <MULTIMEDIA_LINK> definition for comparison:
Code:
MULTIMEDIA_LINK:= [ /* embedded form */ n OBJE <XREF:OBJE>@ | /* linked form */ n OBJE +1 FORM <MULTIMEDIA_FORMAT> +1 TITL <DESCRIPTIVE_TITLE> +1 FILE <MULTIMEDIA_FILE_REFERENCE> +1 <<NOTE_STRUCTURE>> ]


stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 3 years 7 months ago by bertkoor.

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

More
3 years 7 months ago - 3 years 7 months ago #17 by hermann
Replied by hermann on topic Slide show - hide file path
[strike]You are right. TITL is the title of the object and not of the file. In one media OBJE there are maybe many files but there is only one TITL allowed.

So it is more serious than I have seen it before. In the meantime, I have in my tree many objects with more than one file and the titles of these files are normally different. So I have to think about how to combine these file titles to a unique media object title.

@Greg: would it make sense to offer a data fix procedure which combines the existing file titles to one object title?[/strike]

It seems one more time that the standard is confusing. On page 26 it defines the OBJE record:
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

Here TITL is the title of the file and not of the object.

And on page 37 the definition of the multimedia link, you have found:
Code:
MULTIMEDIA_LINK:= n OBJE @<XREF:OBJE>@ {1:1} p.26 | n OBJE +1 FILE <MULTIMEDIA_FILE_REFN> {1:M} p.54 +2 FORM <MULTIMEDIA_FORMAT> {1:1} p.54 +3 MEDI <SOURCE_MEDIA_TYPE> {0:1} p.62 +1 TITL <DESCRIPTIVE_TITLE> {0:1} p.48

Hermann
Designer of the custom module "Extended Family"

webtrees 2.1.19 (all custom modules installed, PHP 8.2, MariaDB 10.6) @ ahnen.hartenthaler.eu
Last edit: 3 years 7 months ago by hermann.

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

  • bertkoor
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
More
3 years 7 months ago - 3 years 7 months ago #18 by bertkoor
Replied by bertkoor on topic Slide show - hide file path
Oh bugger...

I found seven occurrences of "+1 TITL" but just one occurrence of "+2 TITL" (in the OBJE context ofcourse).

Best be lenient then and allow for the TITL to be at both +1 and +2.

And someone better notify Tamura Jones ;-)
[edit: did that by Twitter]

stamboom.BertKoor.nl runs on webtrees v1.7.13
Last edit: 3 years 7 months ago by bertkoor.

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

Powered by Kunena Forum
}