From eb5afe51d667afb0ab11c8e3ebcccff286251067 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 1 May 2009 17:59:04 -0500 Subject: [PATCH] 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 Signed-off-by: Henri-Damien LAURENT --- .../modules/cataloguing/addbiblio-nomarc.tmpl | 43 ----- .../modules/cataloguing/additem-nomarc.tmpl | 128 --------------- .../value_builder/unimarc_field_100.tmpl | 4 +- .../value_builder/unimarc_field_128b.tmpl | 2 +- .../value_builder/unimarc_field_128c.tmpl | 2 +- .../serials/receipt-search-result.tmpl | 78 --------- .../prog/en/modules/tools/printerConfig.tmpl | 75 --------- serials/receipt.pl | 149 ------------------ 8 files changed, 4 insertions(+), 477 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio-nomarc.tmpl delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem-nomarc.tmpl delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/serials/receipt-search-result.tmpl delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/tools/printerConfig.tmpl delete mode 100755 serials/receipt.pl diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio-nomarc.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio-nomarc.tmpl deleted file mode 100644 index 91dae9cdc9..0000000000 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio-nomarc.tmpl +++ /dev/null @@ -1,43 +0,0 @@ - -Koha › Cataloging › Add a Non-MARC Record - - -
- -
-
-
- - -Please Specify a Title - - -
- - - - - - - - - - - - - - - - - -
Adding a new bibliographic record
* Required

-(if applicable)
- - -
-
-
-
- - - \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem-nomarc.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem-nomarc.tmpl deleted file mode 100644 index aa610468f5..0000000000 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem-nomarc.tmpl +++ /dev/null @@ -1,128 +0,0 @@ - -Koha › Cataloging › Add Items - - - - - -
- -
-
-
- - -You must give the item a barcode - - - -You must create a new group for your item to be -added to - - -Sorry, that barcode is already in use - -

Add items for

- - - - - - - - - - - - - - - - - - - - - - - - -
Bibliographic Details
Author:
Copyright:
Series Title:
Notes:
Biblioitem Number:
Item Type:
ISBN:
Dewey:
Publisher:
Place:
Date:
Item:
Home Library:
Notes:
- - -
-" /> - - - - - - - - - - - - - -
Add New Item
Add to existing group -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
OR Add to a new -Group:
- -
-
-
-
- - - \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tmpl index 72754dbc59..f91dae577d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_100.tmpl @@ -476,7 +476,7 @@ level) - + @@ -557,7 +557,7 @@ languages and obsolete typography) - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tmpl index 59dd3febb5..9fd586fec0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128b.tmpl @@ -169,7 +169,7 @@ - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128c.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128c.tmpl index 998ff116ba..fffc2dc378 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128c.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_128c.tmpl @@ -164,7 +164,7 @@ - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/receipt-search-result.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/receipt-search-result.tmpl deleted file mode 100644 index a1f611b31f..0000000000 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/receipt-search-result.tmpl +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/printerConfig.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/printerConfig.tmpl deleted file mode 100644 index 5a392dd45f..0000000000 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/printerConfig.tmpl +++ /dev/null @@ -1,75 +0,0 @@ - - -

Printer Configuration

-

Set printer configuration corresponding to your environment

-
    -
  • Set width and height of the label that you are going to work with.
  • -
  • Set your system's default DPI.
  • -
  • Set the page type.
  • -
  • Select how many columns and rows are in your page type.
  • -
  • 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.
  • -
-
-
" name="form1"> - -
    -
  1. - - "> -
  2. -
  3. - - "> -
  4. -
  5. - - "> -
  6. -
  7. - - -
  8. -
  9. - - "> -
  10. -
  11. - - "> -
  12. -
  13. - - "> -
  14. -
  15. - - "> -
  16. -
-
-
- - diff --git a/serials/receipt.pl b/serials/receipt.pl deleted file mode 100755 index b4dc9ddc6c..0000000000 --- a/serials/receipt.pl +++ /dev/null @@ -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; -} -- 2.20.1