[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/z3950/encodingfix README-english README-po... [rel_3_0]
From: |
paul poulain |
Subject: |
[Koha-cvs] koha/z3950/encodingfix README-english README-po... [rel_3_0] |
Date: |
Fri, 17 Nov 2006 13:02:15 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: paul poulain <tipaul> 06/11/17 13:02:15
Removed files:
z3950/encodingfix: README-english README-polish search.pl
Log message:
useless, as Koha 3 is utf-8 natively
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/z3950/encodingfix/README-english?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/koha/z3950/encodingfix/README-polish?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/koha/z3950/encodingfix/search.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1&r2=0
Patches:
Index: README-english
===================================================================
RCS file: README-english
diff -N README-english
--- README-english 2 May 2004 18:08:11 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-IMPORTING FROM Z39.50 SERVER WITH Character Set: win1250 (ISO 6937/2) into
KOHA-2.0 WITH UTF-8
-
-Files from this directory are here as a fix only and are of temporary nature.
The fix was delivered to me by Zbigniew Bomart.
-It will probably work for the Polish Language only. The issue needs to be
addressed by Koha developers for the general audience.
-There's a general problem with z39.50 import feature for koha instalations
whose default charset IS NOT iso-8859-1.
-When importing from z39.50 servers that keep their records in windows-1250
charset encoding and koha installation with UTF-8 one may use the replacement
files in this directory.
-Copy them to the following location:
-/usr/local/koha/intranet/modules/C4/Biblio.pm
-/usr/local/koha/intranet/cgi-bin/z3950/search.pl
-
-and enjoy importing records in UTF-8 from Character Set: win1250 (ISO 6937/2)
servers.
-I tested it and the files seem to work on Fedora Core 1 and Koha-2.0
-
-Remember to set the appropriate permissions on the files once you copy them.
On my machine it is:
--rwxr-xr-x 1 apache apache 91813 May 2 18:34 Biblio.pm
--rwxr-xr-x 1 apache apache 3263 May 2 18:39 search.pl
-
-Benedict P. Barszcz
Index: README-polish
===================================================================
RCS file: README-polish
diff -N README-polish
--- README-polish 2 May 2004 18:08:11 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,18 +0,0 @@
-IMPORTOWANIE DANYCH BIBLIOGRAFICZNYCH Z SERWERA BIBLIOTEKI NARODOWEJ W
KODOWANIU win1250 (ISO 6937/2) DO KOHA-2.0 Z KODOWANIEM UTF-8.
-
-Pliki w tym katalogu sÄ
czasowym rozwiÄ
zaniem problemu, który istnieje
podczas importowania danych bibliograficznych przez sieÄ z biblioteki
Narodowej w Warszawie. RozwiÄ
zanie dziaÅa prawdopodobnie tylko dla jÄzyka
polskiego dlatego deweloperzy Koha bÄdÄ
musieli coÅ zrobiÄ z tym problemem
w przyszÅoÅci.
-Pliki z tego katalogu należy przekopiowaÄ do ich wÅaÅciwego katalogu na
zainstalowanym serwerze Koha-2.0:
-/usr/local/koha/intranet/modules/C4/Biblio.pm
-/usr/local/koha/intranet/cgi-bin/z3950/search.pl
-
-Po skopiowaniu należy upewniÄ siÄ, że przywileje plików sÄ
wÅaÅciwe. U
mnie to jest:
--rwxr-xr-x 1 apache apache 91813 May 2 18:34 Biblio.pm
--rwxr-xr-x 1 apache apache 3263 May 2 18:39 search.pl
-
-Po tym zabiegu można spokojnie korzystaÄ z serwera (
http://www.bn.org.pl/Z3950_eng.htm) INNOPAC biblioteki Narodowej w Warszawie do
importu rekordów, które jakimÅ cudem nadal trzymajÄ
w win1250 (ISO 6937/2).
-
-Autorem przedstawionego rozwiÄ
zania jest Zbigniew Bomart.
-
-Benedykt P. Barszcz
-
-
Index: search.pl
===================================================================
RCS file: search.pl
diff -N search.pl
--- search.pl 2 May 2004 18:07:21 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,110 +0,0 @@
-#!/usr/bin/perl
-
-# Copyright 2000-2002 Katipo Communications
-#
-# This file is part of Koha.
-#
-# Koha is free software; you can redistribute it and/or modify it under the
-# terms of the GNU General Public License as published by the Free Software
-# Foundation; either version 2 of the License, or (at your option) any later
-# version.
-#
-# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
-# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along with
-# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
-# Suite 330, Boston, MA 02111-1307 USA
-
-use strict;
-use CGI;
-use C4::Auth;
-use C4::Output;
-use C4::Interface::CGI::Output;
-use C4::Biblio;
-use C4::Context;
-use C4::Koha; # XXX subfield_is_koha_internal_p
-use C4::Z3950;
-use C4::Search;
-use HTML::Template;
-use MARC::File::USMARC;
-
-use vars qw( $tagslib );
-use vars qw( $is_a_modif );
-
-
-my $input = new CGI;
-my $dbh = C4::Context->dbh;
-my $error = $input->param('error');
-my $bibid=$input->param('bibid');
-my $title = $input->param('title');
-my $author = $input->param('author');
-my $isbn = $input->param('isbn');
-my $issn = $input->param('issn');
-my $random = $input->param('random');
-my @results;
-my $count;
-my $toggle;
-
-my $record;
-my $oldbiblio;
-if ($bibid > 0) {
- $record = MARCgetbiblio($dbh,$bibid);
- $oldbiblio = MARCmarc2koha($dbh,$record);
-}
-my $errmsg;
-unless ($random) { # if random is a parameter => we're just waiting for the
search to end, it's a refresh.
- if ($isbn) {
- $random =rand(1000000000);
- $errmsg = addz3950queue($isbn, "isbn", $random, 'CHECKED');
- } elsif ($author) {
- $random =rand(1000000000);
- $errmsg = addz3950queue($author, "author", $random, 'CHECKED');
- } elsif ($title) {
- $random =rand(1000000000);
- $errmsg = addz3950queue($title, "title", $random, 'CHECKED');
- }
-}
-my ($template, $loggedinuser, $cookie)
-= get_template_and_user({template_name => "z3950/searchresult.tmpl",
- query => $input,
- type => "intranet",
- authnotrequired => 0,
- flagsrequired => {catalogue => 1},
- debug => 1,
- });
-
-# fill with books in breeding farm
-($count, @results) = breedingsearch($title,$isbn,$random);
-my $numberpending= &checkz3950searchdone($random);
-my @breeding_loop = ();
-for (my $i=0; $i <= $#results; $i++) {
- my %row_data;
- if ($i % 2) {
- $toggle="#ffffcc";
- } else {
- $toggle="white";
- }
- $row_data{toggle} = $toggle;
- $row_data{id} = $results[$i]->{'id'};
- $row_data{isbn} = $results[$i]->{'isbn'};
- $row_data{file} = $results[$i]->{'file'};
- $row_data{title} = char_decode($results[$i]->{'title'}, "MARC21");
- $row_data{author} = char_decode($results[$i]->{'author'}, "MARC21");
- push (@breeding_loop, \%row_data);
-}
-
-$template->param(isbn => $isbn,
- title => $title,
- author => $author,
- breeding_loop => address@hidden,
- refresh => ($numberpending eq 0
? 0 : "search.pl?bibid=$bibid&random=$random"),
- numberpending => $numberpending,
- oldbiblionumber =>
$oldbiblio->{'biblionumber'},
- );
-
-print $input->header(
--type => guesstype($template->output),
--cookie => $cookie
-),$template->output;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/z3950/encodingfix README-english README-po... [rel_3_0],
paul poulain <=