JobMetadataController

JobMetadataController

The JobMetadataController presents the page that allows users to define a bag's tag metadata. This page appears only for Jobs that require bagging and include a BagItProfile.

Constructor

new JobMetadataController(params)

Parameters:
Name Type Description
params URLSearchParams

The URL search params parsed from the URL used to reach this page. This should contain at least the Job Id.

Properties
Name Type Description
id string

The id of the Job being worked on. Job.id is a UUID string.

Source:

Methods

_attachTagFileAutocomplete()

This attaches a jQuery autocomplete handler to the tag file name input in the modal dialog where users can create new job-level tags.

Source:

_attachToggleHiddenTags()

This attaches an event to the button that allows users to show and hide form fields for tags that have been pre-populated with default values. The UI hides these by default so they don't overwhelm the user.

Source:

_parseMetadataForm()

This parses user input from the tags form and copies the values into the Job's local copy of the BagItProfile.

Source:

_validateMetadataForm()

This calls _parseMetadataForm to parse user-entered data and copy it into the Job. It also validates the data in each tag field.

Source:

back()

This handles the page's Back button click, saving changes to tag values without validating them, and sending the user back to the packaging page.

Source:

newTag()

This presents a modal dialog in which a user can define a new tag. Tags created through this dialog apply only to the current job.

Source:

next()

This handles the click on the Next button, saving changes to the tag values and validating those changes. If the data is valid, the user moves on to the upload page.

Source:

postRenderCallback()

This calls functions to attach event handlers to elements that have just been rendered on the page.

Source:

saveNewTag()

This saves the new tag that the user created in the modal dialog.

Source:

show()

This displays a form in which a user can edit the tags and tag values for the BagIt bag that this Job will produce.

Source: