Bug 9282: improve auto-completion for authority record finder
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Thu, 13 Dec 2012 13:38:11 +0000 (14:38 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 10 Oct 2013 22:23:09 +0000 (22:23 +0000)
commit95c7bb4adf94bf7a08f9193988fde6d53ac1983a
tree7210badc3c80f2b40b4c2b29a3e0b7947c778800
parentaa86e7eb7526b7f4a4ab5af6134db5655cd3e6d2
Bug 9282: improve auto-completion for authority record finder

This patch adjusts the auto-completion on the authority record
finder (accessed from the bib editor) so that if you do
start typing in the "Main entry ($a only)" input field, it will
return only the $a of the main heading for matching authority
records.

This fixes a problem where typing "shakes", choosing
"Shakespeare, William, 1564-1616" from the auto-completion
result list, then hitting the search button fails to bring
up results, as the dates come from the $d of the 100 field
(in MARC21).

Signed-off-by: Mathieu Saby <mathieu.saby@univ-rennes2.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Works as advertised.
Tested with an authority where I added my search term in $b.
The modified authority came up in main entry, not in mainmainentry.
That was the desired result.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/AuthoritiesMarc.pm
authorities/ysearch.pl