[Koha-bugs] Z39.50 search results: DATE blank - add PUBLISHER

Andrea Furin andrea.furin at slacky.it
Mon Nov 18 15:57:19 CET 2013


1. If you have the field DATE blank when you make a Z39.50 search you
have to modify the file:
/usr/share/koha/lib/C4/Breeding.pm
at line 394:
  $row_data{date}         =  $oldbiblio->{copyrightdate};
in
  $row_data{date}         =  $oldbiblio->{publicationyear};
(Make a copy of your modification becaurse probably ad update will
change that file).

2. If you want to see the publisher's name in Z39.50 results you have to
add a line in:
/usr/share/koha/lib/C4/Breeding.pm
at line 394:
       $row_data{server}       = $servername[$k];
       $row_data{isbn}         = $oldbiblio->{isbn};
       $row_data{lccn}         = $oldbiblio->{lccn};
       $row_data{title}        = $oldbiblio->{title};
       $row_data{author}       = $oldbiblio->{author};
       $row_data{date}         = $oldbiblio->{publicationyear};
****   $row_data{publisher}    = $oldbiblio->{publishercode};
       $row_data{edition}      = $oldbiblio->{editionstatement};

and in:
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
(change ../prog/LANGUAGE/modules/.. if not english)
at line 155 the search results mask:
        <th>Server</th>
        <th>Title</th>
        <th>Author</th>
        <th>Date</th>
****    <th>Publisher</th>
        <th>Edition</th>
        <th>ISBN</th>
        <th>LCCN</th>

[Below the correspondet modified lines:]

            <td>[% breeding_loo.server %] <div class="linktools"><a
href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.bree$
            <td>[% breeding_loo.title |html %]</td>
            <td>[% breeding_loo.author %]</td>
            <td>[% breeding_loo.date %]</td>
****        <td>[% breeding_loo.publisher %]</td>
            <td>[% breeding_loo.edition %]</td>
            <td>[% breeding_loo.isbn %]</td>
            <td>[% breeding_loo.lccn %]</td>


More information about the Koha-bugs mailing list