Whenever I enter in a new abbreviation to the list, I receive the following error:

"Cannot add abbreviation. USA contains invalid characters." (where USA = any combination of letters to be referenced)

I am following the instructions by adding 'USA | United States of America' and have tried many different abbreivations. Any ideas?

Thanks.

Bob

Comments

erykmynn’s picture

'USA | United States of America'

The problem is the space *after USA. Also it will be writing the space before United States.

Currently it should be 'USA|United States of America'

Not a bug per-se but needs to be addressed!
Now that leaves us with a couple of options....

1)
We could change the code to strip out white space at the beginning and ends. My first insticnt tells me this could be unpredictable but I can't thikn of a case where it would screw things up.
2)
We could update the examples and instructions to clearly read like this: 'USA|United States of America'
3)
Could do both just to be super-sure.

what do you think, bob?

Bob Moyce’s picture

That would explain why I was able to get it to work previously- I must have forgotten about not adding the space. Thanks.

I'm assuming that the module needs to have the | character for a specific reason, right? I think it would be easier if when new entries to the list would have two input boxes: one for the abbreviation and one for the full text (similar to the way it is when you edit individual entries). Maybe leave the current configuration as it is to allow people to add in multiple entries in bulk with the white space stripped out automatically.

Thanks.

Bob

Bob Moyce’s picture

Here's another issue that involves abbreviations being blocked due to invalid characters. We have a few committees and programs that like to use special (or in this case, invalid) characters in their names (such as -, /, ~). Is it possible to override these to allow for these types of special characters to be used?

Thanks.

Bob

erykmynn’s picture

Status: Active » Fixed

Fixed as of Commit #290464.

Module now trims whitespace if necessary upon import. Help text is more clear, with examples.

Also added support for . / - ~ in abbreviations.

I am sure there are some other characters people might use in abbreviations. If you post some suggestions I will include them here, but if you think Ampersands are needed, that should be a whole new feature request, as the encoding could add some trickery to the filter execution

Status: Fixed » Closed (fixed)

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