From: Alex R. <sh...@al...> - 2004-05-17 18:09:52
|
Adam, Great that you nailed it down! I'll take a look at this tonight. Alex On Mon, 2004-05-17 at 12:45, Adam Stein wrote: > This is in Gramps v1.0.3. >=20 > Before I had a problem trying to find the source references I gave to som= e=20 > gallery images. I think I pinned it down. You can add attributes. I ad= ded the=20 > source reference to an added attribute. When saved, the XML is incorrect= ,=20 > leading to the source reference not being accessed in Gramps. In fact, b= elow is=20 > what appears to be valid Gramps XML with an added attribute with the sour= ce=20 > reference layed out the way I think it's suppose to be and Gramps doesn't= see=20 > it. Must be how Gramps deals with added attributes. When the XML data i= s read=20 > in and saved again, the source reference will now be in the wrong place. >=20 > These new attributes aren't saved, so everytime I start Gramps and add th= e=20 > attribute to a new media object, it's new to Gramps all over again. An=20 > enhancement request would be to save new attributes between sessions. Th= is=20 > would be useful since they would appear on the menus instead of me having= to add=20 > it each time. >=20 > ----XML-Sample----XML-Sample----XML-Sample----XML-Sample----XML-Sample---= - > <?xml version=3D"1.0" encoding=3D"UTF-8"?> > <!DOCTYPE database SYSTEM "gramps.dtd" []> > <database xmlns=3D"http://gramps.sourceforge.net/database"> > <header> > <created date=3D"17 MAY 2004" version=3D"1.0.3-1" people=3D"1" famili= es=3D"0"=20 > sources=3D"1" places=3D"0"/> > <researcher> > <resname>Adam Stein</resname> > <resaddr>xxx</resaddr> > <rescity>xxx</rescity> > <resstate>xxx</resstate> > <rescountry>xxx</rescountry> > <respostal>xxx</respostal> > <resphone>xxx</resphone> > <resemail>ad...@sc...</resemail> > </researcher> > </header> > <people> > <person id=3D"I0"> > <gender>M</gender> > <name type=3D"Birth Name"> > <first>Adam</first> > <last>Stein</last> > </name> > </person> > </people> > <sources> > <source id=3D"S0"> > <stitle>Made Up Reference</stitle> > <sauthor>Adam Stein</sauthor> > </source> > </sources> > <objects> > <object id=3D"O1" src=3D"O1.jpg" mime=3D"image/jpeg" description=3D"O= 0"> > <attribute type=3D"Ship" value=3D"Added the 'Ship' attribute"> > <sourceref ref=3D"S0"> > <spage>No particular page number</spage> > </sourceref> > </attribute> > </object> > </objects> > </database> >=20 > ----XML-Sample----XML-Sample----XML-Sample----XML-Sample----XML-Sample---= - --=20 Alexander Roitman http://ebner.neuroscience.umn.edu/people/alex.html Dept. of Neuroscience, Lions Research Building 2001 6th Street SE, Minneapolis, MN 55455 Tel (612) 625-7566 FAX (612) 626-9201 |