# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
+# $Id$
+
=head1 NAME
MARCdetail.pl : script to show a biblio in MARC format
use MARC::Record;
use C4::Biblio;
use C4::Acquisition;
-use C4::Bull; #uses getsubscriptionfrom biblionumber
+use C4::Serials; #uses getsubscriptionfrom biblionumber
use HTML::Template;
my $query=new CGI;
my $record =MARCgetbiblio($dbh,$bibid);
#coping with subscriptions
-my $subscriptionsnumber = getsubscriptionfrombiblionumber($biblionumber);
+my $subscriptionsnumber = GetSubscriptionFromBiblionumber($biblionumber);
my $dat = MARCmarc2koha($dbh,$record);
-my @subscriptions = getsubscriptions($dat->{title},$dat->{issn},$biblionumber);
+my @subscriptions = GetSubscriptions($dat->{title},$dat->{issn},$biblionumber);
my @subs;
foreach my $subscription (@subscriptions){
my %cell;
$cell{subscriptionid}= $subscription->{subscriptionid};
$cell{subscriptionnotes}= $subscription->{notes};
#get the three latest serials.
- $cell{latestserials}=getlatestserials($subscription->{subscriptionid},3);
+ $cell{latestserials}=GetLatestSerials($subscription->{subscriptionid},3);
push @subs, \%cell;
}
#!/usr/bin/perl
+# Copyright 2000-2002 Katipo Communications
+#
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+
+# $Id$
+
use strict;
use CGI;
use C4::Auth;
use C4::Context;
use C4::Koha;
use C4::Letters;
-use C4::Bull;
+use C4::Serials;
# use C4::Search;
use HTML::Template;
} else {
if ($alerttype eq 'issue') { # alert for subscription issues
- my $subscription = &getsubscription($externalid);
+ my $subscription = &GetSubscription($externalid);
$template->param("typeissue$op" => 1,
bibliotitle => $subscription->{bibliotitle},
notes => $subscription->{notes},
#!/usr/bin/perl
+
+# Copyright 2000-2002 Katipo Communications
+#
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+
+# $Id$
+
use strict;
require Exporter;
use CGI;
use C4::Auth;
-use C4::Bull; #uses getsubscriptionfrom biblionumber
+use C4::Serials; #uses getsubscriptionfrom biblionumber
use C4::Interface::CGI::Output;
use HTML::Template;
use C4::Biblio;
my ( $authorcount, $addauthor ) = &getaddauthor($biblionumber);
my ( $webbiblioitemcount, @webbiblioitems ) = &getwebbiblioitems($biblionumber);
my ( $websitecount, @websites ) = &getwebsites($biblionumber);
-my $subscriptionsnumber = getsubscriptionfrombiblionumber($biblionumber);
+my $subscriptionsnumber = GetSubscriptionFromBiblionumber($biblionumber);
#coping with subscriptions
-my $subscriptionsnumber = getsubscriptionfrombiblionumber($biblionumber);
+my $subscriptionsnumber = GetSubscriptionFromBiblionumber($biblionumber);
my @subscriptions =
- getsubscriptions( $dat->{title}, $dat->{issn}, $biblionumber );
+ GetSubscriptions( $dat->{title}, $dat->{issn}, $biblionumber );
my @subs;
foreach my $subscription (@subscriptions) {
my %cell;
#get the three latest serials.
$cell{latestserials} =
- getlatestserials( $subscription->{subscriptionid}, 3 );
+ GetLatestSerials( $subscription->{subscriptionid}, 3 );
push @subs, \%cell;
}
my $authorwords = \@author;
#coping with subscriptions
-my $subscriptionsnumber = getsubscriptionfrombiblionumber($biblionumber);
+my $subscriptionsnumber = GetSubscriptionFromBiblionumber($biblionumber);
my @subscriptions =
- getsubscriptions( $dat->{title}, $dat->{issn}, $biblionumber );
+ GetSubscriptions( $dat->{title}, $dat->{issn}, $biblionumber );
my @subs;
foreach my $subscription (@subscriptions) {
warn "subsid :" . $subscription->{subscriptionid};
#get the three latest serials.
$cell{latestserials} =
- getlatestserials( $subscription->{subscriptionid}, 3 );
+ GetLatestSerials( $subscription->{subscriptionid}, 3 );
push @subs, \%cell;
}
#!/usr/bin/perl
+# Copyright 2000-2002 Katipo Communications
+#
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+
+# $Id$
+
use strict;
use CGI;
use C4::Auth;
use C4::Koha;
use C4::Date;
-use C4::Bull;
+use C4::Serials;
use C4::Letters;
use C4::Output;
use C4::Interface::CGI::Output;
my ($template, $loggedinuser, $cookie);
my $biblionumber = $query->param('biblionumber');
if ($selectview eq "full"){
- my $subscriptions = get_full_subscription_list_from_biblionumber($biblionumber);
+ my $subscriptions = GetFullSubscriptionListFromBiblionumber($biblionumber);
my $title = $subscriptions->[0]{bibliotitle};
my $yearmin=$subscriptions->[0]{year};
);
} else {
- my $subscriptions = get_subscription_list_from_biblionumber($biblionumber);
+ my $subscriptions = GetSubscriptionListFromBiblionumber($biblionumber);
($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "opac-serial-issues.tmpl",
}
if ($op eq "add_confirm") {
- &newsuggestion($borrowernumber,$title,$author,$publishercode,$note,$copyrightdate,$volumedesc,$publicationyear,$place,$isbn,'');
- # empty fields, to avoid filter in "searchsuggestion"
+ &NewSuggestion($borrowernumber,$title,$author,$publishercode,$note,$copyrightdate,$volumedesc,$publicationyear,$place,$isbn,'');
+ # empty fields, to avoid filter in "SearchSuggestion"
$title='';
$author='';
$publishercode='';
if ($op eq "delete_confirm") {
my @delete_field = $input->param("delete_field");
foreach my $delete_field (@delete_field) {
- &delsuggestion($borrowernumber,$delete_field);
+ &DelSuggestion($borrowernumber,$delete_field);
}
$op='else';
}
-my $suggestions_loop= &searchsuggestion($borrowernumber,$author,$title,$publishercode,$status,$suggestedbyme);
+my $suggestions_loop= &SearchSuggestion($borrowernumber,$author,$title,$publishercode,$status,$suggestedbyme);
$template->param(suggestions_loop => $suggestions_loop,
title => $title,
author => $author,
#!/usr/bin/perl
+
+# Copyright 2000-2002 Katipo Communications
+#
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+
+# $Id$
+
use strict;
require Exporter;
use CGI;
use HTML::Template;
-
use C4::Auth; # get_template_and_user
use C4::Interface::CGI::Output;
use C4::Suggestions;
my ($newstatus,$suggestionid) = ($1,$2);
$newstatus="REJECTED" if $newstatus eq "R";
$newstatus="ACCEPTED" if $newstatus eq "A";
- changestatus($suggestionid,$newstatus,$loggedinuser);
+ ModStatus($suggestionid,$newstatus,$loggedinuser);
}
}
$op="else";
if ($op eq "delete_confirm") {
my @delete_field = $input->param("delete_field");
foreach my $delete_field (@delete_field) {
- &delsuggestion($loggedinuser,$delete_field);
+ &DelSuggestion($loggedinuser,$delete_field);
}
$op='else';
}
-my $suggestions_loop= &searchsuggestion("","","","",'ASKED',"");
+my $suggestions_loop= &SearchSuggestion("","","","",'ASKED',"");
$template->param(suggestions_loop => $suggestions_loop,
"op_$op" => 1,
intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),