Training Video:Autocompletion
Revision as of 15:55, 18 November 2015 by Alan.stiles@open.ac.uk (talk | contribs) (→Video: left https on direct link)
Contents
Introduction
This video shows how to create an autocompletion authority file (data source file) and implement autocompletion against that file. It also discusses how alternative data sources may be implemented for field autocompletion.
What You Will Learn
- How to create a simple authority file for autocompletion
- How to implement a field value lookup against that file in the workflow
- How to create a multiple field value authority file
- How to use one authority file for lookups from multiple fields
- How the autocomplete functionality works behind the scenes
What You Should Already Know
- How to edit EPrints configuration files (e.g. Workflow Configuration)
- Basics of HTML code - ul, li tags and style attributes
Video
The Video can be found at http://www.youtube.com/watch?v=nAX1XsazoTE.
Index
- 00:00 - introduction
- 00:25 - what is autocompletion?
- 01:20 - intro - add simple-file autocomplete to corporate creators field
- 01:38 - create autocompletion file
- 03:02 - add autocompletion to workflow
- 04:28 - check which lookup scripts available via github
- 05:28 - check eprints wiki for calling CGI script with parameter
- 06:30 - add parameters code to workflow
- 07:28 - demonstrate autocompletion working in workflow
- 08:37 - autocompleting multiple fields with an authority file
- 09:45 - describing the authority file
- 12:00 - styling items in authority file
- 13:00 - adding the field values to populate
- 15:12 - single lining the field values
- 15:52 - move values into lookup value line
- 16:40 - check the autocomplete file layout
- 17:05 - edit workflow to include new lookup
- 18:30 - testing the new lookup
- 18:48 - debugging why the lookup is not working
- 20:00 - fixing the lookup file name
- 20:30 - testing again
- 20:42 - completion of other fields works, still some errors
- 21:15 - debugging the publication field issue
- 21:35 - fixing the publication field issue
- 22:01 - final testing
- 22:30 - describing autocompletion from other data sources
- 23:40 - behind the scenes at autocomplete lookup script responses
- 25:15 - reusing the autocomplete file for lookups on other fields
- 26:05 - altering the autocomplete file to match for various fields
- 26:45 - amending the workflow to add autocomplete to other field.
- 28:00 - summary of wiki documentation
The Video
Notes, Errata and Additional Information
Any notes, version information, errata, etc concerned with this video
- EPrints 3.3.14
- Ubuntu 15.04
Test Yourself
- Try creating a new authority file and linking it to a field
- Try creating an authority file for several connected fields and linking it to all those fields
- Try creating an authority file and linking it to a compound field - this should be similar to the previous exercise
- Try creating an autocomplete using a different data source - e.g. simple_sql to lookup previously entered journal details