-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from alliomeria/1.3.0
New Webform LoD via CSV DO Element + Custom Webforms Update
- Loading branch information
Showing
11 changed files
with
125 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
--- | ||
title: Archipelago Custom Webform Elements | ||
tags: | ||
- Webform | ||
- Form Mode | ||
- Webform Elements | ||
--- | ||
|
||
# Using Archipelago's 'Webform LoD from CSV attached to an ADO suggest' | ||
|
||
Archipelago's custom webform element 'Webform LoD from CSV attached to an ADO suggest' provides a form element autocomplete labels/urls(values) from a CSV attached to a Digital Object. Using this element affords a way for you to utilize a custom local vocabulary, a subset of labels and URIs from a wider LoD authority source, or an LoD vocabulary that does not have an accessible API or public query service. | ||
|
||
## Step-by-step | ||
|
||
1. To use this element, you need to first have prepared a CSV file containing two columns only: | ||
|
||
- one column for 'label' containing the labels for your vocabulary | ||
- one column for 'uris' containing the corresponding uris for your vocabulary | ||
|
||
2. Create a new Digital Object, and attached the prepared CSV file to the new Digital Object. | ||
|
||
- Be sure to provide a unique label to help you identify this Object in future steps. | ||
- It is recommended that you do not Publish this Object. | ||
|
||
!!! note | ||
|
||
If you are not yet familiar with how to create a Digtial Object, please refer to [this guide](firstobject.md). | ||
|
||
3. Go to `Admin > Structure > Webforms` and select the 'Build' button beside the Default Descriptive Metadata Webform. | ||
|
||
4. Scroll down to the 'Subjects and Other Classifications' page of the Webform and select 'Add Element'. | ||
|
||
![Webform Add Element](images/webformAddElement.png) | ||
|
||
5. In the 'Select an element to add ..' popup that opens, either scroll down to select the 'Composite Element' section or search for the 'Webform LoD from CSV attached to an ADO suggest.' Select 'Add Element'. | ||
|
||
![Webform LoD From CSV Add Element](images/WebformLoDfromCSVaddElement.png) | ||
|
||
6. In the Edit tab that opens for your newly added element, you will need to review the following sections. | ||
|
||
* Element Settings | ||
|
||
- provide a Title for element | ||
- check that the Key generated from the Title you supply is well formed and make changes if needed | ||
- specify the 'Allowed number of values' | ||
|
||
![Webform LoD from CSV General Settings](images/WebformLoDfromCSVgeneralSettings.png) | ||
|
||
* Webform LoD from CSV attached to an ADO suggest settings: | ||
|
||
- It is recommended to keept both 'label' and 'uri' checked as Visible. | ||
- You may also wish to mark both elements as 'Required' | ||
|
||
![Webform LoD from CSV Autocomplete Settings](images/WebformLoDfromCSVautocompleteSettings.png) | ||
|
||
* Autocomplete settings | ||
|
||
- In the 'Choose an ADO' box, begin typing to search for the Digital Object that holds a CSV containing the Vocabulary you want to autocomplete. | ||
- Under 'The CSV column(header name) that will be used for autocompleting', enter 'label' | ||
- Under 'The CSV column(header name) that will be used for the URL value', enter 'uri' | ||
- 'Autocomplete limit' | ||
- determines the maximum number of matches to be displayed | ||
- recommended that you set to '10'. | ||
- 'Autocomplete minimum number of characters' | ||
- determines the minimum number of characters a user must type before a search is performed | ||
- recommended that you set to '3'. | ||
- 'Autocomplete matching operator' | ||
- determines the method used to collect autocomplete suggestions | ||
- recommended to use 'Starts with' | ||
|
||
7. Navigate to the 'Advanced' tab for this Webform element. | ||
|
||
- Open the 'Multiple settings' section | ||
- dDeselect the options to 'Allow users to sort elements' and 'Allow users to add more items' | ||
|
||
![Webform LoD from CSV Advanced Tab](images/WebformLoDfromCSVadvancedTab.png) | ||
|
||
8. Save your new form element settings. Then Save your updated Webform. | ||
|
||
9. Navigate to a Digital Object in your repository that you would like to use this new custom vocabulary element with. Select 'Edit' for that Digital Object and navigate to the 'Subjects and Other Classifications' page of the webform. Begin typing a label found in your prepared CSV associated with the webform element. | ||
|
||
![Webform LoD from CSV in Action](images/WebformLoDfromCSVinAction.png) | ||
|
||
You can now begin using this custom vocab vocabulary element when using the corresponding webform (where you added this element) to Edit and Update your Digital Objects. You may also wish to add this same element to the Default Digital Object Collection/Creative Work Series webform. | ||
|
||
___ | ||
|
||
Thank you for reading! Please contact us on our [Archipelago Commons Google Group](https://groups.google.com/forum/#!forum/archipelago-commons) with any questions or feedback. | ||
|
||
Return to the [Archipelago Documentation main page](index.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters