Browse Source

fix all templates errors reported by xt/author/valid-templates.t

In process, removed four disused HTML templates and one
disused script, serials/receipt.pl.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
3.2.x
Galen Charlton 15 years ago
parent
commit
70b7017eca
  1. 43
      koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio-nomarc.tmpl
  2. 128
      koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem-nomarc.tmpl
  3. 4
      koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tmpl
  4. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tmpl
  5. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128c.tmpl
  6. 78
      koha-tmpl/intranet-tmpl/prog/en/modules/serials/receipt-search-result.tmpl
  7. 75
      koha-tmpl/intranet-tmpl/prog/en/modules/tools/printerConfig.tmpl
  8. 149
      serials/receipt.pl

43
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio-nomarc.tmpl

@ -1,43 +0,0 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Cataloging &rsaquo; Add a Non-MARC Record</title>
<!-- TMPL_INCLUDE NAME="doc-head-close-addbiblio.inc" -->
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
<!-- TMPL_IF name="ERROR" -->
Please Specify a Title
<!-- /TMPL_IF -->
<form action="savebiblio.pl" method="post">
<table>
<caption>Adding a new bibliographic record</caption>
<tr><th scope="row"><label for="title">Title: *</label></th><td><input name="title" id="title" type="text" size="40" /> * Required</td>
</tr>
<tr><th scope="row"><label for="subtitle">Subtitle:</label></th><td><input name="subtitle" id="subtitle" type="text" size="40" /></td>
</tr>
<tr><th scope="row"><label for="author">Author:</label></th><td><input name="author" id="author" type="text" size="40" /></td>
</tr>
<tr><th scope="row"><label for="seriestitle">Series Title:</label><br />
<i>(if applicable)</i></th><td><input name="seriestitle" type="text" id="seriestitle" size="40" /></td>
</tr>
<tr><th scope="row"><label for="copyrightdate">Copyright Date:</label></th><td><input id="copyrightdate" name="copyrightdate" type="text" size="40" /></td>
</tr>
<tr><th scope="row"><label for="abstract">Abstract:</label></th><td><textarea cols="30" id="abstract" rows="6" name="abstract"></textarea></td>
</tr>
<tr><th scope="row"><label for="bib-notes">Notes:</label></th><td><textarea cols="30" rows="6" id="bib-notes" name="notes"></textarea></td>
</tr>
</table>
<input type="submit" value="Add Record" />
</form>
</div>
</div>
</div>
<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

128
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem-nomarc.tmpl

