Bug 11131: display authority summary correctly when searching by all authority types
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 24 Oct 2013 13:28:42 +0000 (15:28 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 30 Dec 2013 19:11:20 +0000 (19:11 +0000)
commite5cec32d078eac98b603d637b7d713a780be3e66
treee5d77fb55b9c278ad152bb00c8a6043a8d5a220b
parent71b7d5629878bd5616dbb1db263a8fd943d3f7b9
Bug 11131: display authority summary correctly when searching by all authority types

The summary is built using the authtypecode selected from the interface.
So when a search is launch on all auth types, the summary is not
correctly built by the BuildSummary routine.

It should get the authtypecode from the authority (call to
GetAuthTypeCode).

To test:
1/ go to authorities/authorities-home.pl
2/ search <something> by authtype personal name
3/ results are displayed with summary
4/ now select the default entry and search again the
results display but without the summary
5/ apply the patch
6/ search default again, now summary shows

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested with a UNIMARC database, works as described.
All tests and QA script pass.

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