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

Change how UI shows compound fields #6589

Closed
kamil386 opened this issue Jan 29, 2020 · 12 comments
Closed

Change how UI shows compound fields #6589

kamil386 opened this issue Jan 29, 2020 · 12 comments
Labels
Component: JSF Involves modifying JSF (Jakarta Server Faces) code, which is being replaced with React. Feature: Metadata Type: Feature a feature request User Role: Guest Anyone using the system, even without an account UX & UI: Design This issue needs input on the design of the UI and from the product owner UX/UI Input Needed Apply to issues involving UX or UI implications that need additional input UX & UI: New React UI Needs enough design work that it should probably go in the new React UI, not JSF

Comments

@kamil386
Copy link

Actually Dataverse compound fields are "flatten" in Dataverse UI:

image

Please add more detailed output of compund fields, at least include title of fields in the UI.

@scolapasta
Copy link
Contributor

@kamil386 It is possible to do this via the displayFormat column of the datasetFieldType table (and therefore in the .tsv file that defines the blocks). See for example "Time Period Covered" that adds "Start:" and "End:".

In specific regard to Geographic Coverage, we did also make a recent change that comma separates these values. This is available in 4.19.

@pdurbin
Copy link
Member

pdurbin commented Jan 29, 2020

In specific regard to Geographic Coverage, we did also make a recent change that comma separates these values. This is available in 4.19.

@kamil386 if you're interested in the discussion that took place on this, please see #6345.

@kamil386
Copy link
Author

@scolapasta It's not enough to format it via displayFormat column in TSV, especially for the big schema like DwC where i.e one parent field has 21 subfields, and another has 44

@pdurbin So I will continue the discussion on #6345

@kamil386
Copy link
Author

One note, there is no issue while editing big schema like DwC:

image

But the issue is how it is printed out:

image

Maybe is it worth consider to print in different way, including headers and create some table?

@jggautier
Copy link
Contributor

I agree, that's hard to read.

Just suggesting another idea using the displayFormat column in the TSV. Would it be possible to add a <br> tag at the end of each value so that there's a line break and each subfield would be on its own line?:

1234
Catalog Number: 1234
Record Number: 1234
Recorded by: Kamil
...

@kamil386
Copy link
Author

Excellent idea, simple and straightforward. I'll check now if it's working as expected. I'll also try to add bold to headers. In the meantime I could suggest adding hints on headers which is now not possible via displayFormat.

@kamil386
Copy link
Author

kamil386 commented Jan 31, 2020

Unfortunately, it doesn't work as expected

image

@wfenrich
Copy link

wfenrich commented Jan 31, 2020

Also be careful with labels: currently you will probably get "Occurence Occurence Status" or "Occurence Occurence Remarks" in advanced search and facets.

@jggautier
Copy link
Contributor

jggautier commented Feb 9, 2022

This issue is mainly about how the things people enter in child fields are displayed in the user interface. But @wfenrich's last comment about the display of names of child fields is something that we hope to resolve as part of #8127, which includes writing and using guidelines for naming fields.

And #6573 is also very related.

@jggautier
Copy link
Contributor

jggautier commented May 17, 2022

This issue came up again when using a metadatablock for a specific collection in the Harvard Dataverse Repository.

The "Study Design" field is made up of four child fields, one of which expects a lot of text:

Screen Shot 2022-05-16 at 8 42 53 PM

When the metadata is displayed, it's pretty hard to parse, even when we try to use delimiters that include the name of each child field:

Screen Shot 2022-05-16 at 8 42 32 PM

Luckily, as this "Study Design" field doesn't need to be repeatable, the child fields don't need to be kept together as a compound field, so we're planning to separate the child fields into their own fields (and get rid of the "Study Design" "field"). That way what's entered in those four fields are on their own lines when displayed.

But I think this illustrates that compound fields don't even need 44 or 21 subfields to run into this design problem. It's obvious when a compound field has just one field that uses a large text box and multiple lines of text are entered into it.

@pdurbin
Copy link
Member

pdurbin commented May 15, 2023

For bounding box, I made an issue and PR:

before: what do these field mean?

Screen Shot 2023-05-15 at 10 38 05 AM

after: I know what I'm looking at

Screen Shot 2023-05-15 at 10 55 32 AM

@pdurbin pdurbin added Type: Feature a feature request User Role: Guest Anyone using the system, even without an account UX & UI: New React UI Needs enough design work that it should probably go in the new React UI, not JSF labels Oct 9, 2023
@pdurbin pdurbin added the UX/UI Input Needed Apply to issues involving UX or UI implications that need additional input label Apr 22, 2024
@cmbz
Copy link

cmbz commented Sep 30, 2024

2024/09/30: Closed as duplicate to #9675

@cmbz cmbz closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: JSF Involves modifying JSF (Jakarta Server Faces) code, which is being replaced with React. Feature: Metadata Type: Feature a feature request User Role: Guest Anyone using the system, even without an account UX & UI: Design This issue needs input on the design of the UI and from the product owner UX/UI Input Needed Apply to issues involving UX or UI implications that need additional input UX & UI: New React UI Needs enough design work that it should probably go in the new React UI, not JSF
Projects
Status: Done 🧹
Development

No branches or pull requests

6 participants