[Koha-patches] [PATCH] bug 5405: remove disused script catalogue/suggest.pl
Galen Charlton
gmcharlt at gmail.com
Sun Nov 14 04:37:10 CET 2010
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
catalogue/suggest.pl | 59 --------------------
.../prog/en/modules/catalogue/suggest.tmpl | 51 -----------------
2 files changed, 0 insertions(+), 110 deletions(-)
delete mode 100755 catalogue/suggest.pl
delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/suggest.tmpl
diff --git a/catalogue/suggest.pl b/catalogue/suggest.pl
deleted file mode 100755
index c348c76..0000000
--- a/catalogue/suggest.pl
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/perl
-# WARNING: 4-character tab stops here
-
-# 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.,
-# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-use strict;
-#use warnings; FIXME - Bug 2505
-
-use CGI;
-use C4::Auth;
-
-use C4::Context;
-use C4::Auth;
-use C4::Output;
-use C4::Biblio;
-use C4::Acquisition;
-use C4::Koha; # XXX subfield_is_koha_internal_p
-
-# Creates the list of active tags using the active MARC configuration
-my $query=new CGI;
-my $Q=$query->param('Q');
-my @words = split / /,$Q;
-my $dbh = C4::Context->dbh;
-
-my $suggestions = findsuggestion($dbh,\@words);
-my @loop_suggests;
-foreach my $line (@$suggestions) {
- my ($word,$suggestion,$count) = split /\|/,$line;
- push @loop_suggests, { word => $word, suggestion =>$suggestion, count => $count };
-}
-
-my ($template, $loggedinuser, $cookie)
- = get_template_and_user({template_name => "catalogue/suggest.tmpl",
- query => $query,
- type => "intranet",
- authnotrequired => 0,
- flagsrequired => {editcatalogue => 'edit_catalogue'},
- debug => 1,
- });
-$template->param("loop" => \@loop_suggests,
- );
-
-output_html_with_http_headers $query, $cookie, $template->output;
-
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/suggest.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/suggest.tmpl
deleted file mode 100644
index ac1ae2b..0000000
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/suggest.tmpl
+++ /dev/null
@@ -1,51 +0,0 @@
-<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha › Suggestions</title>
-<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
-</head>
-<body>
-
-<!-- TMPL_INCLUDE NAME="header.inc" -->
-<div id="doc3" class="yui-t2">
-
- <div id="bd">
- <div id="yui-main">
- <div class="yui-b"><div class="yui-g">
-
- <table>
- <caption>Catalog Search</caption>
- <tr>
- <th>Initial word</th>
- <th>Suggested</th>
- <th>Used X times</th>
- </tr>
- <!-- TMPL_LOOP NAME="loop" -->
- <tr>
- <td><!-- TMPL_VAR NAME="word" --></td>
- <td><a href="javascript:Import('<!-- TMPL_VAR NAME="word" -->','<!-- TMPL_VAR NAME="suggestion" -->')">
- <!-- TMPL_VAR NAME="suggestion" -->
- </a></td>
- <td><!-- TMPL_VAR NAME="count" --></td>
- </tr>
- <!-- /TMPL_LOOP -->
- </table>
-
-<script language="javascript" type="text/javascript">
- function Import(Replaced,ReplaceBy) {
- for (i=0 ; i<opener.document.f.value.length ; i++) {
- opener.document.forms['f'].value[i].value = opener.document.forms['f'].value[i].value.replace(Replaced,ReplaceBy);
-// if (document.forms[0].kohafield[i].value == "biblioitems.isbn" && document.forms[0].field_value[i].value.length>0) {
-// strQuery += "&isbn="+document.forms[0].field_value[i].value;
-// }
-// opener.document.location= "../cataloguing/addbiblio.pl?z3950=1&oldbiblionumber=<!-- TMPL_VAR NAME="oldbiblionumber" -->&breedingid="+GetThisOne;
-// self.close();
-// return false;
- }
- }
-</script>
-
-</div>
-</div>
-</div>
-
-<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
-<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
--
1.7.0
More information about the Koha-patches
mailing list