Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document field types in Islandora for users/librarians #1280

Open
mjanowiecki opened this issue Sep 23, 2019 · 9 comments
Open

Document field types in Islandora for users/librarians #1280

mjanowiecki opened this issue Sep 23, 2019 · 9 comments
Labels
Subject: Metadata related to metadata issues. Consider also using the search tag. Type: documentation provides documentation or asks for documentation. Type: enhancement Identifies work on an enhancement to the Islandora codebase

Comments

@mjanowiecki
Copy link
Contributor

When creating or editing fields in Islandora 8 for content types or taxonomies, there are a wide varieties of "Field Types" available for you to select as the basis of your field. There is some information on Drupal about Field Types (https://www.drupal.org/docs/8/api/entity-api/fieldtypes-fieldwidgets-and-fieldformatters), but it is not super helpful for the layperson and does not include all Field Types in Islandora 8. Public documentation on what each Field Type means would be extremely helpful, answering the following types of questions:

  1. Basic definition
  2. How does this field type limit or structure the data entered into that field?
  3. What are the field types' behaviors and any sub-properties?

Here is list (which I think is complete) of Islandora 8 field types to describe:

Authority link
Boolean
Email
Link
Name
Timestamp
User
Comments
Content
Date
EDTF
Geolocation
Media
Taxonomy term
Typed Relation
List (float)
List (integer)
Number (decimal)
Number (float)
Number (integer)
Content
File
Image
Media
Taxonomy term
User
Other…
List (text)
Text (formatted)
Text (formatted, long)
Text (formatted, long, with summary)
Text (plain)
Text (plain, long)

@mjordan
Copy link
Contributor

mjordan commented Oct 3, 2019

External documentation for field types would suffice, but if we want context-sensitive documentation, the Search API Solr module (http://localhost:8000/admin/config/search/search-api/index/default_solr_index/fields) provides an example of how we might document field types at the "Add Field" page itself (http://localhost:8000/admin/structure/types/manage/islandora_object/fields/add-field). Here is a screenshot of the Solr field data type documentation:

solrdatatypes

This is within a collapsable div at the bottom of the page. It's hidden by default but if the user clicks on "Data types", it expands to what you see here.

@mjanowiecki
Copy link
Contributor Author

I think that's a good idea @mjordan. How would we go about implementing this?

@mjordan
Copy link
Contributor

mjordan commented Oct 9, 2019

Not entirely sure without further investigation but something like modifying the view of /admin/structure/types/manage/islandora_object/fields/add-field might do it. Let me poke around to see how far I can get.

@mjordan
Copy link
Contributor

mjordan commented Oct 11, 2019

I've figured out how to add a table to admin/structure/types/manage/islandora_object/fields/add-field. Here's what it looks like, with placeholder text in the right-hand column for now:

fields_descriptions

Any volunteers for some desctiptions?

@mjordan
Copy link
Contributor

mjordan commented Oct 12, 2019

I've created a small module, https://github.com/mjordan/islandora8_issue_1280, to stuff my code into for now since I'm rebuilding my Islandora 8 vagrant. We can decide later if we want to add this to the Islandora module or to keep it in its own separate module.

@mjanowiecki
Copy link
Contributor Author

This looks great! As for writing descriptions, if we don't get individual volunteers, I can see if the Metadata Interest Group would be interested in taking this on.

(I would volunteer myself, but I don't think I know quite enough just yet)

@whikloj
Copy link
Member

whikloj commented Oct 14, 2019

@mjanowiecki if you want to try we can all provide context of that is helpful.

@mjanowiecki
Copy link
Contributor Author

@whikloj Sure, I'd be up for that!

@mjordan
Copy link
Contributor

mjordan commented Oct 15, 2019

I'll start with "Typed Relation":

A specialized type of taxonomy field that allows users to specify the "type" of the relationship between the Islandora object and the taxonomy terms. For example, if people's names are listed in a taxonomy, a typed relation field using that taxonomy will allow for a person to be a 'creator', 'photographer', or 'editor' of the work described in the object node.

@kstapelfeldt kstapelfeldt added Type: documentation provides documentation or asks for documentation. Type: enhancement Identifies work on an enhancement to the Islandora codebase and removed documentation labels Sep 25, 2021
@eldonquijote eldonquijote added the Subject: Metadata related to metadata issues. Consider also using the search tag. label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Subject: Metadata related to metadata issues. Consider also using the search tag. Type: documentation provides documentation or asks for documentation. Type: enhancement Identifies work on an enhancement to the Islandora codebase
Projects
Development

No branches or pull requests

5 participants