Menu

Missing link to MM-item

Help
2003-11-16
2003-11-18
  • Boudewijn Sjouke

    When I select a multimedia item, all the data is shown correctly. Only the link to the picture (file) is missing. The same error occured in the last version.
    Boudewijn.

     
    • Phantomas

      Phantomas - 2003-11-16

      I tried to find out what you mean with v2.60 index.
      But I couldn't :-(

      In the index-version the picture is shown by clicking on the title of the mm-object in the mm-list and from the individual mm-page.

      If there is not a title for that mm-object you see only the filename.

      bye, Kurt

       
      • Phantomas

        Phantomas - 2003-11-16

        Ok, ok...

        As I read in another message you use the mysql-version ;-)

        I only wanted to tell John, that it's working with the index-version ;-)

        But where do you have the problem?

        In the mm-list or the mm-page of an individual???

        bye, Kurt

         
    • Boudewijn Sjouke

      Kurt,
      In the mm-list (medialist.php) the links (xxx.jpg) are present. If i click on the link, the picture appears alright.
      In the detail-screen of an item (source.php) only title and repository show. The link to the jpg is missing.
      In the mm-list of a person (individual.php, notes,sources and media-tab) the link to the jpg is also missing. The description of the mm-item is clickable and directs to the detail-screen mentioned before.
      Bye
      Boudewijn

       
      • Phantomas

        Phantomas - 2003-11-16

        Hi Boudewijn,

        I just can say: You're right...

        Also not working in the index-version :-(

        As an example for John:
        ---------------------------------------------
        0 @I10@ INDI
        1 NAME firstname /name/
        2 SURN name
        2 GIVN firstname
        1 SEX M
        1 BIRT
        2 DATE 5 Jan 1993
        2 PLAC Germany
        2 SOUR @S7@
        1 _UID 14D4C55BC7941B4982133635E940E06434CA
        1 FAMC @F1@
        1 SOUR @S8@
        1 CHAN
        2 DATE 2 Aug 2003
        3 TIME 10:08:39
        [etc]
        ---------------------------------------------
        0 @S7@ SOUR
        1 TITL Birthcertificate
        1 NOTE  Birthcertificate of name
        1 _ITALIC Y
        1 OBJE
        2 FORM jpg
        2 FILE H:\norgaz.info\media\subdir\birthcertificate.jpg
        2 TITL Birthcertificate
        2 NOTE Birthcertificate of name
        2 _SCBK N
        2 _PRIM N
        2 _TYPE PHOTO
        ---------------------------------------------
        0 @S8@ SOUR
        1 TITL Norgaz: Own knowledge
        1 TEXT Personal knowledge
        1 _ITALIC Y
        ---------------------------------------------

        This mm-object is shown in the mm-list, but anywhere else :-(

        This source of the birt-fact @S7@ is also not shown on the individual-notes/sources/media-page as a source.

        Only the general-source which is defined with @S8@ is shown on the individual-notes/sources/media-page as a source.

        And as Boudewijn said, also on the source.php only the title of @S7@ is shown without the mm-object and without the note-fact of the source. In this case a jpg. That means 2 missing items of the record :-(

        bye, Kurt

         
        • Boudewijn Sjouke

          At least the error is consistent.... :-)
          Boudewijn

           
    • Anonymous

      Anonymous - 2003-11-17

      Hello all,

      I tried to "understand" this error but I seem I can't. What I get is that the multimedia items should also show up on the source list?

      I can't even add a source. :S I have to enter a source ID, but there is no source ID. Am I doing something wrong?

      Thnx for the help.

      Roland

       
      • Phantomas

        Phantomas - 2003-11-17

        Hi Roland,

        At the end of this message I will add a gedcom, you can cut out and save in an empty textfile.

        Then try to import this into phpGedView and you will see what we mean :-)

        The Multimedialist will show you 2 mm-objects.
        But on the notes/sources/Media page of individual.php you will only find 1 mm-object and on the source-page (you go to there after clicking on the source link from the Personal Facts and Details page of individual.php you don't see the mm-object wich is connected to the source.

        Of course you have a source ID for each soruce inside a gedcom.

        The individuals have an ID that looks like @I1@ and the Source-IDs have an ID like @S1@.

        bye, Kurt

        ---------------cut------------
        0 HEAD
        1 SOUR PAF
        2 NAME Personal Ancestral File
        2 VERS 5.2.18.0
        2 CORP The Church of Jesus Christ of Latter-day Saints
        3 ADDR 50 East North Temple Street
        4 CONT Salt Lake City, UT 84150
        4 CONT USA
        1 DEST Other
        1 DATE 17 Nov 2003
        2 TIME 17:42:18
        1 FILE test.ged
        1 GEDC
        2 VERS 5.5
        2 FORM LINEAGE-LINKED
        1 CHAR UTF-8
        1 LANG German
        1 SUBM @SUB1@
        0 @SUB1@ SUBM
        1 NAME Name
        1 ADDR Street
        2 CONT City
        2 CTRY Deutschland
        1 EMAIL email@provider.com
        0 @I1@ INDI
        1 NAME First /Name/
        2 SURN Name
        2 GIVN First
        1 SEX M
        1 BIRT
        2 DATE 1 Jan 2003
        2 PLAC Germany
        2 SOUR @S1@
        1 OBJE
        2 FORM jpg
        2 FILE H:\Ahnen\media\subdir\picture1.jpg
        2 TITL Foto of First Name
        2 NOTE Taken 2003
        2 _SCBK Y
        2 _PRIM N
        2 _TYPE PHOTO
        2 _SSHOW Y
        0 @S1@ SOUR
        1 TITL Birthcertificate of First Name
        1 NOTE Official birthcertificate
        1 _ITALIC Y
        1 OBJE
        2 FORM jpg
        2 FILE H:\Ahnen\media\subdir\picture2.jpg
        2 TITL Birthcertificate of First Name
        2 NOTE Official birthcertificate
        2 _SCBK N
        2 _PRIM N
        2 _TYPE PHOTO
        ---------------cut------------

         
    • John Finlay

      John Finlay - 2003-11-18

      The gedcom is very helpful to understand what is going on.  I don't view it as a bug.  It does what the GEDCOM tells it to do.

      The way I10 should display is a birth record on the personal facts and details tab with a source citation to the S7 source on it.  Because the object is part of the source record and not part of the source citation it will _NOT_ show up on the the personal facts tab.  The MM OBJE will only show up in the source.php page and on the medialist.php page with a link to the source.

      Here is what a source citation may contain according to the gedcom spec:

      n SOUR @<XREF:SOUR>@    /* pointer to source record */  {1:1}
          +1 PAGE <WHERE_WITHIN_SOURCE>  {0:1}
          +1 EVEN <EVENT_TYPE_CITED_FROM>  {0:1}
            +2 ROLE <ROLE_IN_EVENT>  {0:1}
          +1 DATA        {0:1}
            +2 DATE <ENTRY_RECORDING_DATE>  {0:1}
            +2 TEXT <TEXT_FROM_SOURCE>  {0:M}
              +3 [ CONC | CONT ] <TEXT_FROM_SOURCE>  {0:M}
          +1 QUAY <CERTAINTY_ASSESSMENT>  {0:1}
          +1 <<MULTIMEDIA_LINK>>  {0:M}
          +1 <<NOTE_STRUCTURE>>  {0:M}

      The <<MULTIMEDIA_LINK>> in the source citation is where the jpg should be if you want a link for it to show up on the personal facts and details page and on the medialist.php page with a link to the individual I10.

      So, the appropriate gedcom would look like this:
      0 @I10@ INDI
      1 NAME firstname /name/
      2 SURN name
      2 GIVN firstname
      1 SEX M
      1 BIRT
      2 DATE 5 Jan 1993
      2 PLAC Germany
      2 SOUR @S7@
      3 NOTE Birthcertificate of name
      3 OBJE
      4 FORM jpg
      4 FILE H:\norgaz.info\media\subdir\birthcertificate.jpg
      4 TITL Birthcertificate
      4 _SCBK N
      4 _PRIM N
      4 _TYPE PHOTO
      1 _UID 14D4C55BC7941B4982133635E940E06434CA
      1 FAMC @F1@
      1 SOUR @S8@
      1 CHAN
      2 DATE 2 Aug 2003
      3 TIME 10:08:39

      The reason that the source S7 shows up on the personal facts and details tab and not on the sources tab is because it is used in the citation for the birth record.  So it needs to be attached to the birth record.  If you click on the link to the source it will take you to source.php where you should see a link to the image.

      In answer to Arne's question, you currently cannot add a new source through the gdbi_interface.php you can only cite a source that you already have in your gedcom.  Currently, in order to add a new source you have to add the source through the gdbi client or the gdbi_test.php page.  Eventually I plan to add the ability to add a new source.

      You need to note the difference here between _source_ (0 @S#@ SOUR) records and _source citation_ sub-records (2 SOUR @S#@).  In order for an image to show up on the individual.php page the OBJE sub-record must be somewhere in the record for the individual.  There are several places that an OBJE tag could show up in the individual record:
      1. as a level 1 general object (gedcom record showing this follows)
      - 0 @I10@ INDI
      - 1 OBJE
      - 2 FILE somepic.jpg
      2. as part of a fact subrecord:
      - 0 @I10@ INDI
      - 1 BIRT
      - 2 DATE 1 Jan 2003
      - 2 OBJE
      - 3 FILE somepic.jpg
      3. as part of a general source citation:
      - 0 @I10@ INDI
      - 1 SOUR @S7@
      - 2 OBJE
      - 3 FILE somepic.jpg
      4. as part of a source citation for an event sub-record:
      - 0 @I10@ INDI
      - 1 BIRT
      - 2 DATE 1 Jan 2003
      - 2 SOUR @S8@
      - 3 OBJE
      - 4 FILE somepic.jpg

      If I were you I wouldn't add many media objects to the source records but I would add them to the source citations.  When you add them to the source record you can only use that source for one person.  So if you had 3 birth certificates you would have to have 3 different birth certificate sources.  But if you put the OBJE in the source citation sub-records you only need to have one birth certificate SOUR record with three different citations.

      Here is a gedcom example of each:
      0 @I1@ INDI
      1 NAME person 1 /Surname/
      1 BIRT
      2 DATE 1 Jan 1850
      2 SOUR @S1@
      0 @I2@ INDI
      1 NAME person 2 /Surname/
      1 BIRT
      2 DATE 1 Jan 1840
      2 SOUR @S2@
      0 @I3@ INDI
      1 NAME person 3 /Surname/
      1 BIRT
      2 DATE 1 Jan 1830
      2 SOUR @S3@
      0 @S1@ SOUR
      1 TITL Birth Certificate 1
      1 OBJE
      2 FILE birthcertificate1.jpg
      0 @S2@ SOUR
      1 TITL Birth Certificate 2
      1 OBJE
      2 FILE birthcertificate2.jpg
      0 @S3@ SOUR
      1 TITL Birth Certificate 3
      1 OBJE
      2 FILE birthcertificate3.jpg

      Notice the redundancy in the sources.  Now the proper way this should be encoded in GEDCOM follows:
      0 @I1@ INDI
      1 NAME person 1 /Surname/
      1 BIRT
      2 DATE 1 Jan 1850
      2 SOUR @S1@
      3 OBJE
      4 FILE birthcertificate1.jpg
      0 @I2@ INDI
      1 NAME person 2 /Surname/
      1 BIRT
      2 DATE 1 Jan 1840
      2 SOUR @S1@
      3 OBJE
      4 FILE birthcertificate2.jpg
      0 @I3@ INDI
      1 NAME person 3 /Surname/
      1 BIRT
      2 DATE 1 Jan 1830
      2 SOUR @S1@
      3 OBJE
      4 FILE birthcertificate3.jpg
      0 @S1@ SOUR
      1 TITL Birth Certificate

      --John

       
      • Boudewijn Sjouke

        Hi John,

        You wrote: "If you click on the link to the source it will take you to source.php where you should see a link to the image."

        My problem is, that the link to the image DOESN'T show up on the source.php page, while it DOES on the medialist.php page.
        The last version it worked ok with was 2.52.1, which I'm still running for my users, for this reason.

        In my GEDCOM the object is part of the SOUR-record:
        0 @S5@ SOUR
        1 OBJE
        2 FORM jpg
        2 FILE S5-1.jpg
        1 OBJE
        2 FORM jpg
        2 FILE S5-2.jpg
        1 REPO @REPO4@
        1 TITL Geboorteakte Burgerlijke Stand Boudewijn Sjouke 1959

        Boudewijn.

         

Log in to post a comment.