From mjr at towers.org.uk Thu Feb 1 22:35:20 2007
From: mjr at towers.org.uk (MJR)
Date: Thu, 01 Feb 2007 21:35:20 +0000
Subject: [Koha-cvs] koha/misc Install.pm [rel_2_2]
Message-ID:
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: MJR 07/02/01 21:35:20
Modified files:
misc : Install.pm
Log message:
s/Barcorde/Barcode/ # fix for bug 1284
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/misc/Install.pm?cvsroot=koha&only_with_tag=rel_2_2&r1=1.88.2.16&r2=1.88.2.17
Patches:
Index: Install.pm
===================================================================
RCS file: /sources/koha/koha/misc/Install.pm,v
retrieving revision 1.88.2.16
retrieving revision 1.88.2.17
diff -u -b -r1.88.2.16 -r1.88.2.17
--- Install.pm 24 Oct 2006 04:26:15 -0000 1.88.2.16
+++ Install.pm 1 Feb 2007 21:35:20 -0000 1.88.2.17
@@ -847,7 +847,7 @@
push @missing,"You will need PDF::API2 for barcode generator";
}
}
- unless (eval {require GD::Barcorde}) {
+ unless (eval {require GD::Barcode}) {
if ($#missing>=0) { # only when $#missing >= 0 so this isn't fatal
push @missing,"You will need GD::Barcode for the new barcode generator";
}
From alaurin at ouestprovence.fr Fri Feb 2 10:57:47 2007
From: alaurin at ouestprovence.fr (LAURIN arnaud)
Date: Fri, 02 Feb 2007 09:57:47 +0000
Subject: [Koha-cvs] koha C4/Circulation/Circ2.pm C4/Reserves2.pm ci...
[rel_3_0]
Message-ID:
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: LAURIN arnaud 07/02/02 09:57:47
Modified files:
C4/Circulation : Circ2.pm
C4 : Reserves2.pm
circ : returns.pl
Log message:
bugfixing for Minuspriority process ...., and remove warn compilation
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Circulation/Circ2.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.114.2.35&r2=1.114.2.36
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Reserves2.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.46.2.15&r2=1.46.2.16
http://cvs.savannah.gnu.org/viewcvs/koha/circ/returns.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.43.2.13&r2=1.43.2.14
Patches:
Index: C4/Circulation/Circ2.pm
===================================================================
RCS file: /sources/koha/koha/C4/Circulation/Circ2.pm,v
retrieving revision 1.114.2.35
retrieving revision 1.114.2.36
diff -u -b -r1.114.2.35 -r1.114.2.36
--- C4/Circulation/Circ2.pm 25 Jan 2007 18:06:52 -0000 1.114.2.35
+++ C4/Circulation/Circ2.pm 2 Feb 2007 09:57:46 -0000 1.114.2.36
@@ -17,7 +17,7 @@
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id: Circ2.pm,v 1.114.2.35 2007/01/25 18:06:52 alaurin Exp $
+# $Id: Circ2.pm,v 1.114.2.36 2007/02/02 09:57:46 alaurin Exp $
use strict;
require Exporter;
@@ -41,7 +41,7 @@
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.114.2.35 $' =~ /\d+/g; shift(@v).".".join( "_", map { sprintf "%03d", $_ } @v ); };
+$VERSION = do { my @v = '$Revision: 1.114.2.36 $' =~ /\d+/g; shift(@v).".".join( "_", map { sprintf "%03d", $_ } @v ); };
=head1 NAME
@@ -590,11 +590,6 @@
$fbr = $dbh->quote($fbr);
$tbr = $dbh->quote($tbr);
- warn "entree dans dotransfer";
- warn "item dt->".$itm;
- warn "from fbr->".$fbr;
- warn "item tbr->".$tbr;
-
#new entry in branchtransfers....
$dbh->do(
"INSERT INTO branchtransfers (itemnumber, frombranch, datesent, tobranch)
@@ -1572,7 +1567,6 @@
C4::Context->userenv->{'branch'} )
{
UpdateHoldingbranch(C4::Context->userenv->{'branch'},$iteminformation->{'itemnumber'});
- warn "changement holdingbranch ->".C4::Context->userenv->{'branch'};
}
itemseen( $iteminformation->{'itemnumber'} );
Index: C4/Reserves2.pm
===================================================================
RCS file: /sources/koha/koha/C4/Reserves2.pm,v
retrieving revision 1.46.2.15
retrieving revision 1.46.2.16
diff -u -b -r1.46.2.15 -r1.46.2.16
--- C4/Reserves2.pm 25 Jan 2007 18:06:52 -0000 1.46.2.15
+++ C4/Reserves2.pm 2 Feb 2007 09:57:47 -0000 1.46.2.16
@@ -20,7 +20,7 @@
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id: Reserves2.pm,v 1.46.2.15 2007/01/25 18:06:52 alaurin Exp $
+# $Id: Reserves2.pm,v 1.46.2.16 2007/02/02 09:57:47 alaurin Exp $
use strict;
require Exporter;
@@ -33,7 +33,7 @@
my $library_name = C4::Context->preference("LibraryName");
# set the version for version checking
-$VERSION = do { my @v = '$Revision: 1.46.2.15 $' =~ /\d+/g; shift(@v) . "." . join( "_", map { sprintf "%03d", $_ } @v ); };
+$VERSION = do { my @v = '$Revision: 1.46.2.16 $' =~ /\d+/g; shift(@v) . "." . join( "_", map { sprintf "%03d", $_ } @v ); };
=head1 NAME
@@ -113,7 +113,6 @@
#'
sub OtherReserves {
-warn "entree en mode Other reserves";
my ($itemnumber) = @_;
my $messages;
my $nextreservinfo;
@@ -179,16 +178,16 @@
my $sth_upd = $dbh->prepare($query);
$sth_upd->execute( $itemnumber, $borrowernumber, $biblionumber );
$sth_upd->finish;
-warn "entree en mode minuspriority";
# second step update all others reservs
$query = qq/
SELECT priority,borrowernumber,biblionumber,reservedate
FROM reserves
WHERE priority !='0'
+ AND biblionumber = ?
AND cancellationdate IS NULL
/;
my $sth_oth = $dbh->prepare($query);
- $sth_oth->execute;
+ $sth_oth->execute($biblionumber);
while ( my ( $priority, $borrowernumber, $biblionumber, $reservedate ) =
$sth_oth->fetchrow_array )
{
@@ -387,7 +386,6 @@
# reserved by same person on same day
my $bdata;
if ( $count > 1 ) {
- warn "bibitemno $bibitemno[$i]";
$bdata = GetBiblioItemData( $bibitemno[$i] );
$i++;
}
@@ -681,7 +679,6 @@
sub FillReserve {
my ($res) = @_;
my $dbh = C4::Context->dbh;
-warn "entree en mode fill reserve";
# fill in a reserve record....
my $qbiblio = $res->{'biblionumber'};
my $borr = $res->{'borrowernumber'};
@@ -736,9 +733,7 @@
sub FixPriority {
my ( $biblio, $borrowernumber, $rank ) = @_;
my $dbh = C4::Context->dbh;
-warn "mode fixpriority : rang retour : ".$rank;
if ( $rank eq "del" ) {
- warn "mode suppresion ok";
CancelReserve( $biblio, undef, $borrowernumber );
}
if ( $rank eq "W" || $rank eq "0" ) {
@@ -825,7 +820,6 @@
=cut
sub ReserveWaiting {
-warn "entree dans reserves waiting";
my ( $item, $borr,$diffBranchSend ) = @_;
my $dbh = C4::Context->dbh;
@@ -851,7 +845,6 @@
# update reserves record....
if ($diffBranchSend) {
- warn "diffbranchsend";
$query = qq/
UPDATE reserves
SET priority = 0,
@@ -862,7 +855,6 @@
/;
}
else {
- warn"statut waiting pour la reservation";
$query = qq/
UPDATE reserves
SET priority = 0,
@@ -968,7 +960,6 @@
}
$sth->finish;
return @results;
- warn "entree en mode group reserves";
}
=item CreateReserve
Index: circ/returns.pl
===================================================================
RCS file: /sources/koha/koha/circ/returns.pl,v
retrieving revision 1.43.2.13
retrieving revision 1.43.2.14
diff -u -b -r1.43.2.13 -r1.43.2.14
--- circ/returns.pl 25 Jan 2007 18:06:52 -0000 1.43.2.13
+++ circ/returns.pl 2 Feb 2007 09:57:47 -0000 1.43.2.14
@@ -111,7 +111,6 @@
if ( $query->param('resbarcode') ) {
-warn "entree en mode resbarcode";
my $item = $query->param('itemnumber');
my $borrowernumber = $query->param('borrowernumber');
my $resbarcode = $query->param('resbarcode');
@@ -119,16 +118,13 @@
# set to waiting....
my $iteminfo = getiteminformation($item);
my $diffBranchSend;
- warn "diffbranch retour ->".$diffBranchReturned;
# addin in ReserveWaiting the possibility to check if the document is expected in this library or not,
# if not we send a value in reserve waiting for not implementting waiting status
if ($diffBranchReturned) {
- warn "entrer en mod retour diffbranch";
$diffBranchSend = $diffBranchReturned;
}
else {
- warn "pas de diffbranch";
$diffBranchSend = undef;
}
@@ -168,7 +164,6 @@
# actually return book and prepare item table.....
if ($barcode) {
-warn "entrée en mode barcode";
# decode cuecat
$barcode = cuecatbarcodedecode($barcode);
( $returned, $messages, $iteminformation, $borrower ) =
@@ -337,7 +332,6 @@
$template->param( intransit => 1 );
}
- warn "RES FOR : " . $res->{'branchcode'};
$template->param(
found => 1,
currentbranch => $branches->{C4::Context->userenv->{'branch'}}->{'branchname'},
From laurenthdl at alinto.com Fri Feb 2 19:04:21 2007
From: laurenthdl at alinto.com (Henri-Damien LAURENT)
Date: Fri, 02 Feb 2007 18:04:21 +0000
Subject: [Koha-cvs] koha/misc/zebra record_authorities_unimarc.abs ...
[rel_3_0]
Message-ID:
CVSROOT: /cvsroot/koha
Module name: koha
Branch: rel_3_0
Changes by: Henri-Damien LAURENT 07/02/02 18:04:21
Modified files:
misc/zebra : record_authorities_unimarc.abs
sort-string-utf_french.chr
Log message:
BUG Fixing:
authorities Sorting and searching for exact content.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/misc/zebra/record_authorities_unimarc.abs?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.2&r2=1.1.2.3
http://cvs.savannah.gnu.org/viewcvs/koha/misc/zebra/sort-string-utf_french.chr?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.2&r2=1.1.2.3
Patches:
Index: record_authorities_unimarc.abs
===================================================================
RCS file: /cvsroot/koha/koha/misc/zebra/Attic/record_authorities_unimarc.abs,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -b -r1.1.2.2 -r1.1.2.3
--- record_authorities_unimarc.abs 19 Dec 2006 08:37:13 -0000 1.1.2.2
+++ record_authorities_unimarc.abs 2 Feb 2007 18:04:21 -0000 1.1.2.3
@@ -1,4 +1,4 @@
-# $Id: record_authorities_unimarc.abs,v 1.1.2.2 2006/12/19 08:37:13 hdl Exp $
+# $Id: record_authorities_unimarc.abs,v 1.1.2.3 2007/02/02 18:04:21 hdl Exp $
# indexing rules. It
# results in a server which provides a passable Bath level 0 and 1 service
@@ -47,25 +47,24 @@
############ HEADINGS ##################
-melm 200$a Heading,Heading-Entity,Heading:s,personal-heading,personal-heading:s
-melm 210$a Heading,Heading-Entity,Heading:s,corporate-heading
-melm 210$a Heading,Heading-Entity,Heading:s,Conference-heading
+melm 200$a Heading,Heading-Entity,Heading:s,personal-heading
+melm 210$a Heading,Heading-Entity,Heading:s,corporate-heading,Conference-heading
melm 215$a Heading,Heading-Entity,Heading:s,Name-geographic
#melm 216 Name-corporate
-melm 220$a Heading,Heading-Entity,Heading:s,personal-heading,personal-heading:s
-melm 230$a Heading,Heading-Entity,Heading:s,Title-Uniform,Title-Uniform:s
-melm 235$a Heading,Heading-Entity,Heading:s,Title-Uniform,Title-Uniform:s
+melm 220$a Heading,Heading-Entity,Heading:s,personal-heading
+melm 230$a Heading,Heading-Entity,Heading:s,Title-Uniform
+melm 235$a Heading,Heading-Entity,Heading:s,Title-Uniform
melm 250$a Heading,Heading-Entity,Heading:s,Subject-heading, Subject-heading:s
-melm 200 Heading-Entity,Heading-Entity:s, personal-Heading-Entity,personal-Heading-Entity:s
+melm 200 Heading-Entity,Heading-Entity:s, personal-Heading-Entity
melm 210 Heading-Entity,Heading-Entity:s,corporate-Heading-Entity
melm 210 Heading-Entity,Heading-Entity:s,Conference-Heading-Entity
melm 215 Heading-Entity,Heading-Entity:s,Name-geographic-Entity
#melm 216 Name-corporate
-melm 220 Heading-Entity,Heading-Entity:s,personal-Heading-Entity,personal-Heading-Entity:s
-melm 230 Heading-Entity,Heading-Entity:s,Title-Uniform-entity,Title-Uniform-entity:p
-melm 235 Heading-Entity,Heading-Entity:s,Title-Uniform-entity,Title-Uniform:s
-melm 250 Heading-Entity,Heading-Entity:s,Subject-Thesaurus
+melm 220 Heading-Entity,Heading-Entity:s,personal-Heading-Entity
+melm 230 Heading-Entity,Heading-Entity:s,Title-Uniform-entity
+melm 235 Heading-Entity,Heading-Entity:s,Title-Uniform-entity
+melm 250 Heading-Entity,Subject-Thesaurus
#210 Heading - Corporate Body Name
#215 Heading - Territorial or Geographical Name
@@ -90,14 +89,14 @@
melm 430$a See, See:s,See-Entity, Title-Uniform-see,Title-Uniform-see:s
melm 435$a See, See:s,See-Entity, Title-Uniform-see,Title-Uniform-see:s
melm 450$a See, See:s,See-Entity, Subject-see,Subject-see:s
-melm 400 See-Entity, See-Entity:s,personal-See-Entity,personal-See-Entity:s
-melm 410 See-Entity, See-Entity:s,corporate-See-Entity
-melm 410 See-Entity, See-Entity:s,Conference-See-Entity
-melm 415 See-Entity, See-Entity:s,Name-geographic-See-Entity
+melm 400 See-Entity, personal-See-Entity,personal-See-Entity:s
+melm 410 See-Entity, corporate-See-Entity
+melm 410 See-Entity, Conference-See-Entity
+melm 415 See-Entity, Name-geographic-See-Entity
#melm 416 Name-corporate
-melm 440 See-Entity, See-Entity:s,personal-See-Entity,personal-See-Entity:s
-melm 430 See-Entity, See-Entity:s,Title-Uniform-See-Entity,Title-Uniform-See-Entity:s
-melm 435 See-Entity, See-Entity:s,Title-Uniform-See-Entity,Title-Uniform-See-Entity:s
+melm 440 See-Entity, personal-See-Entity
+melm 430 See-Entity, Title-Uniform-See-Entity
+melm 435 See-Entity, Title-Uniform-See-Entity
melm 450 See-Entity,Subject-See-Entity
#410 Heading - Corporate Body Name
Index: sort-string-utf_french.chr
===================================================================
RCS file: /cvsroot/koha/koha/misc/zebra/Attic/sort-string-utf_french.chr,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -b -r1.1.2.2 -r1.1.2.3
--- sort-string-utf_french.chr 8 Dec 2006 10:16:53 -0000 1.1.2.2
+++ sort-string-utf_french.chr 2 Feb 2007 18:04:21 -0000 1.1.2.3
@@ -1,6 +1,6 @@
# Generic character map.
#
-# $Id: sort-string-utf_french.chr,v 1.1.2.2 2006/12/08 10:16:53 alaurin Exp $
+# $Id: sort-string-utf_french.chr,v 1.1.2.3 2007/02/02 18:04:21 hdl Exp $
# Define the basic value-set. *Beware* of changing this without re-indexing
# your databases.
@@ -9,8 +9,6 @@
# Breaking characters
-space {\001-\040}!"#$%&'\()*+,-./:;<=>?@\[\\]^_`\{|}~
-
# Characters to be considered equivalent for searching purposes.
equivalent æä(ae)
From laurenthdl at alinto.com Fri Feb 2 19:07:42 2007
From: laurenthdl at alinto.com (Henri-Damien LAURENT)
Date: Fri, 02 Feb 2007 18:07:42 +0000
Subject: [Koha-cvs] koha authorities/authorities-home.pl authoritie...
[rel_3_0]
Message-ID:
CVSROOT: /cvsroot/koha
Module name: koha
Branch: rel_3_0
Changes by: Henri-Damien LAURENT 07/02/02 18:07:42
Modified files:
authorities : authorities-home.pl authorities.pl
C4 : AuthoritiesMarc.pm
koha-tmpl/intranet-tmpl/prog/en/authorities: auth_finder.tmpl
authorities-home.tmpl
authorities.tmpl
searchresultlist-auth.tmpl
Log message:
Sorting and searching for exact term now works.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/authorities/authorities-home.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.14.2.3&r2=1.14.2.4
http://cvs.savannah.gnu.org/viewcvs/koha/authorities/authorities.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.15.2.8&r2=1.15.2.9
http://cvs.savannah.gnu.org/viewcvs/koha/C4/AuthoritiesMarc.pm?cvsroot=koha&only_with_tag=rel_3_0&r1=1.28.2.15&r2=1.28.2.16
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.3&r2=1.1.2.4
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/authorities-home.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/authorities.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.2.2.3&r2=1.2.2.4
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.4&r2=1.1.2.5
Patches:
Index: authorities/authorities-home.pl
===================================================================
RCS file: /cvsroot/koha/koha/authorities/authorities-home.pl,v
retrieving revision 1.14.2.3
retrieving revision 1.14.2.4
diff -u -b -r1.14.2.3 -r1.14.2.4
--- authorities/authorities-home.pl 18 Dec 2006 16:35:17 -0000 1.14.2.3
+++ authorities/authorities-home.pl 2 Feb 2007 18:07:42 -0000 1.14.2.4
@@ -56,6 +56,7 @@
my @and_or = $query->param('and_or');
my @excluding = $query->param('excluding');
my @operator = $query->param('operator');
+ my $orderby = $query->param('orderby');
my @value = $query->param('value');
my $startfrom = $query->param('startfrom') || 1;
@@ -70,7 +71,8 @@
\@value,
($startfrom - 1)*$resultsperpage,
$resultsperpage,
- $authtypecode
+ $authtypecode,
+ $orderby
);
($template, $loggedinuser, $cookie)
@@ -112,7 +114,8 @@
{term => 'resultsperpage', val => $resultsperpage},
{term => 'type' , val => 'intranet'},
{term => 'op' , val => 'do_search'},
- {term => 'authtypecode' , val => $authtypecode}
+ {term => 'authtypecode' , val => $authtypecode},
+ {term => 'orderby' , val => $orderby},
)
)
;
Index: authorities/authorities.pl
===================================================================
RCS file: /cvsroot/koha/koha/authorities/authorities.pl,v
retrieving revision 1.15.2.8
retrieving revision 1.15.2.9
diff -u -b -r1.15.2.8 -r1.15.2.9
--- authorities/authorities.pl 24 Jan 2007 15:13:27 -0000 1.15.2.8
+++ authorities/authorities.pl 2 Feb 2007 18:07:42 -0000 1.15.2.9
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: authorities.pl,v 1.15.2.8 2007/01/24 15:13:27 hdl Exp $
+# $Id: authorities.pl,v 1.15.2.9 2007/02/02 18:07:42 hdl Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -413,7 +413,6 @@
# }
exit;
} else {
-warn "duplicate";
# it may be a duplicate, warn the user and do nothing
build_tabs ($template, $record, $dbh,$encoding);
build_hidden_data;
Index: C4/AuthoritiesMarc.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/AuthoritiesMarc.pm,v
retrieving revision 1.28.2.15
retrieving revision 1.28.2.16
diff -u -b -r1.28.2.15 -r1.28.2.16
--- C4/AuthoritiesMarc.pm 24 Jan 2007 10:17:47 -0000 1.28.2.15
+++ C4/AuthoritiesMarc.pm 2 Feb 2007 18:07:42 -0000 1.28.2.16
@@ -66,7 +66,7 @@
return ($tagfield,$tagsubfield);
}
sub authoritysearch {
- my ($dbh, $tags, $and_or, $excluding, $operator, $value, $offset,$length,$authtypecode) = @_;
+ my ($dbh, $tags, $and_or, $excluding, $operator, $value, $offset,$length,$authtypecode,$sortby) = @_;
my $query;
my $attr;
# the marclist may contain "mainentry". In this case, search the tag_to_report, that depends on
@@ -91,7 +91,6 @@
my $q2;
for(my $i = 0 ; $i <= $#{$value} ; $i++)
{
-
if (@$value[$i]){
##If mainentry search $a tag
if (@$tags[$i] eq "mainmainentry") {
@@ -101,22 +100,25 @@
}else{
$attr =" \@attr 1=Any ";
}
- if (@$operator[$i] eq 'phrase') {
- $attr.=" \@attr 4=1 \@attr 5=100 \@attr 6=2 ";##Phrase, No truncation,all of subfield field must match
+ if (@$operator[$i] eq 'is') {
+ $attr.=" \@attr 4=1 \@attr 5=100 ";##Phrase, No truncation,all of subfield field must match
}elsif (@$operator[$i] eq "="){
- $attr.=" \@attr 4=107 ";#Phrase, No truncation,all of subfield field must
+ $attr.=" \@attr 4=107 "; #Number Exact match
+ }elsif (@$operator[$i] eq "start"){
+ $attr.=" \@attr 4=1 \@attr 5=1 ";#Phrase, Right truncated
} else {
- $attr .=" \@attr 4=6 \@attr 5=1 ";## Word list, right truncated, anywhere
+ $attr .=" \@attr 5=1 ";## Word list, right truncated, anywhere
}
$and .=" \@and " ;
$attr =$attr."\"".@$value[$i]."\"";
$q2 .=$attr;
$dosearch=1;
}#if value
-
}
##Add how many queries generated
$query= $and.$query.$q2;
+$query=' @or @attr 7=1 @attr 1=Heading 0 '.$query if ($sortby eq "HeadingAsc");
+$query=' @or @attr 7=2 @attr 1=Heading 0 '.$query if ($sortby eq "HeadingDsc");
warn $query;
$offset=0 unless $offset;
@@ -944,8 +946,11 @@
=cut
-# $Id: AuthoritiesMarc.pm,v 1.28.2.15 2007/01/24 10:17:47 hdl Exp $
+# $Id: AuthoritiesMarc.pm,v 1.28.2.16 2007/02/02 18:07:42 hdl Exp $
# $Log: AuthoritiesMarc.pm,v $
+# Revision 1.28.2.16 2007/02/02 18:07:42 hdl
+# Sorting and searching for exact term now works.
+#
# Revision 1.28.2.15 2007/01/24 10:17:47 hdl
# FindDuplicate Now works.
# Be AWARE that it needs a change ccl.properties.
Index: koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -b -r1.1.2.3 -r1.1.2.4
--- koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl 30 Jan 2007 10:04:37 -0000 1.1.2.3
+++ koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl 2 Feb 2007 18:07:42 -0000 1.1.2.4
@@ -15,6 +15,7 @@
">
+ ">
">
@@ -22,34 +23,40 @@
- ">
+ ">
- ">
+
- ">
+ ">
-
+
- ">
+ ">
+ Sort by
Index: koha-tmpl/intranet-tmpl/prog/en/authorities/authorities-home.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/authorities-home.tmpl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- koha-tmpl/intranet-tmpl/prog/en/authorities/authorities-home.tmpl 12 Oct 2006 22:04:47 -0000 1.1.2.1
+++ koha-tmpl/intranet-tmpl/prog/en/authorities/authorities-home.tmpl 2 Feb 2007 18:07:42 -0000 1.1.2.2
@@ -39,6 +39,7 @@
@@ -56,6 +57,7 @@
|
@@ -74,6 +76,7 @@
|
@@ -83,6 +86,11 @@
+ Order by :
Index: koha-tmpl/intranet-tmpl/prog/en/authorities/authorities.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/authorities.tmpl,v
retrieving revision 1.2.2.3
retrieving revision 1.2.2.4
diff -u -b -r1.2.2.3 -r1.2.2.4
--- koha-tmpl/intranet-tmpl/prog/en/authorities/authorities.tmpl 24 Jan 2007 15:13:27 -0000 1.2.2.3
+++ koha-tmpl/intranet-tmpl/prog/en/authorities/authorities.tmpl 2 Feb 2007 18:07:42 -0000 1.2.2.4
@@ -85,6 +85,13 @@
">
">
+
+
+
+
+
+
+
Index: koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -b -r1.1.2.4 -r1.1.2.5
--- koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl 30 Jan 2007 10:04:44 -0000 1.1.2.4
+++ koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl 2 Feb 2007 18:07:42 -0000 1.1.2.5
@@ -21,8 +21,9 @@
">
@@ -32,8 +33,9 @@
">
@@ -44,7 +46,8 @@
">
@@ -113,21 +116,21 @@
From wrobertson1981 at yahoo.co.nz Sat Feb 3 09:37:14 2007
From: wrobertson1981 at yahoo.co.nz (Waylon Robertson)
Date: Sat, 03 Feb 2007 08:37:14 +0000
Subject: [Koha-cvs] koha/circ circulation.pl [rel_2_2]
Message-ID:
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Waylon Robertson 07/02/03 08:37:14
Modified files:
circ : circulation.pl
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/circ/circulation.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.81.2.19&r2=1.81.2.20
Patches:
Index: circulation.pl
===================================================================
RCS file: /sources/koha/koha/circ/circulation.pl,v
retrieving revision 1.81.2.19
retrieving revision 1.81.2.20
diff -u -b -r1.81.2.19 -r1.81.2.20
--- circulation.pl 29 Jan 2007 09:28:07 -0000 1.81.2.19
+++ circulation.pl 3 Feb 2007 08:37:14 -0000 1.81.2.20
@@ -85,7 +85,7 @@
my @datearr = localtime(time());
# FIXME - Could just use POSIX::strftime("%Y%m%d", localtime);
-my $todaysdate = (1900+$datearr[5]).sprintf ("%0.2d", ($datearr[4]+1)).sprintf ("%0.2d", ($datearr[3]))
+my $todaysdate = (1900+$datearr[5]).sprintf ("%0.2d", ($datearr[4]+1)).sprintf ("%0.2d", ($datearr[3]));
# check and see if we should print
if ($barcode eq '' && $print eq 'maybe'){
$print = 'yes';
From wrobertson1981 at yahoo.co.nz Sat Feb 3 09:38:29 2007
From: wrobertson1981 at yahoo.co.nz (Waylon Robertson)
Date: Sat, 03 Feb 2007 08:38:29 +0000
Subject: [Koha-cvs] koha overdue.pl [rel_2_2]
Message-ID:
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Waylon Robertson 07/02/03 08:38:29
Modified files:
. : overdue.pl
Log message:
Today's date was being formatted before being compared, in the query. fixed. now overdues work.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/overdue.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.9.2.13&r2=1.9.2.14
Patches:
Index: overdue.pl
===================================================================
RCS file: /sources/koha/koha/Attic/overdue.pl,v
retrieving revision 1.9.2.13
retrieving revision 1.9.2.14
diff -u -b -r1.9.2.13 -r1.9.2.14
--- overdue.pl 19 Jan 2007 09:33:48 -0000 1.9.2.13
+++ overdue.pl 3 Feb 2007 08:38:29 -0000 1.9.2.14
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: overdue.pl,v 1.9.2.13 2007/01/19 09:33:48 rangi Exp $
+# $Id: overdue.pl,v 1.9.2.14 2007/02/03 08:38:29 genji Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -117,7 +117,6 @@
my $author;
my @datearr = localtime(time());
my $todaysdate = (1900+$datearr[5]).'-'.sprintf ("%0.2d", ($datearr[4]+1)).'-'.sprintf ("%0.2d", $datearr[3]);
-$todaysdate=format_date($todaysdate);
my $dbh = C4::Context->dbh;
$bornamefilter =~s/\*/\%/g;
@@ -137,18 +136,13 @@
$strsth.=" && biblioitems.itemtype = '".$itemtypefilter."' " if($itemtypefilter) ;
$strsth.=" && borrowers.flags = '".$borflagsfilter."' " if ($borflagsfilter ne " ") ;
$strsth.=" && issues.branchcode = '".$branchfilter."' " if($branchfilter) ;
-# my $bornamefilter=$input->param('borname');
-# my $borcatfilter=$input->param('borcat');
-# my $itemtypefilter=$input->param('itemtype');
-# my $borflagsfilter=$input->param('borflags');
-# my $branchfilter=$input->param('branch');
if ($order eq "borrower"){
$strsth.=" order by borrower,date_due " ;
} else {
$strsth.=" order by date_due,borrower ";
}
my $sth=$dbh->prepare($strsth);
-warn "overdue.pl : query string ".$strsth;
+#warn "overdue.pl : query string ".$strsth;
$sth->execute();
my @overduedata;
@@ -176,6 +170,7 @@
}
$sth->finish;
+$todaysdate=format_date($todaysdate);
$template->param(todaysdate => $todaysdate,
overdueloop => \@overduedata,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
From wrobertson1981 at yahoo.co.nz Sat Feb 3 09:42:10 2007
From: wrobertson1981 at yahoo.co.nz (Waylon Robertson)
Date: Sat, 03 Feb 2007 08:42:10 +0000
Subject: [Koha-cvs] koha/C4 BookShelves.pm [rel_2_2]
Message-ID:
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Waylon Robertson 07/02/03 08:42:10
Modified files:
C4 : BookShelves.pm
Log message:
PhysicalBookShelves code added, to support an offshoot of virtual bookshelves. The idea, each physical shelf has a unique barcode. any one item can only exist in one shelf. Potential augmentation to item.location.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/BookShelves.pm?cvsroot=koha&only_with_tag=rel_2_2&r1=1.15&r2=1.15.2.1
Patches:
Index: BookShelves.pm
===================================================================
RCS file: /sources/koha/koha/C4/BookShelves.pm,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -b -r1.15 -r1.15.2.1
--- BookShelves.pm 16 Dec 2004 11:30:58 -0000 1.15
+++ BookShelves.pm 3 Feb 2007 08:42:10 -0000 1.15.2.1
@@ -3,7 +3,7 @@
package C4::BookShelves;
-# $Id: BookShelves.pm,v 1.15 2004/12/16 11:30:58 tipaul Exp $
+# $Id: BookShelves.pm,v 1.15.2.1 2007/02/03 08:42:10 genji Exp $
# Copyright 2000-2002 Katipo Communications
#
@@ -57,7 +57,10 @@
&AddToShelf &AddToShelfFromBiblio
&RemoveFromShelf &AddShelf &ModifShelf
&RemoveShelf &ShelfPossibleAction
- );
+ &GetPhysicalShelfList &GetPhysicalShelfContents &GetPhysicalShelf
+ &AddToPhysicalShelf
+ &RemoveFromPhysicalShelf &AddPhysicalShelf &ModifPhysicalShelf
+ &RemovePhysicalShelf &PhysicalShelfPossibleAction );
my $dbh = C4::Context->dbh;
@@ -290,12 +293,209 @@
}
}
+######################### Physical Shelf System ###################
+=item PhysicalShelfPossibleAction
+
+=over 4
+
+=item C<$loggedinuser,$barcode,$action>
+
+$action can be "view" or "manage".
+
+Returns 1 if the user can do the $action in the $shelfnumber shelf.
+Returns 0 otherwise.
+
+=back
+
+=cut
+sub PhysicalShelfPossibleAction {
+ my ($loggedinuser,$barcode,$action)= @_;
+ my $sth = $dbh->prepare("select owner,category from Physicalbookshelf where barcode=?");
+ $sth->execute($shelfnumber, $barcode);
+ my ($owner,$category) = $sth->fetchrow;
+ return 1 if (($category>=3 or $owner eq $loggedinuser) && $action eq 'manage');
+ return 1 if (($category>= 2 or $owner eq $loggedinuser) && $action eq 'view');
+ return 0;
+}
+
+=item GetPhysicalShelfList
+
+ $physicalshelflist = &GetPhysicalShelfList();
+
+Looks up the virtual bookshelves, and returns a summary. C<$physicalshelflist>
+is a arrayref of hashes.
+
+=back
+
+=cut
+
+sub GetPhysicalShelfList {
+ my ($owner,$mincategory) = @_;
+ # mincategory : 2 if the list is for "look". 3 if the list is for "Select bookshelf for adding a book".
+ # bookshelves of the owner are always selected, whatever the category
+ my $sth=$dbh->prepare("SELECT physicalbookshelf.barcode, physicalbookshelf.shelfname,owner,surname,firstname,category,
+ count(physicalshelfcontents.itemnumber) as count
+ FROM physicalbookshelf
+ LEFT JOIN physicalshelfcontents
+ ON physicalbookshelf.barcode = physicalshelfcontents.barcode
+ left join borrowers on physicalbookshelf.owner = borrowers.borrowernumber
+ where owner=? or category>=?
+ GROUP BY physicalbookshelf.barcode order by shelfname");
+ $sth->execute($owner,$mincategory);
+ my @shelflist;
+ while (defined(my $shelf = $sh->fetchrow_hashref())) { push @shelflist, $shelf; }
+ return(\@shelflist);
+}
+
+sub GetPhysicalShelf {
+ my ($barcode) = @_;
+ my $sth=$dbh->prepare("select barcode, shelfname, owner, category from physicalbookshelf where barcode=?");
+ $sth->execute($barcode);
+ return $sth->fetchrow;
+}
+=item GetPhysicalShelfContents
+
+ $itemlist = &GetPhysicalShelfContents($env, $barcode);
+
+Looks up information about the contents of virtual bookshelf number
+C<$shelfnumber>.
+
+Returns a reference-to-array, whose elements are references-to-hash,
+as returned by C<&getiteminformation>.
+
+C<$env> is an enviroment variable that some subroutines use. It should be a reference to a hash. Getiteminformation
+stores a apierror into C<$env-E{apierror} if no barcode or no itemnumber is passed, instead of returning a error
+message. Otherwise ignored.
+
+=cut
+#'
+sub GetPhysicalShelfContents {
+ my ($env, $barcode) = @_;
+ my @itemlist;
+ my $sth=$dbh->prepare("select itemnumber from physicalshelfcontents where barcode=? order by itemnumber");
+ $sth->execute($barcode);
+ while (my ($itemnumber) = $sth->fetchrow) {
+ my ($item) = getiteminformation($env, $itemnumber, 0);
+ push (@itemlist, $item);
+ }
+ return (\@itemlist);
+}
+
+=item AddToShelf
+
+ &AddToShelf($env, $itemnumber, $barcode);
+
+Adds item number C<$itemnumber> to physical bookshelf number
+C<$shelfnumber>, unless that item is already on any shelf.
+
+C<$env> is ignored.
+
+=cut
+#'
+sub AddToPhysicalShelf {
+ my ($env, $itemnumber, $shelfnumber, $barcode) = @_;
+ return unless $itemnumber;
+ my $sth=$dbh->prepare("select * from physicalshelfcontents where itemnumber=?");
+
+ $sth->execute($shelfnumber, $itemnumber);
+ if ($sth->rows) {
+# already on shelf
+ } else {
+ $sth=$dbh->prepare("insert into physicalshelfcontents (barcode, itemnumber, flags) values (?, ?, 0)");
+ $sth->execute($barcode, $itemnumber);
+ }
+}
+
+=item RemoveFromPhysicalShelf
+
+ &RemoveFromPhysicalShelf($env, $itemnumber, $barcode);
+
+Removes item number C<$itemnumber> from physical bookshelf with barcode
+C<$barcode>. If the item wasn't on that bookshelf to begin with,
+nothing happens.
+
+C<$env> is ignored.
+
+=cut
+#'
+sub RemoveFromPhysicalShelf {
+ my ($env, $itemnumber, $barcode) = @_;
+ my $sth=$dbh->prepare("delete from physicalshelfcontents where barcode=? and itemnumber=?");
+ $sth->execute($barcode,$itemnumber);
+}
+
+=item AddPhysicalShelf
+
+ ($status, $msg) = &AddPhysicalShelf($env, $shelfname, $barcode, $owner, $category);
+
+Creates a new virtual bookshelf with name C<$shelfname>.
+
+Returns a two-element array, where C<$status> is 0 if the operation
+was successful, or non-zero otherwise. C<$msg> is "Done" in case of
+success, or an error message giving the reason for failure.
+
+C<$env> is ignored.
+
+=cut
+
+sub AddPhysicalShelf {
+ my ($env, $shelfname, $barcode, $owner, $category) = @_;
+ my $sth=$dbh->prepare("select * from phychicalbookshelf where shelfname=?");
+ $sth->execute($shelfname);
+ if ($sth->rows) {
+ return(1, "Shelf \"$shelfname\" already exists");
+ } else {
+ $sth=$dbh->prepare("insert into physicalbookshelf (shelfname, barcode, owner, category) values (?,?,?)");
+ $sth->execute($shelfname, $barcode, $owner, $category);
+ return (0, "Done",$barcode);
+ }
+}
+
+sub ModifPhysicalShelf {
+ my ($barcode, $newbarcode, $shelfname, $owner, $category) = @_;
+ my $sth = $dbh->prepare("update physicbookshelf set shelfname=?,owner=?,category=?, barcode=? where barcode=?");
+ $sth->execute($shelfname,$owner,$category, $newbarcode, $barcode);
+}
+
+=item RemovePhysicalShelf
+
+ ($status, $msg) = &RemovePhysicalShelf($env, $barcode);
+
+Deletes physical bookshelf barcode C<$barcode>. The bookshelf must
+be empty.
+
+Returns a two-element array, where C<$status> is 0 if the operation
+was successful, or non-zero otherwise. C<$msg> is "Done" in case of
+success, or an error message giving the reason for failure.
+
+C<$env> is ignored.
+
+=cut
+#'
+sub RemovePhysicalShelf {
+ my ($env, $shelfnumber) = @_;
+ my $sth=$dbh->prepare("select count(*) from physicalshelfcontents where barcode=?");
+ $sth->execute($shelfnumber);
+ my ($count)=$sth->fetchrow;
+ if ($count) {
+ return (1, "Shelf has $count items on it. Please remove all items before deleting this shelf.");
+ } else {
+ $sth=$dbh->prepare("delete from physicalbookshelf where barcode=?");
+ $sth->execute($shelfnumber);
+ return (0, "Done");
+ }
+}
+
+
END { } # module clean-up code here (global destructor)
1;
#
# $Log: BookShelves.pm,v $
+# Revision 1.15.2.1 2007/02/03 08:42:10 genji
+# PhysicalBookShelves code added, to support an offshoot of virtual bookshelves. The idea, each physical shelf has a unique barcode. any one item can only exist in one shelf. Potential augmentation to item.location.
+#
# Revision 1.15 2004/12/16 11:30:58 tipaul
# adding bookshelf features :
# * create bookshelf on the fly
From laurenthdl at alinto.com Mon Feb 5 09:47:15 2007
From: laurenthdl at alinto.com (Henri-Damien LAURENT)
Date: Mon, 05 Feb 2007 08:47:15 +0000
Subject: [Koha-cvs] koha/koha-tmpl/intranet-tmpl/prog/en/serials se...
[rel_3_0]
Message-ID:
CVSROOT: /cvsroot/koha
Module name: koha
Branch: rel_3_0
Changes by: Henri-Damien LAURENT 07/02/05 08:47:15
Modified files:
koha-tmpl/intranet-tmpl/prog/en/serials: serials-edit.tmpl
Log message:
Bug Fixing : status was not properly saved.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/serials/serials-edit.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.8&r2=1.1.2.9
Patches:
Index: serials-edit.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/prog/en/serials/Attic/serials-edit.tmpl,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -u -b -r1.1.2.8 -r1.1.2.9
--- serials-edit.tmpl 26 Jan 2007 20:48:36 -0000 1.1.2.8
+++ serials-edit.tmpl 5 Feb 2007 08:47:15 -0000 1.1.2.9
@@ -116,6 +116,7 @@
" class="items">
+
" class="subfield">
" />
@@ -124,6 +125,7 @@
" />
" />
+
@@ -205,14 +207,15 @@
|
" style="color: grey; font-size: 80%; cursor: se-resize;" onclick="unHideItems('items','label')">
- Items
+ Item
| |