Islandora / controlled_access_terms

Drupal module for subject and agents
GNU General Public License v2.0
7 stars 28 forks source link

[BUG] Some EDTF date intervals fail to parse into ISO8601 #129

Open patdunlavey opened 5 days ago

patdunlavey commented 5 days ago

What steps does it take to reproduce the issue?

When does this issue occur?

Any related open or closed issues to this bug report?

patdunlavey commented 5 days ago

Dumb question: why don't we use professional-wiki/edtf's EDTF date parsing and conversion to do this? (We use EDTF\EdtfFactory::newParser() in \Drupal\controlled_access_terms\Plugin\search_api\processor\EDTFYear, but nowhere else that I can see.)

seth-shaw-asu commented 5 days ago
  1. Thanks for reporting the bug; yes, we should fix it.
  2. Not a dumb question at all. The short answer is, most of the module was written before Professional Wiki's. I've wanted to replace chunks of our code with it for some time to reduce our tech-debt, but simply haven't had the time or need to do so yet. PRs to do so are welcome.
patdunlavey commented 5 days ago

I'll see if I can get time to work on a PR. Assign to me?

patdunlavey commented 3 days ago

Thanks Seth. I hope to get some time to work in this in a couple weeks.