Well, everything seems to be down over there, no mail or even access to the
main web site, http://www.ua.pt/, but looking at a backup I have here, it
seems that I'm just checking the length of the field (all the other //dc:date
beside //dc:date.issued have a full date, if not in mystake -- also don't
have access to our repository http://ria.ua.pt/ to confirm this):
<xsl:for-each select="//dc:date">
<xsl:if test="string-length(.)=4">
<field name="publishDate"> <xsl:value-of select="."/> </field>
<field name="publishDateSort"> <xsl:value-of select="."/>
</field>
</xsl:if>
</xsl:for-each>
If //dc:date[last()] is supported, it's faraway a better solution.
All the best,
Filipe
PS: sorry, missing "before" in "a couple of days BEFORE departing to the
USA for Tech Trifecta".
PPS: using gmail right now.
On Fri, Oct 26, 2012 at 12:33 PM, Filipe MS Bento (UA) <fsb@...> wrote:
> Dear Demian, dear Hugo, good morning!
>
> I'd noticed the same problem with our DSpace harvested records a couple of
> days departing to the USA for Tech Trifecta series of conferences at
> Villanova's and did implement a solution.
>
> Demian: not sure if I tried //dc:date[last()], but I believe it's another
> solution I have.
>
> Unfortunately, I'm without any kind of connection to my computer center
> (not even the "regular" VPN of the University) so I cannot confirm that
> right now, but Hugo, please tell us if //dc:date[last()] works; if not, I
> shall send the solution I came with as soon as I have connectivity.
>
> All the best,
>
> Filipe
>
>
> On Fri, Oct 26, 2012 at 12:22 PM, Demian Katz <demian.katz@...:
>
>> I'm not an XSLT expert by any means, so I may be wrong about the syntax
>> or supported versions, but can you just replace "//dc:date" with
>> "//dc:date[last()]" in the sheet to achieve the desired effect?
>>
>> - Demian
>> ------------------------------
>> *From:* Hugo Agud [hagud@...]
>> *Sent:* Friday, October 26, 2012 7:11 AM
>> *To:* vufind-general@...
>> *Subject:* [VuFind-General] dspace.xsl
>>
>> Dear all
>>
>>
>> We are ingesting data from one dspace and we have one little challenge,
>> the oai record include 4 diferent dc:date and we are only insterested in
>> one of them.
>>
>> Our first ide is to call the dspace admin and suggest them to change
>> the field mapping of the right date to move from dc.date to "dc.date2" and
>> change the dspace.xsl, but I was wondering if anybody has any idea about
>> how to configure dspace.xsl to take the info from the las dc.date field
>> instead of the first one?
>>
>> Kindest Regards
>> Hugo Agud
>>
>> --
>>
>> *Hugo Agud - Orex Digital *
>>
>> *www.orex.es*
>>
>> *
>> *
>>
>> Director
>>
>> Avenida Sarriá 29 · 08029 Barcelona <http://twitter.com/OrexDigital> :<http://orexsl.blogspot.com>hugoaguda - Tel: 93
>> 539 40 70 Fax: 93 539 33 30 hagud@... · http://www.orex.es/
>>
>>
>>
>> No imprima este mensaje a no ser que sea necesario. Una tonelada de papel
>> implica la tala de 15 árboles y el consumo de 250.000 litros de agua.
>>
>>
>>
>> Aviso de confidencialidad
>> Este mensaje contiene información que puede ser CONFIDENCIAL y/o de USO
>> RESTRINGIDO. Si usted no es el receptor deseado del mensaje (ni
>> está autorizado a recibirlo por el remitente), no está autorizado a
>> copiar, reenviar o divulgar el mensaje o su contenido. Si ha recibido este
>> mensaje
>> por error, por favor, notifíquenoslo inmediatamente y bórrelo de su
>> sistema.
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> _______________________________________________
>> VuFind-General mailing list
>> VuFind-General@...
>> https://lists.sourceforge.net/lists/listinfo/vufind-general
>>
>>
>
|