From truth_nz@users.sourceforge.net Thu May 2 19:47:37 2002 From: Gynn Lomax To: koha-devel@lists.koha-community.org Subject: [Koha-devel] CVS: koha detail.pl,1.3,1.4 Date: Thu, 02 May 2002 19:48:25 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0826767795949352635==" --===============0826767795949352635== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Update of /cvsroot/koha/koha In directory usw-pr-cvs1:/tmp/cvs-serv25277 Modified Files: detail.pl=20 Log Message: Bug fixes to get the new acqui.simple system working. Index: detail.pl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/koha/koha/detail.pl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** detail.pl 15 Mar 2001 10:17:33 -0000 1.3 --- detail.pl 3 May 2002 02:47:33 -0000 1.4 *************** *** 5,9 **** =20 use strict; - #use DBI; use C4::Search; use CGI; --- 5,8 ---- *************** *** 11,53 **** =20 my $input =3D new CGI; ! print $input->header; ! #whether it is called from the opac of the intranet ! my $type=3D$input->param('type'); ! if ($type eq ''){ ! $type=3D'intra'; ! } ! #setup colours my $main; my $secondary; if ($type eq 'opac'){ ! $main=3D'#99cccc'; ! $secondary=3D'#efe5ef'; } else { ! $main=3D'#cccc99'; ! $secondary=3D'#ffffcc'; ! } print startpage(); print startmenu($type); - #print $type; - my $blah; - my $bib=3D$input->param('bib'); - my $title=3D$input->param('title'); - if ($type ne 'opac'){ - print ""; - } =20 =20 - my @items=3DItemInfo(\$blah,$bib,$type); - my $dat=3Dbibdata($bib); - my $count=3D@items; - my ($count3,$addauthor)=3Daddauthor($bib); - my $additional=3D$addauthor->[0]->{'author'}; = =20 - for (my $i=3D1;$i<$count3;$i++){ = =20 - $additional=3D$additional."|".$addauthor->[$i]->{'author'}; = =20 - } =20 - my @temp=3Dsplit('\t',$items[0]); if ($type eq 'catmain'){ print mkheadr(3,"Catalogue Maintenance"); ! } if ($dat->{'author'} ne ''){ print mkheadr(3,"$dat->{'title'} ($dat->{'author'}) $temp[4]"); --- 10,56 ---- =20 my $input =3D new CGI; ! my $type =3D $input->param('type'); ! my $bib =3D $input->param('bib'); ! my $title =3D $input->param('title'); ! my @items =3D &ItemInfo(undef, $bib, $type); ! my $dat =3D &bibdata($bib); ! my $count =3D @items; ! my ($count3, $addauthor) =3D &addauthor($bib); ! my $additional =3D $addauthor->[0]->{'author'}; ! my @temp =3D split('\t', $items[0]); my $main; my $secondary; +=20 + if ($type eq ''){ + $type =3D 'opac'; + } # if +=20 + # setup colours if ($type eq 'opac'){ ! $main =3D '#99cccc'; ! $secondary =3D '#efe5ef'; } else { ! $main =3D '#cccc99'; ! $secondary =3D '#ffffcc'; ! } # else !=20 ! print $input->header; print startpage(); print startmenu($type); =20 + if ($type ne 'opac'){ + print << "EOF"; + + EOF + } # if +=20 + for (my $i =3D 1; $i < $count3; $i++) { + $additional .=3D "|" . $addauthor->[$i]->{'author'}; + } # for =20 if ($type eq 'catmain'){ print mkheadr(3,"Catalogue Maintenance"); ! } # if !=20 if ($dat->{'author'} ne ''){ print mkheadr(3,"$dat->{'title'} ($dat->{'author'}) $temp[4]"); *************** *** 55,59 **** print mkheadr(3,"$dat->{'title'} $temp[4]"); } ! print < --- 58,62 ---- print mkheadr(3,"$dat->{'title'} $temp[4]"); } ! print << "EOF"; =20 *************** *** 67,83 **** =20 =20 --- 70,86 ---- =20 =20 *************** *** 85,103 **** --- 151,155 ---- =20 } ! print << "EOF"; *************** *** 156,165 ****
BIBLIO RECORD=20 ! printend ! ; if ($type ne 'opac'){ print "$bib"; } ! print <
BIBLIO RECORD=20 ! EOF !=20 if ($type ne 'opac'){ print "$bib"; } ! print << "EOF";
! printend ! ; if ($type ne 'opac'){ print "=20 "; } ! print < ! printend ! ; =20 =20 if ($type ne 'opac'){ ! print <Subtitle: $dat->{'subtitle'}
Author: $dat->{'author'}
--- 88,105 ----
! EOF !=20 if ($type ne 'opac'){ print "=20 "; } ! print << "EOF";
! EOF =20 =20 if ($type ne 'opac'){ ! print << "EOF"; Subtitle: $dat->{'subtitle'}
Author: $dat->{'author'}
*************** *** 113,118 **** Total Number of Items: $count

! printend ! ; } else { --- 115,120 ---- Total Number of Items: $count

! EOF !=20 } else { *************** *** 149,153 **** =20 } ! print <

!=20 ! printend ! ; !=20 !=20 ! #print @items; =20 my $i=3D0; --- 158,162 ---- ! EOF =20 my $i=3D0; *************** *** 174,179 **** my $colour=3D1; while ($i < $count){ ! # print $items[$i],"
"; ! my @results=3Dsplit('\t',$items[$i]); if ($type ne 'opac'){ $results[1]=3Dmklink("/cgi-bin/koha/moredetail.pl?item=3D$results[5]&bi= b=3D$bib&bi=3D$results[8]&type=3D$type",$results[1]); --- 171,176 ---- my $colour=3D1; while ($i < $count){ !=20 ! my @results =3D split('\t', $items[$i]); if ($type ne 'opac'){ $results[1]=3Dmklink("/cgi-bin/koha/moredetail.pl?item=3D$results[5]&bi= b=3D$bib&bi=3D$results[8]&type=3D$type",$results[1]); *************** *** 217,229 **** print mktablehdr(); if ($type ne 'opac'){ ! print <

HELP
Update Biblio for all Items: Click on the Modify button [left= ] to amend the biblio. Any changes you make will update the record for al= l the items listed above.

Updating the Biblio for only ONE or SOME Items:=20 ! printend ! ; if ($type eq 'catmain'){ ! print <

HELP
Update Biblio for all Items: Click on the Modify button [left= ] to amend the biblio. Any changes you make will update the record for al= l the items listed above.

Updating the Biblio for only ONE or SOME Items:=20 ! EOF !=20 if ($type eq 'catmain'){ ! print << "EOF"; If some of the items listed above need a different biblio,=20 you need to click on the wrong item, then shift the group it belongs to, to= the correct biblio. *************** *** 232,245 **** =20 ! printend ! ; } else { ! print <acquisitions proce= ss to fix this. You will need to "re-order" the items, and delete them from t= his biblio.

=20 ! printend ! ; } } --- 229,242 ---- =20 ! EOF !=20 } else { ! print << "EOF"; If some of the items listed above need a different biblio, or are on the wr= ong biblio, you must use the acquisitions proce= ss to fix this. You will need to "re-order" the items, and delete them from t= his biblio.

=20 ! EOF !=20 } } --===============0826767795949352635==--