[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha koha-tmpl/intranet-tmpl/npl/en/acqui/displ... [dev_week]
From: |
Chris Cormack |
Subject: |
[Koha-cvs] koha koha-tmpl/intranet-tmpl/npl/en/acqui/displ... [dev_week] |
Date: |
Mon, 18 Jun 2007 21:57:23 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: dev_week
Changes by: Chris Cormack <rangi> 07/06/18 21:57:23
Added files:
koha-tmpl/intranet-tmpl/npl/en/acqui: display_marc.tmpl
acqui : showmarc.pl
Log message:
Files to display the marc record
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/npl/en/acqui/display_marc.tmpl?cvsroot=koha&only_with_tag=dev_week&rev=1.1.2.1
http://cvs.savannah.gnu.org/viewcvs/koha/acqui/showmarc.pl?cvsroot=koha&only_with_tag=dev_week&rev=1.1.2.1
Patches:
Index: koha-tmpl/intranet-tmpl/npl/en/acqui/display_marc.tmpl
===================================================================
RCS file: koha-tmpl/intranet-tmpl/npl/en/acqui/display_marc.tmpl
diff -N koha-tmpl/intranet-tmpl/npl/en/acqui/display_marc.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ koha-tmpl/intranet-tmpl/npl/en/acqui/display_marc.tmpl 18 Jun 2007
21:57:23 -0000 1.1.2.1
@@ -0,0 +1,5 @@
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Cataloging: MARC
Import<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<div id="main">
+<pre><!-- TMPL_VAR NAME="marc_formatted" --> </pre>
+</div>
+<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
Index: acqui/showmarc.pl
===================================================================
RCS file: acqui/showmarc.pl
diff -N acqui/showmarc.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ acqui/showmarc.pl 18 Jun 2007 21:57:23 -0000 1.1.2.1
@@ -0,0 +1,75 @@
+#!/usr/bin/perl
+
+# $Id: showmarc.pl,v 1.1.2.1 2007/06/18 21:57:23 rangi Exp $
+
+
+# Koha library project www.koha.org
+
+# Licensed under the GPL
+
+# Copyright 2007 Liblime
+#
+# 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
+
+use strict;
+
+# standard or CPAN modules used
+use CGI qw(:standard);
+use DBI;
+
+# Koha modules used
+use C4::Context;
+use C4::Output;
+use C4::Interface::CGI::Output;
+use HTML::Template;
+use C4::Auth;
+use C4::Breeding;
+use C4::Biblio;
+use MARC::Record;
+
+use Data::Dumper;
+
+my $userid = $ENV{'REMOTE_USER'};
+
+my $input = new CGI;
+my $biblionumber = $input->param('id');
+
+my $dbh = C4::Context->dbh;
+
+my $bibid = &MARCfind_MARCbibid_from_oldbiblionumber($dbh,$biblionumber);
+
+my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
+ {
+ template_name => "acqui/display_marc.tmpl",
+ query => $input,
+ type => "intranet",
+ authnotrequired => 0,
+ flagsrequired => { parameters => 1, management => 1, tools => 1 },
+ debug => 1,
+ }
+);
+
+$template->param( SCRIPT_NAME => $ENV{'SCRIPT_NAME'}, );
+my $sth;
+
+my $record =MARCgetbiblio($dbh,$bibid);
+
+my $formatted = $record->as_formatted;
+
+$template->param( MARC_FORMATTED => $formatted );
+
+output_html_with_http_headers $input, $cookie, $template->output;
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha koha-tmpl/intranet-tmpl/npl/en/acqui/displ... [dev_week],
Chris Cormack <=