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
|
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.
_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.
_parseMetadataForm()
This parses user input from the tags form and copies the values into the Job's local copy of the BagItProfile.
_validateMetadataForm()
This calls _parseMetadataForm to parse user-entered data and copy it into the Job. It also validates the data in each tag field.
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.
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.
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.
postRenderCallback()
This calls functions to attach event handlers to elements that have just been rendered on the page.
saveNewTag()
This saves the new tag that the user created in the modal dialog.
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.