[9/30] Patron Card Creator home page
authorChris Nighswonger <cnighswonger@foundations.edu>
Mon, 11 Jan 2010 23:18:36 +0000 (18:18 -0500)
committerChris Nighswonger <cnighswonger@foundations.edu>
Mon, 11 Jan 2010 23:18:36 +0000 (18:18 -0500)
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tmpl [new file with mode: 0644]
patroncards/home.pl [new file with mode: 0755]

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/home.tmpl
new file mode 100644 (file)
index 0000000..e407fe7
--- /dev/null
@@ -0,0 +1,46 @@
+    <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
+    <title>Koha &rsaquo; Tools &rsaquo; Patron Cards Home</title>
+    <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+    <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/card.css" />
+</head>
+<body>
+    <!-- TMPL_INCLUDE NAME="header.inc" -->
+    <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
+    <div id="breadcrumbs">
+        <a href="/cgi-bin/koha/mainpage.pl">Home</a>&rsaquo;
+        <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>&rsaquo;
+        Patroncards Home
+    </div>
+    <div id="doc3" class="yui-t2">
+        <div id="bd">
+            <div id="yui-main">
+                <div class="yui-b">
+                    <div class="yui-g">
+                    <!-- TMPL_INCLUDE NAME="patroncards-toolbar.inc" -->
+                        <div class="yui-u first">
+                            <div class="justify homeimage">
+                            <div class="lci_01"></div>
+                            <div class="lci_02"></div>
+                            <div class="lci_03"></div>
+                                <h2>Welcome to Koha's Patron Card Creator Module</h2>
+                                <p>The Patron Card Creator allow you to use layouts and templates which you design to print a nearly unlimited variety of patron cards including barcodes. Here are some of the features of the Patron Card Creator module:</p>
+                                <ul>
+                                    <li>Customize patron card layouts</li>
+                                    <li>Design custom card templates for printed patron cards</li>
+                                    <li>Build and manage batches of patron cards</li>
+                                    <li>Export single or multiple batches</li>
+                                    <li>Export single or multiple patron cards from within a batch</li>
+                                    <li>Export card data as a PDF readable by any standard PDF reader, making patron cards printable directly on a printer</li>
+                                </ul>
+                                <p>At the top of each screen within the Patron Card Creator, you will see a toolbar allowing quick access to relevant functions. The menu to the left of each screen also allows easy access to the different sections of the Patron Card Creator. The breadcrumb trail near the top of each screen will give specific indication as to where you are within the Patron Card Creator module and allow quick navigation to previously traversed sections. And finally, you can find more detailed information on each section of the Patron Card Creator by clicking the online help link at the upper left-hand corner of every page.</p>
+                                <p>The developers of the Patron Card Creator module hope you will find this an extremely useful tool. You are encouraged to submit any enhancement requests as well as any bugs via <a href="http://bugs.koha.org/">Koha Project Bugzilla</a>.</p>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+            <div class="yui-b">
+                <!-- TMPL_INCLUDE NAME="patroncards-menu.inc" -->
+            </div>
+        </div>
+        <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
diff --git a/patroncards/home.pl b/patroncards/home.pl
new file mode 100755 (executable)
index 0000000..d5aad19
--- /dev/null
@@ -0,0 +1,41 @@
+#!/usr/bin/perl
+#
+# Copyright 2006 Katipo Communications.
+# Parts Copyright 2009 Foundations Bible College.
+#
+# 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;
+use warnings;
+
+use CGI;
+
+use C4::Auth qw(get_template_and_user);
+use C4::Output qw(output_html_with_http_headers);
+
+my $cgi = new CGI;
+my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
+    {
+        template_name   => "patroncards/home.tmpl",
+        query           => $cgi,
+        type            => "intranet",
+        authnotrequired => 0,
+        flagsrequired   => { catalogue => 1 },
+        debug           => 1,
+    }
+);
+
+output_html_with_http_headers $cgi, $cookie, $template->output;