To add to what I reported below, DSpace acts even stranger when both the month
and year are 00's (like 2012-00-00), and especially if the date in
metadatavalue is 0000-00-00.
Here are two examples:
#1:
Date in metadatavalue and on long listing: 1948-00-00
Date on short listing :
30-Nov-1947
#2:
Date in metadatavalue and on long listing: 0000-00-00
Date on short listing :
30-Nov- 2 (This one's very strange!)
Sue
Sue Walker-Thornton
(w): (757) 864-2368
(m): (757) 506-9903
From: Thornton, Susan M. (LARC-B702)[LITES]
Sent: Wednesday, November 21, 2012 10:21 AM
To: [email protected]
Cc: Gibbs, Susan A. (LARC-B702); Miller, Susan K. (LARC-B702)
Subject: Bug in display of invalid dates in DSpace version 1.7.1?
To DSpace-Devel list:
I just found what appears to be a bug in the Item short listing display
when a field that is designated as (date) in a "webui.itemdisplay.******"
configuration parameter in the dspace config file, displays on the Item short
listing. The date value displays as one thing on the Item short listing, and
another on the long listing.
Here's what we're seeing:
The date (although it's really an invalid date) in the metadatavalue.text_value
column is: 1981-10-00.
On the long listing, it displays as: 1981-10-00.
On the short listing, it displays as: 30-SEP-1981.
Here's how our short listing is configured in the dspace.cfg file:
webui.itemdisplay.coreaero = dc.identifier.bitstreamUri(link), \
dc.identifier.accessionNumber, \
dc.title.*, \
dc.identifier.titleControlKey, \
dc.contributor.author, \
dc.contributor.corpAuthor, \
dc.date.published(date), \
dc.identifier.reportNumber, \
dc.description.note
I see that maybe since the day is 00, it's backing up one day and displaying
that as the date, but I don't think it should be doing this since it really is
incorrect. If anything, it should probably display as "SEP-1981".
As an aside, when I updated the date on the Item edit screen, I had to clear my
cache before the change was reflected on the Item short listing.
Has anyone else seen this problem?
Thanks,
Sue
Sue Walker-Thornton
Software Developer/Database Administrator
NASA Langley Research Center - LITES Contract
[email protected]<mailto:[email protected]>
(W) 757-864-2368
(M) 757-506-9903
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel