[OPEN-ILS-DEV] A command to order the MARC XML

Dan Scott dan at coffeecode.net
Thu Dec 1 16:45:53 EST 2011


On Thu, Dec 01, 2011 at 04:42:00PM -0500, Whalen, Liam wrote:
> > -----Original Message-----
> > From: open-ils-dev-bounces at list.georgialibraries.org 
> > [mailto:open-ils-dev-bounces at list.georgialibraries.org] On 
> > Behalf Of Dan Scott
> > Sent: December 1, 2011 16:15
> > To: Evergreen Development Discussion List
> > Subject: Re: [OPEN-ILS-DEV] A command to order the MARC XML
> > 
> > Hi Liam:
> > 
> > On Thu, Dec 01, 2011 at 03:53:46PM -0500, Whalen, Liam wrote:
> > > What I'm interested in doing is adding some 035 tags to some of our 
> > > MARC records via SQL, but determining where to place the 035 in the 
> > > MARC XML with SQL is not easy.  So, I was hoping I could 
> > just append a 
> > > <datafield> tag at the end of the last <datafield> tag and 
> > then have a 
> > > PostgreSQL function re-order the MARC XML for me.  Is that possible?
> > 
> > 
> > See maintain_control_numbers() for an example of a 
> > MARC::File::XML pl/perlu function currently in use.
> 
> I'm not sure where I should look to find maintain_control_numbers().  Is
> it in a specific schema?

Yep, you can find it defined in
Open-ILS/src/sql/Pg/002.functions.config.sql (it might be in either the
public or evergreen schema depending on your Evergreen version).


More information about the Open-ils-dev mailing list