Difference between revisions of "Adding an Auto-Completer to a non-workflow page"

From EPrints Documentation
Jump to: navigation, search
Line 11: Line 11:
 
An unordered list of records to display, with each "fill-in" item part of a sub-list:
 
An unordered list of records to display, with each "fill-in" item part of a sub-list:
  
 +
<code>
 
   <ul class="journals">
 
   <ul class="journals">
 
   <li class="">University of Leeds<br />
 
   <li class="">University of Leeds<br />
Line 29: Line 30:
 
   </li>
 
   </li>
 
   </ul>
 
   </ul>
 
+
</code>
  
 
foo
 
foo

Revision as of 09:18, 12 April 2010

Adding an Auto-Completer to a non-workflow page

In a workflow, adding an auto-completer is relatively sinple:

  <field ref="publication"
         input_lookup_url="{$config{perl_url}}/get_journals"/>

.... and the EPrints application takes care of all the "stuff" on the main page.

The return format is fairly simple too: An unordered list of records to display, with each "fill-in" item part of a sub-list:

foo