I have some glossary terms with synonyms. E.g. "Domain" and "Area" are defined as synonyms in the context of my glossary.

It would be nice if onomasticon would allow me to define such synonyms/aliases in a special field (e.g. "field_aliases" - unformatted text field, multi-valued) and then search for occurences of both the title and the aliases. Ideally the configuration would allow to define the field name.

Btw, this could also be useful for assuring that specific capitalization combinations are used by onomasticon. E.g. "Crisis Management" and "crisis management" or "Community of Practice" and "community of practice"

Comments

Deno created an issue. See original summary.

Deno’s picture

Title: Please add "ignore capitalization" configuration option » Gossary term synonyms/aliases
Issue summary: View changes
Deno’s picture

Issue summary: View changes
broon’s picture

I am not sure I can follow your idea. Where would that field_aliases be? As part of the taxonomy fields or part of the Onomasticon filter settings?

There is a Synonyms module but it's in alpha for Drupal 8 and I still need to understand how it works. Maybe that can be used by adding a submodule (Onomasticon Synonyms Integration).

broon’s picture

Title: Gossary term synonyms/aliases » Glossary term synonyms/aliases
rattusrattus’s picture

StatusFileSize
new6.06 KB

I actually have a patch that introduces this functionality but is specific to my installation currently though I'm sure it wouldn't take much to generalise it.

broon’s picture

Looking at your patch, the newly introduced function getVariations() is looking for a 'field_glossary_variations' field. That's probably the part that needs to be generalised. If the Synonyms module mentioned above has a public function to retrieve synonyms for a specific term, we could add support for this. I added an issue to their queue to investigate the possibilities.

broon’s picture

Version: 8.x-1.3 » 8.x-1.x-dev

Feature requests always go against the dev version.

rattusrattus’s picture

Any update on this Paul?

broon’s picture

I added an issue to the Synonyms module issue queue, see #3075996: Service to get all synonyms for a term (to be used by other modules) - but there has been no reaction, yet. I am currently finalising a website relaunch and had not much time to look into that myself.

broon’s picture

Status: Active » Closed (won't fix)

As there hasn't been any response on the linked issue, I think this can't be fixed now. I'll close it for now, if there is any news on Synonyms module, please re-open if applicable.

devad’s picture

Status: Closed (won't fix) » Active

  • broon committed cb5eed66 on 2.x authored by rattusrattus
    Issue #3074560 by rattusrattus, broon, Deno, devad: Glossary term...
broon’s picture

Version: 8.x-1.x-dev » 2.x-dev
Status: Active » Fixed

Took a while, but it works now using the Synonyms module and the recommend installation procedure.

broon’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.