linkedpipes / dcat-ap-forms

Forms application for filling out DCAT-AP v2.0.0 compatible metadata
MIT License
2 stars 2 forks source link

Indicate editing mode and allow users to unlink from the original dataset #64

Closed jakubklimek closed 4 years ago

jakubklimek commented 5 years ago

Currently, there is no indication that the form is in "edit" mode, i.e. it knows the IRI of the edited dataset - this may be confusing.

In addition, when we have that indication, we should allow users to unlink from the original dataset, basically creating a copy.

skodapetr commented 5 years ago

IMHO. these should be two separate issues.

skodapetr commented 4 years ago

Any suggestions of how the hint should be implemented?

jakubklimek commented 4 years ago

There is also another use case for this (a reverse use case) - when used for local catalogs, we need to allow people to specify the new IRI of the dataset so that they do not have to edit the JSON-LD file manually.

I see three options the user can choose from (e.g. in Summary):

  1. Create new dataset in NKOD => default when Dataset IRI is not received from DAV. When switched to from "Edit dataset in NKOD", it does not include the dataset IRI in the downloaded file
  2. Edit dataset in NKOD => keep the Dataset IRI from DAV, default when IRI from DAV received
  3. Create dataset in LKOD => allows to specify Dataset IRI manually (and displays some helpful message).

Implementation

The download button will say:

  1. Stáhnout nový záznam pro NKOD / Download new NODC record
  2. Stáhnout editační záznam pro NKOD / Download editing NODC record
  3. Stáhnout nový záznam pro LKOD / Download new LODC record

Next to it (to the right) there should be a settings icon button opening a dialog. Its tooltip: Změnit typ záznamu / Change record type

In the dialog (title: Změnit typ záznamu / Change record type), there will be a select with the three options. When option 3 is selected, dataset IRI input will be visible.

Tip text: "Uveďtě HTTPS IRI datové sady dle pravidel vašeho lokálního katalogu"/"Enter HTTPS IRI of the dataset according to rules of your local catalog"

skodapetr commented 4 years ago

I believe that the second label should be "Sáhnout editační záznam" as it can be used for NKOD as well as LKOD.

skodapetr commented 4 years ago

When coming to an empty form it is not clear whether user want's to create a new NKOD or LCOD dataset. Using NKOD by default is better for NKDO users, but can confusing for LCOD users who may think they got the to wrong page.

jakubklimek commented 4 years ago

I believe that the second label should be "Sáhnout editační záznam" as it can be used for NKOD as well as LKOD.

Not exactly. The edit record works only in NKOD. There is no such thing as edit for LKOD (as LKOD now is simply a list of records - there are no actions such as edit or delete).

LKOD users will know what to expect, so that is fine

skodapetr commented 4 years ago

What is not working?

jakubklimek commented 4 years ago

It is working OK. We are just discussing here.