@ -1,128 +0,0 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Cataloging &rsaquo; Add Items</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">
<!-- TMPL_IF NAME="NOBARCODE" -->
You must give the item a barcode
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="NOBIBLIOITEM" -->
You must create a new group for your item to be
added to<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="BARCODEINUSE" -->
Sorry, that barcode is already in use<!-- /TMPL_IF -->
<h2>Add items for <!-- TMPL_VAR NAME="TITLE" escape="html" --></h2>
<table>
<caption>Bibliographic Details</caption>
<tr><th scope="row">Author:</th><td><!-- TMPL_VAR NAME="AUTHOR" --></td></tr>
<tr><th scope="row">Copyright:</th><td><!-- TMPL_VAR NAME="COPYRIGHT" --></td></tr>
<tr><th scope="row">Series Title:</th><td><!-- TMPL_VAR NAME="SERIES" --></td></tr>
<tr><th scope="row">Notes:</th><td><!-- TMPL_VAR NAME="NOTES" --></td></tr>
<!-- TMPL_LOOP NAME="BIBITEMS" -->
<tr><th scope="row">Biblioitem Number: </th><td><!-- TMPL_VAR NAME="biblioitemnumber" --></td></tr>
<tr><th scope="row">Item Type: </th><td><!-- TMPL_VAR NAME="itemtype" --></td></tr>
<tr><th scope="row">ISBN:</th><td><!-- TMPL_VAR NAME="isbn" --></td></tr>
<tr><th scope="row">Dewey:</th><td><!-- TMPL_VAR NAME="dewey" --></td></tr>
<tr><th scope="row">Publisher:</th><td><!-- TMPL_VAR NAME="publishercode" --></td></tr>
<tr><th scope="row">Place:</th><td><!-- TMPL_VAR NAME="place" --></td></tr>
<tr><th scope="row">Date:</th><td><!-- TMPL_VAR NAME="publicationyear" --></td></tr>
<!-- TMPL_LOOP NAME="ITEMS -->
<tr><th scope="row">Item:</th><td><!-- TMPL_VAR NAME="barcode" --></td></tr>
<tr><th scope="row">Home Library:</th><td><!-- TMPL_VAR NAME="homebranch" --></td></tr>
<tr><th scope="row">Notes:</th><td><!-- TMPL_VAR NAME="itemnotes" --></td></tr>
<!-- /TMPL_LOOP -->
<!-- /TMPL_LOOP -->
</table>
<form action="saveitem.pl" method="post">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="BIBNUM" -->" />
<table>
<caption>Add New Item</caption>
<tr><th scope="row"><label for="barcode">Item Barcode:</label></th><td><input type="text" id="barcode" name="barcode" size="40" /></td>
</tr>
<tr><th scope="row"><label for="homebranch">Library:</label></th><td><select name="homebranch" id="branch">
<!-- TMPL_LOOP NAME="BRANCHES" -->
<option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
<!-- /TMPL_LOOP -->
</select></td>
</tr>
<tr><th scope="row"><label for="replacementprice">Replacement Price:</label></th><td><input type="text" name="replacementprice" id="replacementprice" size="40" /></td>
</tr>
<tr><th scope="row"><label for="itemnotes">Notes:</label></th><td><textarea name="itemnotes" id="itemnotes" cols="30" rows="6"></textarea></td>
</tr>
<tr>
<th colspan="2" >Add to existing group</td>
</tr>
<tr><th scope="row"><label for="biblioitemnumber">Biblioitem Number:</label></th><td><select name="biblioitemnumber" id="biblioitemnumber">
<!-- TMPL_LOOP NAME="BIBITEMS" -->
<option value="<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="itemtype" --></option>
<!-- /TMPL_LOOP -->
</select></td></tr>
</table>
<input type="submit" name="existinggroup" value="Add New Item to Existing Group" />
<table>
<caption>OR Add to a new
Group:</caption>
<tr><th scope="row"><label for="itemtype">Item Type:</label></th><td><select name="itemtype" id="itemtype">
<!-- TMPL_LOOP NAME="ITEMTYPES" -->
<option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
<!-- /TMPL_LOOP -->
</select></td>
</tr>
<tr><th scope="row"><label for="isbn">ISBN:</label></th><td><input type="text" name="isbn" id="isbn" size="40" /></td>
</tr>
<tr><th scope="row"><label for="publishercode">Publisher:</label></th><td><input type="text" name="publishercode" id="publishercode" size="40" /></td>
</tr>
<tr><th scope="row"><label for="publicationyear">Publication Year:</label></th><td><input type="text" name="publicationyear" id="publicationyear" size="40" /></td>
</tr>
<tr><th scope="row"><label for="place">Place of Publication:</label></th><td><input type="text" name="place" id="place" size="40" /></td>
</tr>
<tr><th scope="row"><label for="illus">Illustrator:</label></th><td><input type="text" name="illus" id="illus" size="40" /></td>
</tr>
<tr><th scope="row"><label for="url">Website URL:</label></th><td><input type="text" name="url" id="url" size="40" /></td>
</tr>
<tr><th scope="row"><label for="dewey">Dewey:</label></th><td><input type="text" name="dewey" id="dewey" size="40" /></td>
</tr>
<tr><th scope="row"><label for="subclass">Dewey Subclass:</label></th><td><input type="text" name="subclass" id="subclass" size="40" /></td>
</tr>
<tr><th scope="row"><label for="issn">ISSN:</label></th><td><input type="text" name="issn" id="issn" size="40" /></td>
</tr>
<tr><th scope="row"><label for="lccn">LCCN:</label></th><td><input type="text" name="lccn" id="lccn" size="40" /></td>
</tr>
<tr><th scope="row"><label for="volume">Volume:</label></th><td><input type="text" name="volume" id="volume" size="40" /></td>
</tr>
<tr><th scope="row"><label for="number">Number:</label></th><td><input type="text" name="number" id="number" size="40" /></td>
</tr>
<tr><th scope="row"><label for="volumeddesc">Volume Description:</label></th><td><input type="text" name="volumeddesc" id="volumeddesc" size="40" /></td>
</tr>
<tr><th scope="row"><label for="pages">Pages:</label></th><td><input type="text" name="pages" id="pages" size="40" /></td>
</tr>
<tr><th scope="row"><label for="size">Size:</label></th><td><input name="size" size="40" /></td>
</tr>
<tr><th scope="row"><label for="notes">Notes:</label></th><td><textarea cols="30" rows="6" name="notes" id="notes"></textarea></td>
</tr>
</table>
<input type="submit" name="newgroup" value="Add New Item to New Group" />
</form>
</div>
</div>
</div>
<!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

