dont use get/set metadata, they are very ineeficient if all you want to do is change a couple of fields. Use db.new_api.field_for('title', book_id) and db.new_api.field_for('authors') and to change,
db.new_api.set_field('title', {book_id:value})
db.new_api.set_field('authors', {book_id:value})
Then use 'title_sort' and 'author_sort' to work with those fields.
ANd to set the window title use
self.setWindowTitle('whatever')
|