/[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 1252 - (hide annotations)
Mon Jul 27 13:40:29 2009 UTC (14 years, 9 months ago) by mglavica
File size: 445 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 mglavica 1252 my $responsibility = $1 if $title =~ s{(\s+/\s+.+)$}{};
16    
17     qq|<a target="koha.ffzg.hr" href="http://koha.ffzg.hr/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber">$title</a>$responsibility|;
18 dpavlin 1239 }
19    
20     1;

  ViewVC Help
Powered by ViewVC 1.1.26