4
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tmpl

@ -476,7 +476,7 @@ level)</option>
<option value="09">09- ISO 8957 (Hebrew set) Table 2</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="f1211 -->
<!-- TMPL_IF name="f1211" -->
<option value="11" selected="selected">11- ISO 5426-2 (Latin characters used in minor European
languages and obsolete typography)
</option>
@ -557,7 +557,7 @@ languages and obsolete typography)
<option value="09">09- ISO 8957 (Hebrew set) Table 2</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="f1311 -->
<!-- TMPL_IF name="f1311" -->
<option value="11" selected="selected">11- ISO 5426-2 (Latin characters used in minor European
languages and obsolete typography)</option>
<!-- TMPL_ELSE -->

2
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tmpl

@ -169,7 +169,7 @@
<!-- TMPL_ELSE -->
<option value="pu">Non precise (percussion)</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="f1pz -->
<!-- TMPL_IF name="f1pz" -->
<option value="pz" SELECTED>Autre percussions</option>
<!-- TMPL_ELSE -->
<option value="pz">Autre percussions</option>

2
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128c.tmpl

@ -164,7 +164,7 @@
<!-- TMPL_ELSE -->
<option value="pu">Non precise (percussion)</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="f1pz -->
<!-- TMPL_IF name="f1pz" -->
<option value="pz" SELECTED>Autre percussions</option>
<!-- TMPL_ELSE -->
<option value="pz">Autre percussions</option>

78
koha-tmpl/intranet-tmpl/prog/en/modules/serials/receipt-search-result.tmpl

@ -1,78 +0,0 @@
<!-- TMPL_INCLUDE NAME="serials-top.inc" -->
<!--TMPL_INCLUDE NAME="menu-serials.inc" -->
<div id="mainbloc">
<h1>Serial search results</h1>
<div id="resultnumber">
<p>
<!-- TMPL_IF NAME="displayprev" -->
<a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE="URL" -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">
<img src="/intranet-tmpl/default/images/numbers/prev.gif" alt="Previous" border="0" />
</a>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="numbers" -->
<!-- TMPL_IF NAME="highlight" -->
<img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->-highlight.gif" alt="<!-- TMPL_VAR NAME="number" -->" />
<!-- TMPL_ELSE -->
<a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE="URL" -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" border="0" alt="<!-- TMPL_VAR NAME="number" -->" /></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<!-- TMPL_IF NAME="displaynext" -->
<a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE="URL" -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><img src="/intranet-tmpl/default/images/numbers/next.gif" border="0" alt="Next" /></a>
<!-- /TMPL_IF -->
</p>
</div>
<div id="resultlist">
<table>
<tr>
<th>Serial</th>
<th>View</th>
<th>State of collection</th>
<th>Delete</th>
</tr>
<!-- TMPL_LOOP name="result" -->
<tr>
<td><!-- TMPL_VAR name="serial" --></td>
<td>
<div align="center"> <a href="subscription-detail.pl?suscr=<!-- TMPL_VAR name="subscriptionid" -->">
<img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png" width="32" hspace="0" vspace="0" border="0" alt="Authority number <!-- TMPL_VAR name="authid" -->" title="Serial number<!-- TMPL_VAR name="subscriptionid" -->" />
</a> </div>
</td>
<td><div align="center"><a href="serials-recieve.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&amp;serial=<!-- TMPL_VAR name="serial" -->">
<img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR name="theme" -->/images/Fleche.jpg" width="32" hspace="0" vspace="0" border="0" alt="Subscribtion serial<!-- TMPL_VAR name="subscriptionid" -->" title="Serial number<!-- TMPL_VAR name="subscriptionid" -->" />
</a></td></div>
</tr>
<!-- /TMPL_LOOP -->
</table>
</div>
<div id="resultnumber">
<p>
<!-- TMPL_IF NAME="displayprev" -->
<a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE="URL" -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><img src="/intranet-tmpl/default/images/numbers/prev.gif" border="0" alt="Previous" /></a>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="numbers" -->
<!-- TMPL_IF NAME="highlight" -->
<img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->-highlight.gif" />
<!-- TMPL_ELSE -->
<a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE="URL" -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><img src="/intranet-tmpl/default/images/numbers/<!-- TMPL_VAR NAME="number" -->.gif" border="0" alt="<!-- TMPL_VAR NAME="number" -->" /></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<!-- TMPL_IF NAME="displaynext" -->
<a href="search.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR name="val" ESCAPE="URL" -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><img src="/intranet-tmpl/default/images/numbers/next.gif" border="0" alt="Next" /></a>
<!-- /TMPL_IF -->
</p>
</div>
</div>
<!-- TMPL_INCLUDE NAME="serials-bottom.inc" -->
<script language="JavaScript" type="text/javascript" >
function do_delete(page)
{
window.location = page;
}
</script>

