sarapis / orservices

ORServices is an open source, smartphone-friendly directory application that enables you to collect, verify, organize and share information about social services in your community with your stakeholders, beneficiaries, partner organizations and more.
https://sarapis.org/human-services/orservices/
22 stars 15 forks source link

Taxonomy Term not importing #137

Open royappa opened 6 months ago

royappa commented 6 months ago

In the sample HSDS3 Airtable provided, I added the existing taxonomy term "Hospital Treatment" to my Service and then did an Import.

Expected behavior: a. The "Types of Services" dropdown should show "Hospital Treatment" Example, the dropdown in this page populates with the taxonomy terms: https://resources.mutualaid.nyc/services b. The Service record should show "Service Category: [Hospital Treatment]" on the /services page Example, the service "Affordable Housing Resources and Tenant Advocacy" should show the "[Housing]" tag with some color, and also in the service page itself, like this: https://resources.mutualaid.nyc/services/916122105275207

Actual behavior: The taxonomy term "Hospital Treatment" is not appearing in the "Types of Services" or in the service description as a colored tag.

d9it commented 6 months ago

"Hospital Treatment" is not displayed under "Types of Services" because it is not a parent term. Only parent terms are shown under "Types of Services".

royappa commented 6 months ago

OK, but the "parent" and "grandparent" terms are not shown either. "Hospital Treatment" has parent term of "Prevent & Treat" But the "Types of Services" does not show that parent term (or anything - the dropdown is completely empty).

image image

royappa commented 6 months ago

Also "Prevent & Treat" has no parent, I don't know if that makes a difference or not.

image

d9it commented 6 months ago

Not now, just the main parent.

royappa commented 6 months ago

I don't understand, can you tell me how to make anything show in the "Types of Services" dropdown on the Services page?

d9it commented 6 months ago

This means that only records without a parent are considered the main parent, and we display only that record. "Prevent & Treat" has no parent record, so it will be on the "Types of Services" dropdown, while others are not. Understand?