Get term value from user field and set that value to new field
$node-&gt;$term definitely isn't what you want. Taxonomy references are stored by tid, so

$node-&gt;field_book_reference[$node-&gt;language][0]['tid'] = $term[0]['tid'];


should work