75
koha-tmpl/intranet-tmpl/prog/en/modules/tools/printerConfig.tmpl

@ -1,75 +0,0 @@
<!-- TMPL_INCLUDE NAME="doc-head-barcodes.inc" -->
<h1>Printer Configuration</h1>
<h3>Set printer configuration corresponding to your environment</h3>
<ul>
<li>Set width and height of the label that you are going to work with.</li>
<li>Set your system's default DPI.</li>
<li>Set the page type.</li>
<li>Select how many columns and rows are in your page type.</li>
<li>Set left- and bottom-margins of the page that you are going to use. This parameter will help to center the barcodes on the labels.</li>
</ul>
<br />
<form method="post" action="<!-- TMPL_VAR NAME="SCRIPT_NAME" -->" name="form1">
<input type="hidden" name="saveSettings" value="1" />
<fieldset class="rows"><ol>
<li>
<label for="labelWidth">
Label width (Expressed in mm): </label>
<input id="labelWidth" type="text" name="labelWidth" size="5" value="<!-- TMPL_VAR NAME="LABEL_WIDTH" -->">
</li>
<li>
<label for="labelHeigth">
Label heigth (Expressed in mm): </label>
<input id="labelHeigth" type="text" name="labelHeigth" size="5" value="<!-- TMPL_VAR NAME="LABEL_HEIGTH" -->">
</li>
<li>
<label for="systemDpi">
System dpi: </label>
<input id="systemDpi" type="text" name="systemDpi" size="5" value="<!-- TMPL_VAR NAME="SYSTEM_DPI" -->">
</li>
<li>
<label for="pageType">
Page Type: </label>
<select name="pageType" id="pageType" size="1">
<!-- TMPL_IF name="A4" -->
<option value="A4" selected="selected">A4</option>
<!-- TMPL_ELSE -->
<option value="A4">A4</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="Letter" -->
<option value="Letter" selected="selected">Letter</option>
<!-- TMPL_ELSE -->
<option value="Letter">Letter</option>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="Legal" -->
<option value="Legal" selected="selected">Legal</option>
<!-- TMPL_ELSE -->
<option value="Legal">Legal</option>
<!-- /TMPL_IF --> </select>
</li>
<li>
<label for="columns">
Columns: </label>
<input id="columns" type="text" name="columns" size="5" value="<!-- TMPL_VAR NAME="COLUMNS" -->">
</li>
<li>
<label for="rows">
Rows: </label>
<input id="rows" type="text" name="rows" size="5" value="<!-- TMPL_VAR NAME="ROWS" -->">
</li>
<li>
<label for="marginBottom">
Margin Bottom (Expressed in mm): </label>
<input id="marginBottom" type="text" name="marginBottom" size="5" value="<!-- TMPL_VAR NAME="MARGIN_TOP" -->">
</li>
<li>
<label for="marginLeft">
Margin Left (Expressed in mm): </label>
<input id="marginLeft" type="text" name="marginLeft" size="5" value="<!-- TMPL_VAR NAME="MARGIN_LEFT" -->">
</li>
</ol></fieldset>
<fieldset class="action"><input type="submit" value="Save Settings" /></fieldset>
</form>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->

