Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: BCE dates #10843

Open
apmireia opened this issue Sep 13, 2024 · 2 comments
Open

Feature Request: BCE dates #10843

apmireia opened this issue Sep 13, 2024 · 2 comments
Labels
Type: Feature a feature request

Comments

@apmireia
Copy link

Overview of the Feature Request
As mentioned in this discussion (https://groups.google.com/g/dataverse-community/c/Bj_dbHTeu2o/m/fFyyWfAsBAAJ), it would be interesting if Dataverse could support BCE (Before Common Era) dates. This functionality would greatly benefit datasets related to fields such as ancient history or archaeology.

image

What kind of user is the feature intended for?
API User, Curator, Depositor

What inspired the request?
We have several research centers that work with archaeological data.

What existing behavior do you want changed?
Allowing negative dates to be added, particularly in the 'time period covered' field, would be very useful.

@pdurbin
Copy link
Member

pdurbin commented Oct 17, 2024

@vera
Copy link
Contributor

vera commented Oct 18, 2024

To summarize the discussion in the PR linked by Phil:

Dataverse currently already supports the entry of dates in the format "yyyy BC" (it's just not documented):

if (!valid && value.getValue().contains("BC")) {
testString = (testString.substring(0, testString.indexOf("BC"))).trim();
if (StringUtils.isNumeric(testString)) {
valid = true;
}
}

However, search capabilities for date fields in Dataverse are currently limited, because they are treated as text strings rather than dates.

Since the Solr search index underlying Dataverse supports BC dates (using the ISO 8601 format: 1 BC = +0000, 2 BC = -0001, and so on), I think we could add better search capabilities for BC dates relatively easily after #10887 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature a feature request
Projects
None yet
Development

No branches or pull requests

3 participants