(bug #2978) fix differents bugs in marc editor
This patch fix two bugs:
* tag duplication
If you try to duplicate an autority tag, the javascript call is kept, and the id is not modified, and fields are not emptied.
* openAuth() call
The id called on duplicated fields is not the great id.
And the different values sent to auth_finder.pl to pre-fetch datas from firstname, etc... send values from all same tags, and not from the selected tag.
(cherry picked from commit
40115eb110c94935e1b3fe6ba3a3c9ea35a473a4)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>