Menu

Sources not shown

Help
Anonymous
2003-09-12
2003-10-18
  • Anonymous

    Anonymous - 2003-09-12

    First let me say: Great job, excellent programm.

    Yesterday I installed the 2.13 Version - no real problems appeared.

    But still there is one.

    All the fields for Sources that should be shown are empty. Inside the 'sourcelist.php' i could manualy fix the bug - but i do not find a solution to make Sources visible inside the 'individual.php'. The table is written inside the output-page - but the table is empty?!

    Here is the URL showing a typical page:
    http://www.ist-systems.de/ahnen/individual.php?pid=I009610

    Any ideas around?

    Thanks in advance

    Richard
    Hamburg/Germany
     

     
    • John Finlay

      John Finlay - 2003-09-15

      Sorry, you have changed the individual.php page so much that I don't know what it going on.

      What bug did you find in the sourcelist.php page?  I wasn't aware of one there and would like to know so that I can make sure it is fixed.

      The sources are printed under the Notes Sources and Media tab in the normal individual page if they are level 1 sources.  These sources are printed by the print_main_sources function in the functions.php file.

      The higher level sources, (sources for a birth or death) are listed directly under the fact and are printed by the print_fact_sources() function in the functions.php file.

      --John

       
      • Anonymous

        Anonymous - 2003-09-15

        Thanks for the answer.

        btw: not i changed the source.... :-(
        Now the "help-from-a-good-friend" is replaced and original individual.php is back.

        >>The sources are printed under the Notes Sources and Media tab in the normal individual page if they are level 1 sources. <<

        That exaktly is my problem: they ought to, but they dont.

        Please have a look at this individual.php:

        http://www.ist-systems.de/ahnen/individual.php?pid=I008475&GEDCOM=buchsehrbundt.ged

        The source i am here missing (should be shown under the 'Notes, Sources and Media' Tab) is this one:

        http://www.ist-systems.de/ahnen/individual.php?pid=I008475&GEDCOM=buchsehrbundt.ged

        One can find the Source-Code here in the Gedcom-File: 2 SOUR @D004113@

        The table (to show the layer) is printed - but empty.

        Where is my mistake please?

        Regards

        Richard
        Hamburg

         
        • Anonymous

          Anonymous - 2003-09-15

          Thanks a lot - now i've got a solution.

          Adding the code-line did not change anything.
          So i changed my strategy and opened the GEDCOM file in a TextEditor and changed all the
          SOUR\n 1 NOTE   to SOUR\n 1 TITL

          Maybe all GEDCOM specialists gonne kill me now - I never saw any GEDCOM before - but now I have all the information i was looking for inside the printed  .php file ;-)) - even if now all sources may have the same level (as far as i understood your helpfull information).

          Anyway: Problem solved, thanks a lot - and again: great programm, great help!

          Kind regards

          Richard
          Hamburg

           
    • John Finlay

      John Finlay - 2003-09-15

      I can see the problem now.  Your sources do not have any Titles.

      Your Source records look like this:
      0 @D003421@ SOUR
      1 NOTE Document: Ober-Olm, katholisch, Taufbuch, 1687.10.17 (LDS)
      1 NOTE Taufeintrag für Andreas Serbunt. Taufpate: Andreas Öligs.

      But they should look like this:
      0 @D003421@ SOUR
      1 ABBR Ober-Olm, katholisch, Taufbuch, 1687.10.17
      1 TITL Document: Ober-Olm, katholisch, Taufbuch, 1687.10.17 (LDS)
      1 NOTE Taufeintrag für Andreas Serbunt. Taufpate: Andreas Öligs.

      Or like this:
      0 @D003421@ SOUR
      1 TITL Document: Ober-Olm, katholisch, Taufbuch, 1687.10.17 (LDS)
      1 NOTE Taufeintrag für Andreas Serbunt. Taufpate: Andreas Öligs.

      I never anticipated a source without a title.  I can tell you how to fix this to show the ID as you have done on the source list page.  Edit the file functions.php and add the following line before line 343:
      if (empty($row[0])) return $sid;

      --John

       
      • WYK

        WYK - 2003-10-14

        My sources are not showing showing either because the sources do not have titles. 

        I'm on a Mac so the line count is a little different.  Can you please post the surrounding code where I need to add the line "if (empty($row[0])) return $sid;"

        Here are my sources
        0 @S1@ SOUR
        1 TYPE Book
        1 OWNR  Kan
        1 TITL gapou

        0 @S2@ SOUR
        1 TYPE Interview
        1 INTE Kwan, Chung Tim

         
    • Mark Hattam

      Mark Hattam - 2003-10-18

      Mine are different again, but at least do have TITL ... for instance ...

      0 @SR2@ SOUR
      1 TITL UK Birth Certificate
      1 AUTH General Register Office
      1 PUBL General Register Office
      1 REPO @R1@
      1 DATA
      2 EVEN Births

       

Log in to post a comment.