samvera / questioning_authority

Question your authorities
Other
54 stars 30 forks source link

jQueryUI Autocomplete example #177

Closed ConorSheehan1 closed 5 years ago

ConorSheehan1 commented 6 years ago

I know there is already an autocomplete example for sufia, but it uses linked_data endpoints, which require extra config/setup.

This example uses the loc endpoint so all you should need is

bundle add 'qa'
bundle exec rails generate qa:install

then copy the example into a console with jQueryUI loaded, and it should work.

Might be a bit redundant since it's very similar to the sufia 6 example, but I had to write it anyway, so I figured I'd see if it was useful to anyone else.