[Koha-devel] templating Branchtransfers.pl and other circulation pages.

Henri-Damien LAURENT hdl at ifrance.com
Fri Jan 24 04:57:03 CET 2003


Hi,
I've got a problem templating circulation pages....
Traditionally, pages have One menu....
But there, startmenu returns a list.... that may have more than one 
element.

print startpage();

my @inp=startmenu('circulation');

if ($query->param('barcode') eq '' && $query->param('charges') eq 'yes'){

    my $count=@inp;

     for (my $i=0;$i<$count;$i++){

     $inp[$i]=~ s/onLoad=focusinput\(\)/onLoad=focusinput\(\)\;messenger\(\"\/cgi-bin\/koha\/pay.pl?bornum=$bornum\",700,600\)\;window1.focus\(\)/;

     }

}

print @inp;

What does that mean for web pages ?
I donot have the old version to see what it means.
If anyone could help, that might be cool :-)

Another question...
In circulation.pl, some big parts of the page are conditioned to 
subroutines results...
I am wondering if it would be a good idea to have them included so that 
it would be nicer for HTML maintenance.
Hence, if not advised not to do so, I am to do it in ONE file in order 
to make unity in developpement.

Have a nice day.
Henri-Damien LAURENT





More information about the Koha-devel mailing list