Hi Dorothea, Thanks, I'll try that; it should work and I can't think of anything else.
Colin > -----Original Message----- > From: Dorothea Salo [mailto:[email protected]] > Sent: Friday, June 26, 2009 09:37 > To: [email protected] > Subject: Re: [Dspace-tech] Advanced search URL > > On Fri, Jun 26, 2009 at 8:20 AM, Colin Prince<[email protected]> > wrote: > > Thanks. I guess I'm asking from a more programmatic point of view. > > > > Where in the metadata (or elsewhere) can the theme find out the > containing community? > > The breadcrumb trail, I fancy. The XPath is a little annoying: > /meta/pageMeta/trail[position() = last() -2] should do it. (The last > <trail> element is for the item. The next-to-last is for the > collection. The second-to-last should be the containing community.) If > you need the handle, then you want /meta/pageMeta/trail[position() = > last() -2]/@target, probably minus the initial "handle/". > > This is... kinda hacky, I admit, but it should work. > > Dorothea > > -- > Dorothea Salo [email protected] > Digital Repository Librarian AIM: mindsatuw > University of Wisconsin > Rm 218, Memorial Library > (608) 262-5493 > > ----------------------------------------------------------------------- > ------- > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

