koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha detail.pl,1.18,1.19


From: Ambrose Li
Subject: [Koha-cvs] CVS: koha detail.pl,1.18,1.19
Date: Sun, 09 Feb 2003 01:15:11 -0800

Update of /cvsroot/koha/koha
In directory sc8-pr-cvs1:/tmp/cvs-serv22211

Modified Files:
        detail.pl 
Log Message:
Updated to use get_template_and_user
Missing use C4::Interface::CGI::Output
Noted correct tab size


Index: detail.pl
===================================================================
RCS file: /cvsroot/koha/koha/detail.pl,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** detail.pl   2 Feb 2003 07:18:37 -0000       1.18
--- detail.pl   9 Feb 2003 09:15:09 -0000       1.19
***************
*** 1,3 ****
--- 1,4 ----
  #!/usr/bin/perl
+ # NOTE: Use standard 8-space tabs for this file (indents are 4 spaces)
  
  # Copyright 2000-2002 Katipo Communications
***************
*** 26,35 ****
  use C4::Search;
  use C4::Auth;
  
  my $query=new CGI;
  my $type=$query->param('type');
- #(-e "opac") && ($type='opac');
  ($type) || ($type='intra');
- my ($loggedinuser, $cookie, $sessionID) = checkauth($query, ($type eq 'opac') 
? (1) : (0));
  
  my $biblionumber=$query->param('bib');
--- 27,35 ----
  use C4::Search;
  use C4::Auth;
+ use C4::Interface::CGI::Output;
  
  my $query=new CGI;
  my $type=$query->param('type');
  ($type) || ($type='intra');
  
  my $biblionumber=$query->param('bib');
***************
*** 71,80 ****
  ($startfrom) || ($startfrom=0);
  
! my $template;
! if ($type eq 'opac') {
!       $template = gettemplate("catalogue/detail-opac.tmpl");
! } else {
!       $template=gettemplate("catalogue/detail.tmpl");
! }
  my $count=1;
  
--- 71,83 ----
  ($startfrom) || ($startfrom=0);
  
! my ($template, $loggedinuser, $cookie) = get_template_and_user({
!       template_name   => ($type eq 'opac'? 'catalogue/detail-opac.tmpl':
!                                            'catalogue/detail.tmpl'),
!       query           => $query,
!       type            => "intranet",
!       authnotrequired => ($type eq 'opac'),
!       flagsrequired   => {catalogue => 1},
!     });
! 
  my $count=1;
  
***************
*** 96,97 ****
--- 99,104 ----
  output_html_with_http_headers $query, $cookie, $template->output;
  
+ 
+ # Local Variables:
+ # tab-width: 8
+ # End:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]