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

Dataset page: pre-populate "Depositor" and "Deposit Date" #259

Closed
eaquigley opened this issue Jul 9, 2014 · 9 comments
Closed

Dataset page: pre-populate "Depositor" and "Deposit Date" #259

eaquigley opened this issue Jul 9, 2014 · 9 comments
Assignees
Labels
Type: Feature a feature request

Comments

@eaquigley
Copy link
Contributor


Author Name: Philip Durbin (@pdurbin)
Original Redmine Issue: 3673, https://redmine.hmdc.harvard.edu/issues/3673
Original Date: 2014-03-10
Original Assignee: Kevin Condon


Pre-populate "Depositor" and "Deposit Date" but make sure they are still editable.

@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Gustavo Durand (@scolapasta)
Original Date: 2014-03-18T19:58:51Z


Assigning to Eleni so we discuss what we want to do with depositor fields (keep as fields or get from creator data)

@eaquigley eaquigley added this to the Dataverse 4.0: Beta 1 milestone Jul 9, 2014
@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Gustavo Durand (@scolapasta)
Original Date: 2014-04-04T21:27:05Z


Discussed with Eleni:

We do need depositor and deposit date as a metadata field because it is editable. We should pre populate, however, first with the template value (like all fields), but if that is empty with the user's name / current date.

Eleni will add to the TSV file and then pass to Stephen to handle the prepopulate.

@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Eleni Castro (@posixeleni)
Original Date: 2014-04-07T15:20:32Z


Depositor and Deposit date are on the general.tsv in github so ready for Steve to work on.

@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Steve Kraffmiller (@sekmiller)
Original Date: 2014-04-09T20:49:52Z


Added to Create Dataset Command
logged in user first and last name
and date in YYYY-MM-DD format

@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Steve Kraffmiller (@sekmiller)
Original Date: 2014-04-18T13:38:15Z


Based on Thursday's discussions I am now pre-populating Author Name (Last, First), Author affiliation, Email Contact, Depositor - all based on logged in user and deposit date. I changed show on create for Depositor/Date to true for now pending additional logic to display pre-populated fields on create.

@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Steve Kraffmiller (@sekmiller)
Original Date: 2014-04-22T15:39:19Z


Added logic to metadatafragment so that if a datasetfield is not empty it will be displayed on create. (However this will only work if at least one dataset field type within the metadata block is "display on Create". Given the current way that blocks are shown on create, that is a block is shown only if at least one of its datasetfieldtypes is display on create, additional logic needed.

@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Steve Kraffmiller (@sekmiller)
Original Date: 2014-04-22T18:37:35Z


This is working in the page. To see it for now run the following update:

update datasetfieldtype
set displayoncreate = true
where id in (30, 31);

@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Kevin Condon (@kcondon)
Original Date: 2014-04-25T18:37:23Z


Tested on 4/25

The auto generate, prepopulate stuff works. Not sure about show on create. It does not currently show on create and I see the sample script I am to run to see it but that is not the same as it working. So, this last part may or may not be completed, depending on what is required. May need to open a separate ticket to track that piece.

@eaquigley
Copy link
Contributor Author


Original Redmine Comment
Author Name: Kevin Condon (@kcondon)
Original Date: 2014-04-29T22:32:35Z


Closing ticket

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

2 participants