<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Il 07/11/2013 04:38,
      <a class="moz-txt-link-abbreviated" href="mailto:koha-devel-request@lists.koha-community.org">koha-devel-request@lists.koha-community.org</a> ha scritto:<br>
    </div>
    <blockquote
cite="mid:mailman.1572.1383795522.897.koha-devel@lists.koha-community.org"
      type="cite">
      <pre wrap="">Message: 5
Date: Wed,  6 Nov 2013 21:30:13 +0100
From: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:andrea.furin@slacky.it">andrea.furin@slacky.it</a>
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a>
Subject: [Koha-devel] Customize Z39.50 results
Message-ID: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:MVUZMD$2E6A3D691C9B0CC0D5F322D795EDFD06@slacky.it"><MVUZMD$2E6A3D691C9B0CC0D5F322D795EDFD06@slacky.it></a>
Content-Type: text/plain; charset=utf-8

Hi to all, i'm a new entry here, <span class="moz-smiley-s3" title=";-)"><span>;-)</span></span>.
Mu first question:
in z39.50 my search results the field "Date" is always empty and I need to quickly view Date and Publisher in the results: I need the Unimarc 210_d be linked with "Date" in Z39.50 results mask and Unimarc 210_c "Publisher" with a new field "Publisher": is it possible to custome in this way?
TIA

a.f.


------------------------------
</pre>
    </blockquote>
    <br>
    I've resolved!<br>
    First of all there is an error in <br>
    /usr/share/koha/lib/C4/Breeding.pm<br>
    if you want to see the publication year in z39.50 search results
    mask you have to change line 399:<br>
     $row_data{date} = $oldbiblio->{date}; -->
    $row_data{publicationyear} = $oldbiblio->{publicationyear};<br>
    <br>
    For customize Z39.50 results mask consider file <br>
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt
    (change ../prog/LANGUAGE/modules/.. if not english)<br>
    at line 155 the search results mask:<br>
            <th>Server</th><br>
            <th>Title</th><br>
            <th>Author</th><br>
            <th>Date</th><br>
            <th>Edition</th><br>
            <th>ISBN</th><br>
            <th>LCCN</th><br>
    here you can add what you want, for example:<br>
            <th>Publisher</th><br>
    <br>
    Below the correspondet modified lines:<br>
                <td>[% breeding_loo.server %] <div
    class="linktools"><a
    href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[%
    breeding_loo.bree$<br>
                <td>[% breeding_loo.title |html %]</td><br>
                <td>[% breeding_loo.author %]</td><br>
                <td>[% breeding_loo.date %]</td><br>
    **        <td>[% breeding_loo.publisher %]</td><br>
                <td>[% breeding_loo.edition %]</td><br>
                <td>[% breeding_loo.isbn %]</td><br>
                <td>[% breeding_loo.lccn %]</td><br>
    <br>
    Now consider file<br>
    <br>
    /usr/share/koha/lib/C4/Breeding.pm<br>
    at line 394:<br>
                                $row_data{server}       =
    $servername[$k];<br>
                                $row_data{isbn}         =
    $oldbiblio->{isbn};<br>
                                $row_data{lccn}         =
    $oldbiblio->{lccn};<br>
                                $row_data{title}        =
    $oldbiblio->{title};<br>
                                $row_data{author}       =
    $oldbiblio->{author};<br>
    **                        $row_data{date}         =
    $oldbiblio->{publicationyear};<br>
    **                         $row_data{publishercode}=
    $oldbiblio->{publishercode};<br>
                                $row_data{edition}      =
    $oldbiblio->{editionstatement};<br>
                                $row_data{breedingid}   = $breedingid;<br>
                                $row_data{biblionumber} = $biblionumber;<br>
    <br>
    make sure that  "= $oldbiblio->{publicationyear}" and NOT "=
    $oldbiblio->{date}"<br>
    <br>
    Finally you have to modify <br>
    Koha to MARC mapping in Administration - Catalogue<br>
    select "biblioitems"<br>
    publicationyear -> 210_d (Unimarc)<br>
    publishercode   -> 210_c  (Unimarc)<br>
    <br>
    <br>
    I hope this can be useful.<br>
    Many Thanks to "Stefano Bargioni" <span
      class="moz-txt-link-abbreviated"><a class="moz-txt-link-abbreviated" href="mailto:bargioni@pusc.it">bargioni@pusc.it</a></span><br>
    <br>
    <div class="moz-signature">-- <br>
      <img src="cid:part4.01050601.05090206@slacky.it" border="0"></div>
  </body>
</html>