CDRH / earlywashingtondc

OSCYS Rails site
http://earlywashingtondc.org
2 stars 0 forks source link

subSubCategory for Exhibits #181

Open kacinash opened 8 years ago

kacinash commented 8 years ago

I may add a keyword to the Exhibits that specifies what kind of document the exhibit is.

Figure out if it is possible to add sub lists to the Document Type dropdown. Or, if that isn't possible, can the dropdown contain both "subCategory" and another specified field?

Add TWO subcategories?

<keywords scheme="original" n="subcategory">
<term>Exhibit</term>
<term>Will</term>
</keywords>
jduss4 commented 5 years ago

If subsubcategory is something needed only for exhibits, I wonder if we could create a specific field? exhibitType or something like that? Would it ever be multivalued or would there only ever be one type of exhibit per document?

jduss4 commented 5 years ago

Also, I don't know if you would want this type of thing to be a dropdown on the cases page, or just display on a document's specific page?

kacinash commented 5 years ago

I think there would only ever be one type of exhibit per document. If it's not too much trouble, we can add it to the dropdown on the case page.

jduss4 commented 5 years ago

Sounds good, I'll get to work on that!

jduss4 commented 5 years ago

@kacinash do you know which type / subtype I should be grabbing to populate the exhibit field?

<keywords scheme="original" n="subcategory">
<term>Exhibit</term>
</keywords>

<keywords scheme="original" n="type">
<term>Civil</term>
</keywords>

<keywords scheme="original" n="subtype">
<term>Petition for Freedom</term>
</keywords>

I'm setting it up so that it will only be associated with a document if the subcategory == Exhibit

jduss4 commented 5 years ago

Update:

Kaci will need to add this information to the TEI before it can be pulled. We talked about something like this (feel free to change exhibit_category to anything, really):

<keywords scheme="original" n="exhibit_category">
<term>Will</term>
</keywords>

Kaci would also like to have all the document types (and exhibit types) displaying in a single dropdown. I recommend this be a single field, rather than trying to combine fields into a dropdown. With that in mind, instead of subcategory and exhibit_type_s we should perhaps have some field like document_type_ss so that we can put all the values for each document into the same place, and then we can pull that field into the dropdown and search on the rails site.

Holding off working on this until the exhibit types are added to the TEI, but not time sensitive!