Story: Create New Work

Description

As a cataloger, I need the ability to create a new Work from scratch (versus deriving a new Work from an existing one).

In scope

  • Invoking a new work from landing page

  • Invoking a new work from search results

  • Displaying new blank workform for Work entity in edit form

Out of scope

  • creating a new instance

  • business rules for saving a new work

  • deriving a new work from an existing work

This card builds on the development started in https://folio-org.atlassian.net/browse/UILD-218 so that a cataloger can create a new Work from scratch, leveraging the existing edit screen for Work entity.

Unlike Instance, the cataloger will not have the ability to initiate cataloging a new Work from within edit mode. Rather, a new ‘Actions’ drop down menu - displayed in the MARVA landing page - provides the cataloger with the option for creating a new work.

Initially, the Actions menu will display only one option ('New resource'), but additional as functionality is layered into the application, additional options will be integrated into the Actions menu.

The Actions menu will be displayed and available when the cataloger opens the MARVA editor, conducts a search, and/or inspects results in a search result set.

The Actions menu will not be displayed or available from any of the edit screens. The cataloger will have to exit edit mode (e.g. via the “Save & close” or “Cancel” buttons) first in order to access the Actions drop down.

When ‘New resource’ is selected from the Actions drop down menu, a new blank workform will be displayed in edit mode for Work entity. The workform will replicate the functionality developed for editing an existing Work (e.g. default components, repeatable components, lookup fields, etc.) except that all of the components of the entity will be empty but otherwise editable.

The edit mode will continue act as a section for the Instance entity, even when there are no instances associated with a Work. The ability to create a New Instance for an existing Work will be addressed separately as the focus for this card is on the Work entity.

There will be business rules associated with pairing Works with Instances.

  • Every Work must have at least one Instance and

  • All Instances must be associated with a single Work

However, these business rules are outside the scope of the card and will be addressed separately.

1. Base case

GIVEN a cataloger will be working in the MARVA application

WHEN the cataloger invokes MARVA

THEN the home screen / landing page is displayed

AND the existing / base functions are displayed (per UILD-xxx)

AND the Actions drop down menu is displayed

AND the Actions drop down menu shows ‘New resource’ as an option

2. New resource

GIVEN scenario 1

WHEN the cataloger selects ‘New resource’ from the Action drop down menu

THEN the edit mode for the Work entity is invoked

AND a new workform for the Monograph Work entity is displayed

AND the workform values are all empty

AND the section for Instance entity is displayed but empty

AND the ‘Cancel’ ‘Save & keep’ and ‘Save & close’ buttons are active

AND the ‘Actions’ drop down menu is not displayed

3. Edit

GIVEN scenario 2

WHEN the cataloger selects any of the components of the Work entity

THEN any edits made to the workform are displayed

4. Save & keep

GIVEN scenario 3

WHEN the cataloger selects Save & keep

THEN the edits made to the workform are saved locally in the browser

5. Save & close

GIVEN scenario 3

WHEN the cataloger selects Save & close

THEN the edits made to the work entity are saved to the database

AND the cataloger returns to the landing page / home page of MARVA

NOTE: We will need to discuss whether/how to fulfill this requirement in the short-term, understanding that business rules will eventually require the cataloger to add at least one Instance to a Work as a condition for saving the new entry to the database.

6. Cancel

GIVEN scenario 3

WHEN the cataloger selects Cancel

THEN the edits made to the Work entity are not saved

AND the cataloger returns to the landing page / home page of MARVA

 

NOTE: business rules will be addressed in a separate card. For now, it is not necessary to enforce saving rules that would otherwise control when data can and cannot be saved to the database.

 

Environment

None

Potential Workaround

None

Attachments

7
  • 01 Apr 2024, 11:48 AM
  • 01 Apr 2024, 11:48 AM
  • 01 Apr 2024, 11:48 AM
  • 25 Mar 2024, 02:40 PM
  • 25 Mar 2024, 02:40 PM
  • 12 Mar 2024, 11:42 PM
  • 12 Mar 2024, 11:42 PM

Checklist

hide

Activity

Show:

Tetiana Kovalchuk April 1, 2024 at 1:52 PM

Tested on missinglinks env.

Build version: #231

Test cases and evidences attached.

AC4 ignored, AC5 blocked.

Related issue created https://folio-org.atlassian.net/browse/UILD-248

Tetiana Kovalchuk April 1, 2024 at 12:03 PM
Edited

, so AC4 is not needed for now according to your reply. Am I right?

Tetiana Kovalchuk March 29, 2024 at 12:39 PM
Edited

Well - we will need to have the warning message to alert the user that work will be lost if they exit now. So for now, the cataloging that hasn’t been saved to the back end should be pitched. The only way the work is saved is when the cataloger deliberately commits it to the back end with ‘Save & close’

 

, shall we keep data locally for the following scenario:

User selects to create New Work → then Enter data and Save it locally with ‘Keep and Save’

Then Close the record → Select to create a New Work

Currently: the local data is displayed

Is it expected or data shall be cleared out if the user intentionally selects to create a New Work?

Tetiana Kovalchuk March 29, 2024 at 12:23 PM

Save locally to be working for the following fields:

Creator of Work

Title Information

(Geographic) Coverage of the Content

Intended Audience

Other contributors

Notes about the Work

Contents

Subject of the Work

Summary

Language

Tetiana Kovalchuk March 29, 2024 at 11:12 AM

AC4 does not work.

Done

Details

Assignee

Reporter

Labels

Priority

Story Points

Sprint

Development Team

Citation

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 27, 2024 at 9:30 PM
Updated March 4, 2025 at 7:22 PM
Resolved April 1, 2024 at 2:35 PM
TestRail: Cases
TestRail: Runs

Flag notifications