/[webpac2]/trunk/vhost/koha/html.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/vhost/koha/html.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1239 - (hide annotations)
Sun Jul 12 15:10:23 2009 UTC (14 years, 10 months ago) by dpavlin
File size: 372 byte(s)
example search for Koha database

1 dpavlin 1239 package koha::html;
2    
3     use strict;
4     use warnings;
5    
6     sub url {
7     my ($self,$url) = @_;
8     qq{<a href="$url">$url</a>};
9     }
10    
11     sub title {
12     my ($self,$title,$data) = @_;
13     my $biblionumber = $data->{biblionumber} || die; # title only without biblionumber
14    
15     qq|<a target="koha.ffzg.hr" href="http://koha.ffzg.hr/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber">$title</a>|;
16     }
17    
18     1;

  ViewVC Help
Powered by ViewVC 1.1.26