Re: [dspace-tech] DSpace OAI Crosswalk
Claudia, Thank you for pointing this out to me. I had not studied the xoai.xml file. I think the filter that I need might already exist. https://github.com/DSpace/DSpace/blob/master/dspace/config/crosswalks/oai/xoai.xml#L285-L289 Terry On Mon, Sep 4, 2017 at 12:19 AM Claudia Jürgen < claudia.juer...@tu-dortmund.de> wrote: > Hello Terry, > > you can achieve this by a condition in an xoai filter. > > Hope this helps > > Claudia Jürgen > > > > Am 01.09.2017 um 23:09 schrieb Terry Brady: > > I am attempting to replace a custom extract process with a new OAI > > crosswalk. > > > > This crosswalk should only output records with a specific dc.type field. > > > > Unfortunately, my extract process fails if I attempt to skip a specific > > record. Note that in the following code, I am generating an empty > document > > with a root tag to work around this issue. > > > > If you are familiar with this part of the system, could you offer any > > advice? > > > > Thanks, Terry > > > > > > select="doc:metadata/doc:element[@name='dc']/doc:element[@name='type']//doc:field[@name='value']/text()"/> > > > > > > > > .. this is a record that I want to ouput > > > > > > > > > > > > > > > > > > > > -- > Claudia Juergen > Eldorado > > Technische Universität Dortmund > Universitätsbibliothek > Vogelpothsweg 76 > 44227 Dortmund > > Tel.: +49 231-755 40 43 <+49%20231%207554043> > Fax: +49 231-755 40 32 <+49%20231%207554032> > claudia.juer...@tu-dortmund.de > www.ub.tu-dortmund.de > > Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie > ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für > diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender > und vernichten Sie diese Mail. Vielen Dank. > Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen > ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher > Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines > solchen Schriftstücks per Telefax erfolgen. > > Important note: The information included in this e-mail is confidential. > It is solely intended for the recipient. If you are not the intended > recipient of this e-mail please contact the sender and delete this message. > Thank you. Without prejudice of e-mail correspondence, our statements are > only legally binding when they are made in the conventional written form > (with personal signature) or when such documents are sent by fax. > > -- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to dspace-tech+unsubscr...@googlegroups.com. > To post to this group, send email to dspace-tech@googlegroups.com. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. > -- Terry Brady Applications Programmer Analyst Georgetown University Library Information Technology http://georgetown-university-libraries.github.io/ 425-298-5498 <(425)%20298-5498> (Seattle, WA) -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
Re: [dspace-tech] DSpace OAI Crosswalk
Hello Terry, you can achieve this by a condition in an xoai filter. Hope this helps Claudia Jürgen Am 01.09.2017 um 23:09 schrieb Terry Brady: I am attempting to replace a custom extract process with a new OAI crosswalk. This crosswalk should only output records with a specific dc.type field. Unfortunately, my extract process fails if I attempt to skip a specific record. Note that in the following code, I am generating an empty document with a root tag to work around this issue. If you are familiar with this part of the system, could you offer any advice? Thanks, Terry .. this is a record that I want to ouput -- Claudia Juergen Eldorado Technische Universität Dortmund Universitätsbibliothek Vogelpothsweg 76 44227 Dortmund Tel.: +49 231-755 40 43 Fax: +49 231-755 40 32 claudia.juer...@tu-dortmund.de www.ub.tu-dortmund.de Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank. Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen. Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence, our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax. -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
Re: [dspace-tech] DSpace OAI Crosswalk
Hi Terry, you do not say why it doesn't work, but my guess is it's the variable. I don't know what the surrounding code is (perhaps a for-each), but keep in mind that the xslt processor will set the variable only once, not for each pass. Thus, if the first record had a type you want to keep, all records will be kept because the variable has already been evaluated. Just put your "select" directly into the "test". When working with XSLT, it helps to keep in mind that it's not a programming language, but rather a templating language. It's not imperative - if anything, it's functional. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette On Fri, Sep 1, 2017 at 11:09 PM, Terry Bradywrote: > I am attempting to replace a custom extract process with a new OAI > crosswalk. > > This crosswalk should only output records with a specific dc.type field. > > Unfortunately, my extract process fails if I attempt to skip a specific > record. Note that in the following code, I am generating an empty document > with a root tag to work around this issue. > > If you are familiar with this part of the system, could you offer any > advice? > > Thanks, Terry > >select="doc:metadata/doc:element[@name='dc']/doc:element[@name='type']//doc:field[@name='value']/text()"/> > > > >.. this is a record that I want to ouput > > > > > > > > > > -- > Terry Brady > Applications Programmer Analyst > Georgetown University Library Information Technology > https://github.com/terrywbrady/info > 425-298-5498 (Seattle, WA) > > -- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to dspace-tech+unsubscr...@googlegroups.com. > To post to this group, send email to dspace-tech@googlegroups.com. > Visit this group at https://groups.google.com/group/dspace-tech. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.