File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ sub AuthorActiveSearch {
344344 $HTML .= ' <ul id="authors_id_span"></ul>' ." \n " ;
345345 $HTML .= ' </div>' ." \n " ;
346346 $HTML .= ' <input id="author_dummy" class="hidden required" type="checkbox" value="dummy" name="authors" />' ." \n " ;
347- $HTML .= ' <input name="authors_selection_text" type="text" id="authors_selector"><br /> (click or press <i>Enter</i>)' ." \n " ;
347+ $HTML .= ' <input name="authors_selection_text" type="text" id="authors_selector"><br /> (type to search and<br/> click or press <i>Enter</i>)' ." \n " ;
348348
349349 $HTML .= ' <script type="text/javascript">
350350 <!--
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ jQuery().ready(function() {
7070 } ;
7171
7272 function matchSubset_starts ( s , sub ) {
73+ if ( s === undefined || s === null )
74+ return false ;
7375 if ( ! options . matchCase )
7476 s = s . toLowerCase ( ) ;
7577 var i = s . indexOf ( sub ) ;
@@ -178,6 +180,8 @@ jQuery().ready(function() {
178180
179181 /* Match second name with highest priority, first name with lower, and other with lowest */
180182 function parse_first_last_names ( s ) {
183+ if ( s . indexOf ( "," ) == - 1 )
184+ return { first :"" , last :s } ;
181185 first = s . split ( "," ) [ 1 ] ;
182186 last = s . split ( "," ) [ 0 ] ;
183187 /* TODO: is always comma available ? */
You can’t perform that action at this time.
0 commit comments