From: Martin S. <mar...@ma...> - 2014-02-27 05:23:20
|
On Tue, Feb 25, 2014 at 09:43:57PM -0800, John Tea wrote: >I have been sloppy in the past and not included a date in every citation. Now >I have thousands of citations which I need to edit manually. >Where I have a number of citations from a single source with a common single >date, e.g. a particular census, is there a way to add that date to all the >citations at one go? Or am I to pay for my past laziness by flogging through >them one by one? >Many thanks for any suggestions. >John If there's no good way to do this inside Gramps, you could do a global search-replace on the XML. How you go about that depends on what tools you use, but with a little work it should be painless and, relatively speaking, quick. Citation entries look like this: <citation handle="_c2c66873f2c5f5ebcd9" change="1338483823" id="C0002"> <dateval val="2009-03-09"/> <confidence>2</confidence> <sourceref hlink="_b0b0c7220e752052b81"/> </citation> So it seems that you're looking to add a dateval to citations without one. And you'll need to match the source to its handle: <source handle="_b0b0c7220e752052b81" change="1293329262" id="S0004"> <stitle>source title</stitle> <sauthor>author name</sauthor> <sabbrev>abbrev</sabbrev> </source> As you're wanting to add information, rather than lose it, I wouldn't go the route of collapsing multiple citations down to one. M. |