149
serials/receipt.pl

@ -1,149 +0,0 @@
#!/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
use strict;
use CGI;
use C4::Auth;
use C4::Output;
use C4::Context;
my $query = new CGI;
my $op = $query->param('op');
my $search = $query->param('titleorissn');
my $startfrom=$query->param('startfrom');
if ($op eq 'search')
{
my $total;
my $results;
my $dbh = C4::Context->dbh;
my @marclist = $query->param('marclist');
my @and_or = $query->param('and_or');
my @excluding = $query->param('excluding');
my @operator = $query->param('operator');
my @value = $query->param('value');
my $resultsperpage= $query->param('resultsperpage');
$resultsperpage = 19 unless $resultsperpage;
my $sth = $dbh->prepare("select subscriptionid, biblionumber from subscription");
$sth->execute();
my @finalsolution;
while (my $first_step = $sth->fetchrow_hashref)
{
my $sth2 = $dbh->prepare("select b3.title from biblioitems b2, biblio b3 where b3.biblionumber = ? and b2.biblionumber = b3.biblionumber and (b2.issn = ? or b3.title like ?)");
$sth2->execute($first_step->{'biblionumber'},$search, "%$search%");
my @answear;
@answear = $sth2->fetchrow_array;
$total = scalar @answear;
if ($total >= 1)
{
$first_step->{'serial'} = $answear[0];
push @finalsolution ,$first_step;
}
}
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "serials/receipt-search-result.tmpl",
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => {serials => 1},
debug => 1,
});
$template->param(subtable => \@finalsolution, total => $total
,);
my $displaynext=0;
my $displayprev=$startfrom;
if(($total - (($startfrom+1)*($resultsperpage))) > 0 ){
$displaynext = 1;
}
my @field_data = ();
for(my $i = 0 ; $i <= $#marclist ; $i++)
{
push @field_data, { term => "marclist", val=>$marclist[$i] };
push @field_data, { term => "and_or", val=>$and_or[$i] };
push @field_data, { term => "excluding", val=>$excluding[$i] };
push @field_data, { term => "operator", val=>$operator[$i] };
push @field_data, { term => "value", val=>$value[$i] };
}
my @numbers = ();
if ($total>$resultsperpage)
{
for (my $i=1; $i<$total/$resultsperpage+1; $i++)
{
if ($i<16)
{
my $highlight=0;
($startfrom==($i-1)) && ($highlight=1);
push @numbers, { number => $i,
highlight => $highlight ,
searchdata=> \@field_data,
startfrom => ($i-1)};
}
}
}
my $from = $startfrom*$resultsperpage+1;
my $to;
if($total < (($startfrom+1)*$resultsperpage))
{
$to = $total;
} else {
$to = (($startfrom+1)*$resultsperpage);
}
$results = \@finalsolution;
$template->param(result => $results) if $results;
$template->param(
startfrom=> $startfrom,
displaynext=> $displaynext,
displayprev=> $displayprev,
resultsperpage => $resultsperpage,
startfromnext => $startfrom+1,
startfromprev => $startfrom-1,
searchdata=>\@field_data,
total=>$total,
from=>$from,
to=>$to,
numbers=>\@numbers,
);
output_html_with_http_headers $query, $cookie, $template->output;
}
else{
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "serials/receipt.tmpl",
query => $query,
type => "intranet",
authnotrequired => 0,
flagsrequired => {serials => 1},
debug => 1,
});
output_html_with_http_headers $query, $cookie, $template->output;
}
Loading…
Cancel
Save