Il 07/11/2013 04:38, koha-devel-request@lists.koha-community.org ha scritto:
Message: 5 Date: Wed, 6 Nov 2013 21:30:13 +0100 From: andrea.furin@slacky.it To: Koha-devel@lists.koha-community.org Subject: [Koha-devel] Customize Z39.50 results Message-ID: <MVUZMD$2E6A3D691C9B0CC0D5F322D795EDFD06@slacky.it> Content-Type: text/plain; charset=utf-8
Hi to all, i'm a new entry here, ;-). 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.
------------------------------
I've resolved! First of all there is an error in /usr/share/koha/lib/C4/Breeding.pm if you want to see the publication year in z39.50 search results mask you have to change line 399: $row_data{date} = $oldbiblio->{date}; --> $row_data{publicationyear} = $oldbiblio->{publicationyear}; For customize Z39.50 results mask consider file /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>Edition</th> <th>ISBN</th> <th>LCCN</th> here you can add what you want, for example: <th>Publisher</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> Now consider file /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{publishercode}= $oldbiblio->{publishercode}; $row_data{edition} = $oldbiblio->{editionstatement}; $row_data{breedingid} = $breedingid; $row_data{biblionumber} = $biblionumber; make sure that "= $oldbiblio->{publicationyear}" and NOT "= $oldbiblio->{date}" Finally you have to modify Koha to MARC mapping in Administration - Catalogue select "biblioitems" publicationyear -> 210_d (Unimarc) publishercode -> 210_c (Unimarc) I hope this can be useful. Many Thanks to "Stefano Bargioni" bargioni@pusc.it --
participants (1)
-
Andrea Furin