It looks like you're offline.
Open Library logo
additional options menu

Input template for /type/author

This doc was last edited anonymously March 16, 2009.

plugin upstream
Templates in the website are disabled now. Editing them will not have any effect on the live website.
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
$def with (author, property)

$ name = property.name

$ _t = i18n.get_namespace('/type/edition')

$add_stylesheet("/css/freebase-controls.css?format=raw")
$add_javascript("/static/js/jquery/freebase.suggest.js")
$add_javascript("/js/autocomplete.js?format=raw")

<input onfocus="setup_freebase_suggest(this)" id="name_$name" type="text" name="_name_$name" value="$author.name" style="width: 100%" ac_name="$name" freebase_suggest="true"/>
<input id="key_$name" type="hidden" name="${name}.key" value="$author.key"/>
<input id="saved_name_$name" type="hidden" name="_saved_name_$name" value="$author.name"/>

<div class="fberror" style="display: none;">
    <div>$_t.author_dropdown</div><br/>
    <span id="hideerror"></span>
</div>