3 # Copyright 2000-2002 Katipo Communications
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 2 of the License, or (at your option) any later
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with Koha; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 ISBDdetail.pl : script to show a biblio in ISBD format
30 This script needs a biblionumber as parameter
37 #use warnings; FIXME - Bug 2505
46 use C4::Members; # to use GetMember
47 use C4::Branch; # GetBranchDetail
48 use C4::Serials; # CountSubscriptionFromBiblionumber
49 use C4::Search; # enabled_staff_search_views
51 #---- Internal function
55 my $dbh = C4::Context->dbh;
57 my $biblionumber = $query->param('biblionumber');
60 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
62 template_name => "catalogue/ISBDdetail.tmpl",
66 flagsrequired => { catalogue => 1 },
70 if($query->cookie("holdfor")){
71 my $holdfor_patron = GetMember('borrowernumber' => $query->cookie("holdfor"));
73 holdfor => $query->cookie("holdfor"),
74 holdfor_surname => $holdfor_patron->{'surname'},
75 holdfor_firstname => $holdfor_patron->{'firstname'},
76 holdfor_cardnumber => $holdfor_patron->{'cardnumber'},
80 # my @blocs = split /\@/,$ISBD;
81 # my @fields = $record->fields();
82 my $res = GetISBDView($biblionumber, "intranet");
84 # count of item linked with biblio
85 my $itemcount = GetItemsCount($biblionumber);
86 $template->param( count => $itemcount);
87 my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber);
89 if ($subscriptionsnumber) {
90 my $subscriptions = GetSubscriptionsFromBiblionumber($biblionumber);
91 my $subscriptiontitle = $subscriptions->[0]{'bibliotitle'};
93 subscriptionsnumber => $subscriptionsnumber,
94 subscriptiontitle => $subscriptiontitle,
100 biblionumber => $biblionumber,
102 z3950_search_params => C4::Search::z3950_search_args(GetBiblioData($biblionumber)),
103 C4::Search::enabled_staff_search_views,
106 output_html_with_http_headers $query, $cookie, $template->output;