When searching for multivolumes titles, UNIMARC 4xx field plugin
displays the title of the biblios (200$a), without giving info about
volumes (200 $h $i). It neither doesn't display $e (subtitle) info which
could greatly help to disambiguate search result.
The displayed title is supposed to link to a biblio record view (MARC /
normal). It doesn't work.
TO TEST:
- On a UNIMARC Koha, add a new biblio record
- Call the 4XX plugin from 461/463 field
- Search for a biblio record which contains 200$e, and/or 200$h and/or
200$i subfields.
- You get a result list, with two issues:
1. $a, $h & $i aren't displayed
2. Biblio title is not a link
- Apply the patch, and repeat previous steps.
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
I got a link on fulltitle, but in 'ahie' order (not aehi)
Fixed some tabs.
Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
)
{
my $record = C4::Search::new_record_from_zebra( 'biblioserver', $results->[$i] );
+ next unless $record;
my $rechash = TransformMarcToKoha( $dbh, $record );
+ if ( my $f = $record->field('200') ) {
+ $rechash->{fulltitle} =
+ join(', ', map { $_->[1] } grep { $_->[0] =~ /[aehi]/ } $f->subfields() );
+ }
+ else {
+ $rechash->{fulltitle} = $rechash->{title};
+ }
my $pos;
my $countitems;
if ( $rechash->{itemnumber} ) {
[% IF ( resul.even ) %]<td class="hilighted">
[% ELSE %]<td>[% END %]
[% IF ( resul.MARC_ON ) %]
- <a_class="transparent resultlist" href="/cgi-bin/koha/MARCdetail.pl?biblionumber=[% resul.biblionumber |uri %]">[% resul.title |html %]</a>
+ <a class="transparent resultlist" href="/cgi-bin/koha/MARCdetail.pl?biblionumber=[% resul.biblionumber |url %]">[% resul.title |html %]</a>
[% ELSE %]
- <a_class="transparent resultlist" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% resul.biblionumber |uri %]">[% resul.title |html %]</a> [% END %]
+ <a class="transparent resultlist" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% resul.biblionumber |url %]">[% resul.fulltitle |html %]</a>[% END %]
<p>[% resul.author |html %]
[% IF ( resul.publishercode ) %]- [% resul.publishercode |html %][% END %]
[% IF ( resul.place ) %] ; [% resul.place |html %][% END %]