Quote:
Originally Posted by kovidgoyal
If you are special casing Unknown, be sure to use _('Unknown') so it works with languages other than english as well.
|
Will do.
Edit: Ignore the question below. As usual, when you think through the question well enough to ask it, the answer often becomes obvious.
If you read this, and can recall, I've got one last minor feature I'd like to add before final cleanup ("final cleanup" is where I try to hide all my ugly hacks before I'm found out).
After merge, I'd like to leave the records involved with the merge operation selected (i.e. highlighted in the interface).
For safe merge, that's easy, since I haven't removed any records and haven't changed the selection/highlighting in the interface. Whatever was highlighted/selected, remains highlighted/selected and there's a visual indication of what records were just processed. If a user wants to convert a safe merge to a normal merge, they can just deselect the first selected record (destination record) and hit delete.
However, I'm having trouble with a normal merge where I'd like to leave the highlighting/selection on the destination record so that the user can view or modify it. Currently, all the rows that were highlighted before merger remain highlighted after merger, and due to the removal of records above the destination record and deletion of merged records, these highlighted rows often have nothing to do with the merge operation.
Prior to merger and deletion of the second and subsequently selected records (source records), I know the book index from the database and the row number in the library_view GUI interface for the destination record. I also have the same information for the source records (which disappear after merge). If the first selected record is the "highest" row in the GUI, then the removal of the lower (source records) doesn't change its row # , but that's often not true. The first selected record might be the bottom record in the view, and removal of the other records above it cause its row # to change.
I can see how to select a record by row #, but is there a function that selects a record in the GUI by its library book id? If not, I'll write one to figure out the row # of the remaining record by comparing row #s of the source and destination records.