functions that were in C4::Interface::CGI::Output are now in C4::Output.
authorhdl <hdl>
Tue, 24 Apr 2007 13:54:28 +0000 (13:54 +0000)
committerhdl <hdl>
Tue, 24 Apr 2007 13:54:28 +0000 (13:54 +0000)
So this implies quite a change for files.
Sorry about conflicts which will be caused.
directory Interface::CGI should now be dropped.
I noticed that many scripts (reports ones, but also some circ/stats.pl or opac-topissues) still use Date::Manip.

199 files changed:
C4/Auth.pm
C4/Output.pm
about.pl
acqui/acqui-home.pl
acqui/addorder.pl
acqui/basket.pl
acqui/bookfund.pl
acqui/booksellers.pl
acqui/histsearch.pl
acqui/lateorders.pl
acqui/neworderbiblio.pl
acqui/neworderempty.pl
acqui/newordersuggestion.pl
acqui/orderreceive.pl
acqui/parcel.pl
acqui/parcels.pl
acqui/spent.pl
acqui/supplier.pl
admin/admin-home.pl
admin/aqbookfund.pl
admin/aqbudget.pl
admin/auth_subfields_structure.pl
admin/auth_tag_structure.pl
admin/authorised_values.pl
admin/authtypes.pl
admin/biblio_framework.pl
admin/branches.pl
admin/categorie.pl
admin/categoryitem.pl
admin/checkmarc.pl
admin/cities.pl
admin/currency.pl
admin/finesrules.pl
admin/issuingrules.pl
admin/itemtypecategory.pl
admin/itemtypes.pl
admin/itemtypesubcategory.pl
admin/koha2marclinks.pl
admin/letter.pl
admin/marc_subfields_structure.pl
admin/marctagstructure.pl
admin/mediatype.pl
admin/printers.pl
admin/roadtype.pl
admin/systempreferences.pl
admin/thesaurus.pl
admin/z3950servers.pl
authorities/auth_finder.pl
authorities/authorities-home.pl
authorities/authorities.pl
authorities/blinddetail-biblio-search.pl
authorities/detail-biblio-search.pl
authorities/detail.pl
barcodes/barcodes.pl
barcodes/label-home.pl
barcodes/label-item-search.pl
barcodes/label-manager.pl
barcodes/label-print-opus-pdf.pl
barcodes/label-print-pdf.pl
barcodes/label-print.pl
barcodes/printerConfig.pl
bookshelves/addbookbybiblionumber.pl
bookshelves/shelves.pl
catalogue/ISBDdetail.pl
catalogue/MARCdetail.pl
catalogue/detail.pl
catalogue/detailprint.pl
catalogue/dictionary.pl
catalogue/issuehistory.pl
catalogue/moredetail.pl
catalogue/search.pl
catalogue/suggest.pl
cataloguing/addbiblio.pl
cataloguing/addbooks.pl
cataloguing/additem.pl
cataloguing/thesaurus_popup.pl
cataloguing/value_builder/labs_theses.pl
cataloguing/value_builder/marc21_field_003.pl
cataloguing/value_builder/marc21_field_005.pl
cataloguing/value_builder/marc21_field_040c.pl
cataloguing/value_builder/marc21_field_040d.pl
cataloguing/value_builder/unimarc_field_210c.pl
cataloguing/value_builder/unimarc_field_4XX.pl
cataloguing/value_builder/usmarc_field_952v.pl
cataloguing/z3950_search.pl
circ/branchoverdues.pl
circ/branchtransfers.pl
circ/circulation.pl
circ/overdue.pl
circ/reserve.pl
circ/returns.pl
circ/selectbranchprinter.pl
circ/stats.pl
export/export.pl
export/export_filtered.pl
export/marc.pl
help.pl
installer/InstallAuth.pm
installer/install.pl
members/boraccount.pl
members/borrowers_details.pl
members/deletemem.pl
members/guarantor_search.pl
members/mancredit.pl
members/maninvoice.pl
members/member-flags.pl
members/member-password.pl
members/member-picupload.pl
members/member.pl
members/memberentry.pl
members/members-home.pl
members/moremember.pl
members/pay.pl
members/readingrec.pl
opac/opac-ISBDdetail.pl
opac/opac-MARCdetail.pl
opac/opac-account.pl
opac/opac-addbookbybiblionumber.pl
opac/opac-alert-subscribe.pl
opac/opac-authorities-home.pl
opac/opac-authoritiesdetail.pl
opac/opac-basket.pl
opac/opac-browser.pl
opac/opac-detail.pl
opac/opac-detailprint.pl
opac/opac-dictionary.pl
opac/opac-main.pl
opac/opac-passwd.pl
opac/opac-readingrecord.pl
opac/opac-reserve.pl
opac/opac-review.pl
opac/opac-search.pl
opac/opac-sendbasket.pl
opac/opac-serial-issues.pl
opac/opac-shelves.pl
opac/opac-showreviews.pl
opac/opac-suggestions.pl
opac/opac-tags_subject.pl
opac/opac-topissues.pl
opac/opac-user.pl
opac/opac-userdetails.pl
opac/opac-userupdate.pl
reports/acquisitions_stats.pl
reports/bor_issues_top.pl
reports/borrowers_out.pl
reports/borrowers_stats.pl
reports/cat_issues_top.pl
reports/catalogue_out.pl
reports/catalogue_stats.pl
reports/inventory.pl
reports/issues_avg_stats.pl
reports/issues_stats.pl
reports/manager.pl
reports/reports-home.pl
reports/reservereport.pl
reports/stats.print.pl
reports/stats.screen.pl
reserve/request.pl
reviews/reviewswaiting.pl
serials/acqui-search-result.pl
serials/acqui-search.pl
serials/checkexpiration.pl
serials/claims.pl
serials/distributedto.pl
serials/lateissues-excel.pl
serials/member-search.pl
serials/receipt.pl
serials/reorder_members.pl
serials/routing-preview.pl
serials/routing.pl
serials/serial-issues.pl
serials/serials-collection.pl
serials/serials-edit.pl
serials/serials-home.pl
serials/serials-recieve.pl
serials/statecollection.pl
serials/subscription-add.pl
serials/subscription-bib-search.pl
serials/subscription-copy.pl
serials/subscription-detail.pl
serials/subscription-renew.pl
serials/viewalerts.pl
suggestion/acceptorreject.pl
tools/barcodes.pl
tools/breeding.pl
tools/cleanborrowers.pl
tools/exceptionHolidays.pl
tools/export.pl
tools/holidays.pl
tools/import.pl
tools/inventory.pl
tools/itemslost.pl
tools/koha-news.pl
tools/letter.pl
tools/newHolidays.pl
tools/overduerules.pl
tools/printerConfig.pl
tools/tools-home.pl
tools/viewlog.pl

index 39fa33c..c4baf09 100644 (file)
@@ -26,7 +26,6 @@ use Digest::MD5 qw(md5_base64);
 require Exporter;
 use C4::Context;
 use C4::Output;    # to get the template
-use C4::Interface::CGI::Output;
 use C4::Members;
 use C4::Koha;
 use C4::Branch; # GetBranches
index 089521a..b9279e1 100644 (file)
@@ -48,10 +48,18 @@ C4::Output - Functions for managing templates
 =cut
 
 @ISA    = qw(Exporter);
-@EXPORT = qw(
+push @EXPORT, qw(
   &themelanguage &gettemplate setlanguagecookie pagination_bar
 );
 
+#Output
+push @EXPORT, qw(
+               &guesscharset
+               &guesstype
+               &output_html_with_http_headers
+               );
+
+
 #FIXME: this is a quick fix to stop rc1 installing broken
 #Still trying to figure out the correct fix.
 my $path = C4::Context->config('intrahtdocs') . "/default/en/includes/";
@@ -307,6 +315,60 @@ sub pagination_bar {
     return $pagination_bar;
 }
 
+
+=item guesscharset
+
+   &guesscharset($output)
+
+"Guesses" the charset from the some HTML that would be output.
+
+C<$output> is the HTML page to be output. If it contains a META tag
+with a Content-Type, the tag will be scanned for a language code.
+This code is returned if it is found; undef is returned otherwise.
+
+This function only does sloppy guessing; it will be confused by
+unexpected things like SGML comments. What it basically does is to
+grab something that looks like a META tag and scan it.
+
+=cut
+
+sub guesscharset ($) {
+    my($html) = @_;
+    my $charset = undef;
+    local($`, $&, $', $1, $2, $3);
+    # FIXME... These regular expressions will miss a lot of valid tags!
+    if ($html =~ /<meta\s+http-equiv=(["']?)Content-Type\1\s+content=(["'])text\/html\s*;\s*charset=([^\2\s\r\n]+)\2\s*(?:\/?)>/is) {
+        $charset = $3;
+    } elsif ($html =~ /<meta\s+content=(["'])text\/html\s*;\s*charset=([^\1\s\r\n]+)\1\s+http-equiv=(["']?)Content-Type\3\s*(?:\/?)>/is) {
+        $charset = $2;
+    }
+    return $charset;
+} # guess
+
+sub guesstype ($) {
+    my($html) = @_;
+    my $charset = guesscharset($html);
+    return defined $charset? "text/html; charset=$charset": "text/html";
+}
+
+=item output_html_with_http_headers
+
+   &output_html_with_http_headers($query, $cookie, $html)
+
+Outputs the HTML page $html with the appropriate HTTP headers,
+with the authentication cookie $cookie and a Content-Type that
+corresponds to the HTML page $html.
+
+=cut
+
+sub output_html_with_http_headers ($$$) {
+    my($query, $cookie, $html) = @_;
+    print $query->header(
+       -type   => guesstype($html),
+       -cookie => $cookie,
+    ), $html;
+}
+
 END { }    # module clean-up code here (global destructor)
 
 1;
index ffe16ce..6e411c0 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -20,7 +20,6 @@ use strict;
 require Exporter;
 
 use C4::Output;  # contains gettemplate
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use C4::Context;
 use CGI;
index 030dd62..2d521aa 100755 (executable)
@@ -44,7 +44,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 use C4::Suggestions;
 
index 4919df7..c90719e 100755 (executable)
@@ -115,12 +115,10 @@ if it is an order from an existing suggestion : the id of this suggestion.
 use strict;
 use CGI;
 use C4::Auth;
-use C4::Output;
 use C4::Acquisition;
 use C4::Suggestions;
 use C4::Biblio;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 
 
index 8536dec..a94422b 100755 (executable)
@@ -27,7 +27,6 @@ use C4::Auth;
 use C4::Koha;
 use C4::Output;
 use CGI;
-use C4::Interface::CGI::Output;
 
 
 use C4::Acquisition;
index c417a1c..76e14fe 100755 (executable)
@@ -21,7 +21,7 @@ use C4::Context;
 use strict;
 use CGI;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $dbh      = C4::Context->dbh;
 my $input    = new CGI;
index 0fb0b48..178a749 100755 (executable)
@@ -58,7 +58,6 @@ use C4::Auth;
 use C4::Biblio;
 use C4::Output;
 use CGI;
-use C4::Interface::CGI::Output;
 
 
 use C4::Acquisition;
index 89bed6b..6613415 100755 (executable)
@@ -52,7 +52,7 @@ use strict;
 require Exporter;
 use CGI;
 use C4::Auth;    # get_template_and_user
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Acquisition;
 
 my $input          = new CGI;
index 5956d23..d78a959 100755 (executable)
@@ -49,7 +49,6 @@ use C4::Bookseller;
 use C4::Auth;
 use C4::Koha;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Acquisition;
 use C4::Letters;
index 0e56c7c..b5cabfd 100755 (executable)
@@ -57,12 +57,11 @@ the basket number to know on which basket this script have to add a new order.
 use strict;
 use C4::Search;
 use CGI;
-use C4::Output;
 use C4::Bookseller;
 use C4::Biblio;
 
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Koha;
 
 my $input = new CGI;
index 09c2f4f..7ebb053 100755 (executable)
@@ -76,7 +76,6 @@ use C4::Biblio;
 use C4::Output;
 use C4::Input;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Branch; # GetBranches
 use C4::Members;
 
index bc42446..5f637c1 100755 (executable)
@@ -91,7 +91,7 @@ use strict;
 require Exporter;
 use CGI;
 use C4::Auth;    # get_template_and_user
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Suggestions;
 use C4::Biblio;
 
index 36c4d03..5836227 100644 (file)
@@ -63,7 +63,7 @@ use C4::Context;
 use C4::Koha;   # GetKohaAuthorisedValues GetItemTypes
 use C4::Acquisition;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Date;
 use C4::Bookseller;
 use C4::Members;
index 0cba2f8..ca03a2c 100644 (file)
@@ -59,9 +59,8 @@ use C4::Auth;
 use C4::Acquisition;
 use C4::Bookseller;
 use C4::Biblio;
-use C4::Output;
 use CGI;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Date;
 
 use strict;
index 6803a6d..8f35a2b 100644 (file)
@@ -65,7 +65,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 use C4::Date;
 
index f4231e2..f73537b 100755 (executable)
@@ -6,7 +6,7 @@
 
 use C4::Context;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use strict;
 use CGI;
 
index 43dff17..1a8be5b 100755 (executable)
@@ -47,7 +47,6 @@ use C4::Acquisition;
 use C4::Biblio;
 use C4::Output;
 use CGI;
-use C4::Interface::CGI::Output;
 
 
 use C4::Bookseller;
index 3205978..5a6b8fc 100755 (executable)
@@ -19,7 +19,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 
 
index b78325e..778bf11 100755 (executable)
@@ -59,7 +59,6 @@ use C4::Koha;
 use C4::Context;
 use C4::Bookfund;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Date;
 
 my $dbh = C4::Context->dbh;
index e5642ce..3a6c2f6 100755 (executable)
@@ -47,7 +47,6 @@ use C4::Auth;
 use C4::Acquisition;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Koha;
 
 my $input = new CGI;
index 44fce40..6e465b6 100755 (executable)
@@ -20,7 +20,6 @@
 
 use strict;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use CGI;
 use C4::Context;
index 9458891..b7f5ba8 100755 (executable)
@@ -24,7 +24,6 @@ use C4::Auth;
 use C4::Koha;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index 244025d..1c2f03e 100755 (executable)
@@ -22,7 +22,6 @@ use CGI;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 use C4::Context;
 
index ffa4e74..141313b 100755 (executable)
@@ -24,9 +24,8 @@
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 
 sub StringSearch  {
index d6b4c9a..97d364b 100755 (executable)
@@ -24,9 +24,8 @@
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 
 sub StringSearch  {
index 3440a7f..3217c34 100755 (executable)
@@ -48,7 +48,6 @@ use CGI;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Koha;
 use C4::Branch;
 
index 16a767f..b6f4a02 100755 (executable)
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
-
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 sub StringSearch  {
        my ($searchstring,$type)=@_;
index e3ef25b..e2a8b83 100644 (file)
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
-
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 sub StringSearch  {
        my ($searchstring,$type)=@_;
index 85864cb..2405c70 100755 (executable)
@@ -20,7 +20,6 @@
 
 use strict;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use CGI;
 use C4::Context;
index 040e190..ffda794 100755 (executable)
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
-
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 sub StringSearch  {
        my ($searchstring,$type)=@_;
index a759315..75bd964 100755 (executable)
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
-
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 sub StringSearch  {
        my ($searchstring,$type)=@_;
index 8a7c3a2..fbeb7e1 100755 (executable)
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
-
 use C4::Auth;
 use C4::Output;
+
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Branch; # GetBranches
 
 my $input = new CGI;
index 89dd8d2..e58b51f 100755 (executable)
@@ -21,11 +21,8 @@ use strict;
 use CGI;
 use C4::Context;
 use C4::Output;
-
 use C4::Auth;
-use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Branch; # GetBranches
 
 my $input = new CGI;
index 6fc3afa..6f8b41e 100644 (file)
@@ -42,9 +42,8 @@
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 
 sub StringSearch  {
index c3a882b..c81a766 100755 (executable)
@@ -45,9 +45,8 @@ use List::Util qw/min/;
 
 use C4::Koha;
 use C4::Context;
-use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 sub StringSearch  {
        my ($searchstring,$type)=@_;
index b9fc6b1..bb78d71 100644 (file)
@@ -42,9 +42,8 @@
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 
 sub StringSearch  {
index 6c69042..3a0ee11 100755 (executable)
@@ -19,7 +19,6 @@
 
 use strict;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use CGI;
 use C4::Context;
index 7198ca9..ff522cd 100755 (executable)
@@ -43,7 +43,6 @@ use C4::Date;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 
 sub StringSearch  {
index 22e887c..42f9a9e 100755 (executable)
@@ -19,7 +19,6 @@
 
 use strict;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use CGI;
 use C4::Context;
index 94fafd0..99edb1c 100755 (executable)
@@ -24,7 +24,6 @@ use C4::Auth;
 use C4::Koha;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index 1fb58b2..cbbd482 100644 (file)
@@ -43,9 +43,8 @@
 use strict;
 use CGI;
 use C4::Context;
-use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 
 sub StringSearch  {
index 6e6e9f5..434d76d 100755 (executable)
@@ -41,9 +41,7 @@ use strict;
 use CGI;
 use C4::Context;
 use C4::Output;
-
 use C4::Auth;
-use C4::Interface::CGI::Output;
 
 sub StringSearch  {
        my ($searchstring,$type)=@_;
index a667acc..44c8015 100755 (executable)
@@ -21,9 +21,8 @@ use strict;
 use CGI;
 use C4::Context;
 use C4::Output;
-
 use C4::Auth;
-use C4::Interface::CGI::Output;
+
 
 sub StringSearch  {
        my ($searchstring,$type)=@_;
index 87f004b..e772838 100755 (executable)
@@ -47,7 +47,6 @@ use C4::Context;
 use C4::Koha;
 use C4::Languages;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index d867f98..4c54a0d 100755 (executable)
 
 use strict;
 use CGI;
-use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Output;
-
+use C4::Auth;
 use C4::AuthoritiesMarc;
 
 my $input = new CGI;
index 9aa7981..9f9308e 100755 (executable)
 #      - we delete the record having primkey=$primkey
 
 use strict;
-use C4::Output;
 use CGI;
-
 use C4::Context;
-
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 sub StringSearch  {
        my ($searchstring,$type)=@_;
index 0a17d51..b6b526b 100755 (executable)
@@ -21,7 +21,7 @@
 use strict;
 require Exporter;
 use CGI;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Auth;
 
 use C4::Context;
index c68001a..efe3259 100755 (executable)
@@ -26,7 +26,6 @@ use C4::Auth;
 use C4::Context;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::AuthoritiesMarc;
 use C4::Acquisition;
 use C4::Koha; # XXX subfield_is_koha_internal_p
index 6b1d86f..5c04e09 100755 (executable)
@@ -23,7 +23,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::AuthoritiesMarc;
 use C4::Context;
 use C4::Koha; # XXX subfield_is_koha_internal_p
index a468d1b..9d57c8e 100755 (executable)
@@ -44,7 +44,6 @@ use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use MARC::Record;
 use C4::Koha;
index dda7144..0f3b976 100755 (executable)
@@ -44,7 +44,6 @@ use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use MARC::Record;
 use C4::Koha;
index 8e96b6c..aa95e31 100755 (executable)
@@ -44,7 +44,6 @@ use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use MARC::Record;
 use C4::Koha;
index cf22805..7e78ffb 100755 (executable)
@@ -3,7 +3,7 @@
 # script to generate items barcodes
 # written 07/04
 # by Veleda Matias - matias_veleda@hotmail.com - Physics Library UNLP Argentina and
-#    Castañeda Sebastian - seba3c@yahoo.com.ar - Physics Library UNLP Argentina and
+#    Casta�eda Sebastian - seba3c@yahoo.com.ar - Physics Library UNLP Argentina and
 
 # This file is part of Koha.
 #
@@ -24,7 +24,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Barcodes::PrinterConfig;
 
index c40ef06..5fa02ad 100755 (executable)
@@ -20,7 +20,6 @@ use CGI;
 use C4::Auth;
 use C4::Output;
 use C4::Labels;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index b46c8fd..a54578b 100755 (executable)
@@ -27,7 +27,6 @@ use C4::Auth;
 use C4::Context;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Biblio;
 use C4::Acquisition;
 use C4::Koha;    # XXX subfield_is_koha_internal_p
index 37bd7ef..b25ac2f 100755 (executable)
@@ -20,7 +20,6 @@ use CGI;
 use C4::Auth;
 use C4::Labels;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 use POSIX;
 
index 2cd159d..5247ce9 100755 (executable)
@@ -20,7 +20,6 @@ use CGI;
 use C4::Labels;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use PDF::Reuse;
 use PDF::Reuse::Barcode;
index 88eccfb..a473b76 100755 (executable)
@@ -36,7 +36,6 @@ use CGI;
 use C4::Labels;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 use PDF::Reuse;
index 2d10152..acf6a51 100755 (executable)
@@ -20,7 +20,6 @@ use CGI;
 use C4::Auth;
 use C4::Serials;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 use GD::Barcode::UPCE;
index eb68d86..174801b 100755 (executable)
@@ -31,7 +31,6 @@ use C4::Auth;
 use PDF::API2;
 use PDF::API2::Page;
 use PDF::API2::Util;
-use C4::Interface::CGI::Output;
 
 # This function returns the path to deal with the correct files, considering
 # templates set and language.
index dcb10f6..787a13b 100755 (executable)
@@ -62,7 +62,6 @@ use C4::Output;
 use C4::BookShelves;
 use C4::Circulation;
 use C4::Auth;
-use C4::Interface::CGI::Output;
 
 
 #use it only to debug !
@@ -122,6 +121,13 @@ if ($shelfnumber || ($shelfnumber == -1)) { # the shelf already exist.
 }
 
 # $Log$
+# Revision 1.8  2007/04/24 13:54:29  hdl
+# functions that were in C4::Interface::CGI::Output are now in C4::Output.
+# So this implies quite a change for files.
+# Sorry about conflicts which will be caused.
+# directory Interface::CGI should now be dropped.
+# I noticed that many scripts (reports ones, but also some circ/stats.pl or opac-topissues) still use Date::Manip.
+#
 # Revision 1.7  2007/04/04 16:46:22  tipaul
 # HUGE COMMIT : code cleaning circulation.
 #
index 59c6776..4062e38 100755 (executable)
 
 use strict;
 use CGI;
-use C4::Output;
 use C4::BookShelves;
 use C4::Biblio;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $query = new CGI;
 
@@ -281,6 +280,13 @@ sub shelves {
 
 #
 # $Log$
+# Revision 1.13  2007/04/24 13:54:29  hdl
+# functions that were in C4::Interface::CGI::Output are now in C4::Output.
+# So this implies quite a change for files.
+# Sorry about conflicts which will be caused.
+# directory Interface::CGI should now be dropped.
+# I noticed that many scripts (reports ones, but also some circ/stats.pl or opac-topissues) still use Date::Manip.
+#
 # Revision 1.12  2007/04/04 16:46:22  tipaul
 # HUGE COMMIT : code cleaning circulation.
 #
index d8e8d9d..8993aa4 100755 (executable)
@@ -39,7 +39,6 @@ require Exporter;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Koha;
 use C4::Biblio;
index cb296dd..17ae11b 100755 (executable)
@@ -48,7 +48,6 @@ require Exporter;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Koha;
 use MARC::Record;
index 6effc3a..855746b 100755 (executable)
@@ -22,7 +22,7 @@ require Exporter;
 use CGI;
 use C4::Auth;
 use C4::Serials;    #uses getsubscriptionfrom biblionumber
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Biblio;
 use C4::Serials;
 
index 9d2285a..3440f16 100755 (executable)
 use strict;
 require Exporter;
 use C4::Context;
-use C4::Output;  # contains gettemplate
 use CGI;
 use C4::Auth;
 use C4::Biblio;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Date;
 
 my $query=new CGI;
index 1d3aea4..f6a137e 100755 (executable)
@@ -20,7 +20,6 @@
 
 use strict;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use CGI;
 use C4::Search;
@@ -149,7 +148,7 @@ if ($op eq "do_search") {
        my @authresults;
        my $authnbresults;
        while ((my $authtypecode) = $sth->fetchrow) {
-               my ($curauthresults,$nbresults) = authoritysearch($dbh,[''],[''],[''],['contains'],
+               my ($curauthresults,$nbresults) = SearchAuthorities([''],[''],[''],['contains'],
                                                                                                                \@search,$startfrom*$resultsperpage, $resultsperpage,$authtypecode);
                if (defined(@$curauthresults)) {
                        for (my $i = 0; $i < @$curauthresults ;$i++) {
index aa2d345..673629d 100755 (executable)
@@ -21,7 +21,7 @@ use strict;
 require Exporter;
 use CGI;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 use C4::Circulation;    # GetBiblioIssues
 
index 71d8a2d..8d51525 100755 (executable)
@@ -27,7 +27,6 @@ use C4::Biblio;             # to use &GetBiblioItemData &itemissues
 use C4::Acquisition;
 use C4::Output;             # contains gettemplate
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Date;
 use C4::Circulation;  # to use itemissues
 
index dc4b284..f91081c 100755 (executable)
@@ -145,7 +145,7 @@ use strict;            # always use
 # to perform, etc.
 ## load Koha modules
 use C4::Context;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Auth;
 use C4::Search;
 use C4::Languages; # getAllLanguages
index a62820c..266ea02 100755 (executable)
@@ -26,7 +26,6 @@ use C4::Auth;
 use C4::Context;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Biblio;
 use C4::Acquisition;
 use C4::Koha; # XXX subfield_is_koha_internal_p
index 184b5f2..dc5fa50 100755 (executable)
@@ -23,7 +23,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Biblio;
 use C4::Search;
 use C4::Context;
index 01b9873..88d7c73 100755 (executable)
@@ -38,7 +38,6 @@ use C4::Auth;
 use C4::Biblio;
 use C4::Breeding;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 use C4::Koha;
 use C4::Search;
index f84dbf1..eca945a 100755 (executable)
@@ -23,7 +23,6 @@ use CGI;
 use strict;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Biblio;
 use C4::Context;
 use C4::Koha; # XXX subfield_is_koha_internal_p
index 7e4ee40..1dd3fca 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
-use C4::Auth;
 use CGI;
+use C4::Auth;
 use C4::Context;
-
 use C4::Output;
 use C4::Authorities;
-use C4::Interface::CGI::Output;
 # get all the data ....
 my $input = new CGI;
 my $result = $input->param('result');
index 075959c..2fc8818 100755 (executable)
@@ -21,7 +21,7 @@ use strict;
 require Exporter;
 use CGI;
 
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Context;
 use C4::Auth;
 use C4::Output;
index f19c303..84ace02 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 require Exporter;
-use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Search;
 use MARC::Record;
index 4de9d88..8d48c4b 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 require Exporter;
-use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Search;
 use MARC::Record;
index 8c17bf7..46b14f0 100755 (executable)
@@ -24,7 +24,6 @@ use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Search;
 use MARC::Record;
index 5eecb7a..8317b53 100755 (executable)
@@ -24,7 +24,6 @@ use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Search;
 use MARC::Record;
index c971663..82a4433 100755 (executable)
@@ -24,12 +24,11 @@ use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Search;
 use MARC::Record;
 use C4::Koha;
-
+###TODO To rewrite in order to use SearchAuthorities
 
 =head1
 
@@ -64,10 +63,12 @@ my $function_name= "210c".(int(rand(100000))+1);
 #---- 200$a for isbn
 #---- 200$b for editor
 #---- 200$c (repeated) for collections
-my $sth = $dbh->prepare("select auth_subfield_table.authid,subfieldvalue from auth_subfield_table 
-                        left join auth_header on auth_subfield_table.authid=auth_header.authid
-                        where authtypecode='EDITORS' and tag='200' and subfieldcode='a'");
-my $sth2 = $dbh->prepare("select subfieldvalue from auth_subfield_table where tag='200' and subfieldcode='b' and authid=?");
+ my $sth; 
+#= $dbh->prepare("select auth_subfield_table.authid,subfieldvalue from auth_subfield_table 
+#                         left join auth_header on auth_subfield_table.authid=auth_header.authid
+#                         where authtypecode='EDITORS' and tag='200' and subfieldcode='a'");
+ my $sth2;
+ # = $dbh->prepare("select subfieldvalue from auth_subfield_table where tag='200' and subfieldcode='b' and authid=?");
 $sth->execute;
 my @editors;
 my $authoritysep = C4::Context->preference("authoritysep");
index 7ab2579..95edbe3 100755 (executable)
@@ -20,7 +20,7 @@
 use strict;
 require Exporter;
 use CGI;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Context;
 use C4::Search;
 use C4::Auth;
index 0ce8536..5ff0931 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 require Exporter;
-use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Search;
 use MARC::Record;
index b923605..5403d28 100755 (executable)
@@ -22,7 +22,6 @@ use CGI;
 
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Biblio;
 use C4::Context;
 use C4::Breeding;
index cc2ff76..8d4cf9c 100755 (executable)
@@ -20,7 +20,7 @@
 use strict;
 use C4::Context;
 use CGI;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Auth;
 use C4::Date;
 use C4::Overdues;    # AddNotifyLine
index 493363a..70184dc 100755 (executable)
@@ -28,7 +28,6 @@ use C4::Output;
 use C4::Reserves;
 use C4::Biblio;
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Branch; # GetBranches
 use C4::Koha;
 
index f5f79d0..b4a0ceb 100755 (executable)
@@ -28,9 +28,13 @@ use C4::Output;
 use C4::Print;
 use C4::Auth;
 use C4::Date;
-use C4::Interface::CGI::Output;
 use C4::Branch; # GetBranches
 use C4::Koha;   # GetPrinter
+use C4::Circulation;
+use C4::Members;
+use C4::Biblio;
+use C4::Reserves;
+
 use Date::Calc qw(
   Today
   Today_and_Now
@@ -39,10 +43,6 @@ use Date::Calc qw(
   Date_to_Days
 );
 
-use C4::Circulation;
-use C4::Members;
-use C4::Biblio;
-use C4::Reserves;
 
 #
 # PARAMETERS READING
index 85bfdb7..33da5fe 100755 (executable)
@@ -22,7 +22,6 @@
 use strict;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Auth;
 use C4::Date;
index 576dc93..14d66a9 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
+use CGI;
 use C4::Context;
 use C4::Output;
-use CGI;
 use C4::Auth;
 use C4::Date;
-use C4::Interface::CGI::Output;
 
 my $input = new CGI;
 my $order = $input->param('order');
index f0a9beb..ba57d83 100755 (executable)
@@ -27,18 +27,17 @@ written 11/3/2002 by Finlay
 
 use strict;
 use CGI;
+use C4::Context;
+use C4::Auth;
+use C4::Output;
 use C4::Circulation;
 use C4::Date;
-use C4::Output;
 use C4::Print;
 use C4::Reserves;
-use C4::Auth;
 use C4::Biblio;
 use C4::Members;
-use C4::Interface::CGI::Output;
 use C4::Branch; # GetBranchName
 use C4::Koha;   # FIXME : is it still useful ?
-use C4::Context;
 
 my $query = new CGI;
 
index f2ac61a..f01860b 100644 (file)
@@ -23,7 +23,6 @@ use C4::Circulation;
 use C4::Output;
 use C4::Auth;
 use C4::Print;
-use C4::Interface::CGI::Output;
 use C4::Koha;
 use C4::Branch; # GetBranches
 
index 118d396..874fd89 100755 (executable)
 
 use strict;
 use CGI;
+use C4::Context;
 use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
-use C4::Context;
 use Date::Manip;
 use C4::Stats;
 
index 734a2aa..5056fa7 100755 (executable)
@@ -22,7 +22,6 @@
 use strict;
 require Exporter;
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Output;    # contains gettemplate
 use C4::Biblio;
 use CGI;
index 60f5615..0dc4bf0 100755 (executable)
@@ -22,7 +22,6 @@
 use strict;
 require Exporter;
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Output;    # contains gettemplate
 use C4::Biblio;
 use CGI;
index ba3fbd4..c8d4d0b 100755 (executable)
@@ -24,7 +24,6 @@ use strict;
 require Exporter;
 
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Output;  # contains gettemplate
 use C4::Biblio;
 use CGI;
diff --git a/help.pl b/help.pl
index 3994157..0917f9b 100755 (executable)
--- a/help.pl
+++ b/help.pl
@@ -21,7 +21,7 @@
 use strict;
 require Exporter;
 use C4::Output;  # contains gettemplate
-use C4::Interface::CGI::Output;
+use C4::Output;
 # use C4::Auth;
 use C4::Context;
 use CGI;
index d3bf137..71d46ee 100644 (file)
@@ -25,8 +25,7 @@ use Digest::MD5 qw(md5_base64);
 
 require Exporter;
 use C4::Context;
-use C4::Output;    # to get the template
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Koha;
 
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
index de29a59..c65fff5 100755 (executable)
@@ -5,7 +5,7 @@
 # use Install;
 use InstallAuth;
 use C4::Context;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Languages;
 
 use strict; # please develop with the strict pragma
index bd7a829..d80e28f 100755 (executable)
@@ -26,7 +26,6 @@
 use strict;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Date;
 use CGI;
 use C4::Members;
index 1d8e086..0e4a2e8 100644 (file)
@@ -29,7 +29,6 @@ use strict;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Members;
 use C4::Koha;
index 6e762e5..2a4b3c1 100755 (executable)
@@ -28,7 +28,6 @@ use strict;
 
 use CGI;
 use C4::Context;
-use C4::Interface::CGI::Output;
 use C4::Output;
 use C4::Circulation;
 use C4::Auth;
index 2d2ba0a..b737a87 100755 (executable)
@@ -24,7 +24,6 @@
 use strict;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 
 #op
index a03502f..5467863 100755 (executable)
@@ -24,7 +24,6 @@
 use strict;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 
 use C4::Members;
index e462c27..6ff6c26 100755 (executable)
@@ -24,7 +24,6 @@
 use strict;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Members;
 use C4::Accounts;
index 8c44727..36a240a 100755 (executable)
@@ -13,7 +13,7 @@ use C4::Context;
 use C4::Members;
 #use C4::Acquisitions;
 
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $input = new CGI;
 
index 3f72dc8..2f90903 100755 (executable)
@@ -7,7 +7,6 @@
 use strict;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Members;
 use C4::Circulation;
index 671a19d..6190ac7 100644 (file)
@@ -31,8 +31,6 @@ use C4::Context;
 use C4::Output;
 use CGI;
 
-use C4::Interface::CGI::Output;
-use C4::Interface::CGI::Template;
 
 my $input = new CGI;
 my $name = $input->param('name');
index 2e2b81b..8916361 100755 (executable)
@@ -26,7 +26,6 @@
 use strict;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Members;
 
index d6711f6..ebda6da 100755 (executable)
@@ -31,7 +31,6 @@ use Digest::MD5 qw(md5_base64);
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Members;
 use C4::Koha;
 use C4::Date;
index 3a0b223..a029ffa 100755 (executable)
@@ -19,7 +19,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index 5bb1376..6d279c5 100755 (executable)
 =cut
 
 use strict;
+use CGI;
+use Date::Manip;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
-use C4::Interface::CGI::Template;
-use CGI;
 use C4::Members;
-use Date::Manip;
 use C4::Date;
 use C4::Reserves;
 use C4::Circulation;
index 4e4243d..8e8220b 100755 (executable)
@@ -99,8 +99,8 @@ if ( $check == 0 ) {
     my $numberofnotify = scalar(@notify);
     for ( my $j = 0 ; $j < scalar(@notify) ; $j++ ) {
         my @loop_pay;
-        my ( $numaccts, $accts, $total ) =
-          GetBorNotifyAcctRecord( '', \%bor, $notify[$j] );
+        my ( $total , $accts, $numaccts) =
+          GetBorNotifyAcctRecord( $borrowernumber, $notify[$j] );
         for ( my $i = 0 ; $i < $numaccts ; $i++ ) {
             my %line;
             if ( $accts->[$i]{'amountoutstanding'} > 0 ) {
@@ -140,7 +140,7 @@ if ( $check == 0 ) {
         borrowernumber => $borrowernumber,
         total          => sprintf( "%.2f", $total )
     );
-    print "Content-Type: text/html\n\n", $template->output;
+    output_html_with_http_headers $input, $cookie, $template->output;
 
 }
 else {
index d41f2b9..5e3067b 100755 (executable)
@@ -23,7 +23,6 @@
 use strict;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Members;
 
index 1fd8229..b46c51a 100755 (executable)
@@ -47,7 +47,6 @@ require Exporter;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use MARC::Record;
 use C4::Biblio;
index d8edefa..1d15691 100755 (executable)
@@ -44,7 +44,6 @@ require Exporter;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use MARC::Record;
 use C4::Biblio;
index 6136735..8940abf 100755 (executable)
 # script to display borrowers account details in the opac
 
 use strict;
-use C4::Output;
 use CGI;
 use C4::Members;
 use C4::Circulation;
 use C4::Auth;
-use C4::Interface::CGI::Output;
-
+use C4::Output;
 use C4::Date;
 
 my $query = new CGI;
index 3c9b390..88930c0 100755 (executable)
 use strict;
 use C4::Biblio;
 use CGI;
-use C4::Output;
 use C4::BookShelves;
 use C4::Circulation;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $query        = new CGI;
 my $biblionumber = $query->param('biblionumber');
index 4e5d9d2..d26af24 100755 (executable)
@@ -24,7 +24,6 @@ use CGI;
 use C4::Auth;
 use C4::Date;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Koha;
 use C4::Letters;
index a7fa351..158bfbb 100755 (executable)
@@ -26,7 +26,6 @@ use C4::Auth;
 use C4::Context;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::AuthoritiesMarc;
 use C4::Koha;    # XXX subfield_is_koha_internal_p
 
index 6094eb1..3272ff6 100755 (executable)
@@ -43,7 +43,6 @@ use C4::AuthoritiesMarc;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use MARC::Record;
 use C4::Koha;
index ffb7129..7882545 100755 (executable)
@@ -22,7 +22,7 @@ require Exporter;
 use CGI;
 use C4::Biblio;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $query = new CGI;
 
index dd9e544..0b42133 100755 (executable)
@@ -30,7 +30,6 @@ require Exporter;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Biblio;
 use C4::Koha;       # use getitemtypeinfo
index 68d5769..a65ca56 100755 (executable)
@@ -24,7 +24,7 @@ require Exporter;
 use CGI;
 use C4::Auth;
 use C4::Serials;    #uses getsubscriptionfrom biblionumber
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Biblio;
 use C4::Amazon;
 use C4::Review;
index c8aef6b..72a16c3 100755 (executable)
 use strict;
 require Exporter;
 use C4::Context;
-use C4::Output;    # contains gettemplate
 use CGI;
 use C4::Biblio;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Date;
 
 my $query = new CGI;
index 6d36353..985986c 100755 (executable)
@@ -19,7 +19,6 @@
 
 use strict;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use CGI;
 use C4::Search;
index bec99cc..c769a50 100755 (executable)
@@ -21,7 +21,7 @@ use strict;
 require Exporter;
 use CGI;
 use C4::Auth;    # get_template_and_user
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::BookShelves;
 use C4::Languages;           # getTranslatedLanguages
 use C4::Branch;         # GetBranches
index ca0d111..b749c3a 100755 (executable)
@@ -27,7 +27,7 @@ use C4::Context;
 use Digest::MD5 qw(md5_base64);
 use C4::Circulation;
 
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $query = new CGI;
 my $dbh   = C4::Context->dbh;
index 4c7cbda..9d4f0b1 100755 (executable)
@@ -27,7 +27,7 @@ use C4::Circulation;
 use C4::Date;
 use C4::Members;
 
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $query = new CGI;
 my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
index 0b7f932..bb79c53 100755 (executable)
@@ -23,7 +23,7 @@ use C4::Auth;    # checkauth, getborrowernumber.
 use C4::Koha;
 use C4::Circulation;
 use C4::Reserves;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Date;
 use C4::Context;
 use C4::Branch; # GetBranches
index dc6aa10..0a9124a 100755 (executable)
@@ -22,7 +22,7 @@ require Exporter;
 use CGI;
 use C4::Auth;
 use C4::Koha;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Circulation;
 use C4::Review;
 use C4::Biblio;
index a3ba74b..3a54022 100755 (executable)
@@ -148,7 +148,7 @@ use strict;    # always use
 # to perform, etc.
 ## load Koha modules
 use C4::Context;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Auth;
 use C4::Search;
 use C4::Languages; # getAllLanguages
index 87e71b6..44305fc 100755 (executable)
@@ -23,7 +23,7 @@ use MIME::QuotedPrint;
 use MIME::Base64;
 use C4::Biblio;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Biblio;
 
 my $query = new CGI;
index 493b70d..298c090 100755 (executable)
@@ -27,7 +27,6 @@ use C4::Date;
 use C4::Serials;
 use C4::Letters;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index ee4439b..ac4a26c 100755 (executable)
@@ -70,7 +70,7 @@ use C4::Output;
 use C4::BookShelves;
 use C4::Circulation;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $query = new CGI;
 
@@ -229,6 +229,13 @@ output_html_with_http_headers $query, $cookie, $template->output;
 
 #
 # $Log$
+# Revision 1.12  2007/04/24 13:54:29  hdl
+# functions that were in C4::Interface::CGI::Output are now in C4::Output.
+# So this implies quite a change for files.
+# Sorry about conflicts which will be caused.
+# directory Interface::CGI should now be dropped.
+# I noticed that many scripts (reports ones, but also some circ/stats.pl or opac-topissues) still use Date::Manip.
+#
 # Revision 1.11  2007/04/17 08:52:19  tipaul
 # circulation cleaning continued: bufixing
 #
index 8e75ed0..b636acc 100755 (executable)
@@ -20,7 +20,7 @@ require Exporter;
 use CGI;
 use C4::Auth;
 use C4::Koha;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Circulation;
 use C4::Review;
 use C4::Biblio;
index cdec0e7..a8b8a6b 100755 (executable)
@@ -19,7 +19,7 @@ use strict;
 require Exporter;
 use CGI;
 use C4::Auth;    # get_template_and_user
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Suggestions;
 
 my $input           = new CGI;
index 61af51d..11cea16 100755 (executable)
@@ -30,7 +30,6 @@ require Exporter;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use CGI;
 use C4::Biblio;
 use C4::Koha;       # use getitemtypeinfo
index c0c26c8..ca74b85 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
-use C4::Auth;
 use CGI;
+use C4::Auth;
 use C4::Context;
 use C4::Search;
 use C4::Output;
 use C4::Koha;
 use C4::Branch;
-use C4::Interface::CGI::Output;
 use Date::Manip;
 
 =head1 NAME
index 29893c5..274ca0b 100755 (executable)
@@ -26,7 +26,7 @@ use C4::Koha;
 use C4::Circulation;
 use C4::Reserves;
 use C4::Members;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Biblio;
 use C4::Date;
 use C4::Letters;
index bc36e5c..e09f523 100755 (executable)
@@ -24,7 +24,7 @@ use C4::Auth;
 use C4::Koha;
 use C4::Circulation;
 
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Date;
 use C4::Members;
 
index 7ce2f62..c2a5826 100755 (executable)
@@ -26,7 +26,7 @@ use C4::Auth;    # checkauth, getborrowernumber.
 use C4::Context;
 use C4::Koha;
 use C4::Circulation;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Date;
 use C4::Members;
 
index f760169..0b9a19f 100755 (executable)
@@ -28,7 +28,6 @@ use C4::Context;
 
 use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Circulation;
 
 =head1 NAME
index 8bfc349..cfd7b65 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
-use C4::Auth;
 use CGI;
+use C4::Auth;
+use C4::Output;
 use C4::Context;
 use C4::Branch; # GetBranches
-use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Circulation;
-use Date::Manip;
 use C4::Members;
+use Date::Manip;
 
 =head1 NAME
 
index 9e642db..e3a577b 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
-use C4::Auth;
 use CGI;
+use C4::Auth;
 use C4::Context;
-
-use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Circulation;
-use Date::Manip;
 use C4::Members;
+use Date::Manip;
 
 =head1 NAME
 
index 521595b..b159780 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
-use C4::Auth;
 use CGI;
+use C4::Auth;
 use C4::Context;
 use C4::Branch; # GetBranches
-use C4::Output;
 use C4::Koha;
 use C4::Acquisition;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Circulation;
 
 =head1 NAME
index 9dca984..0c689e4 100755 (executable)
@@ -26,7 +26,6 @@ use C4::Context;
 use C4::Branch; # GetBranches
 use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Circulation;
 use Date::Manip;
 use C4::Members;
index 0746800..5269324 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
-use C4::Auth;
 use CGI;
+use C4::Auth;
 use C4::Context;
 use C4::Branch; # GetBranches
 use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Circulation;
 use Date::Manip;
 
index b2c1494..c7bb42c 100755 (executable)
@@ -26,7 +26,6 @@ use C4::Context;
 use C4::Branch; # GetBranches
 use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Circulation;
 
 =head1 NAME
index 71c51e1..c72adbb 100755 (executable)
@@ -22,7 +22,6 @@ use CGI;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Biblio;
 use C4::Date;
 
index 128d140..ceb736f 100755 (executable)
@@ -26,7 +26,6 @@ use C4::Context;
 use C4::Branch; # GetBranches
 use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Circulation;
 use Date::Calc qw(Delta_Days);
 
index bc5f460..454a114 100755 (executable)
@@ -24,9 +24,8 @@ use C4::Auth;
 use CGI;
 use C4::Context;
 use C4::Branch; # GetBranches
-use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Circulation;
 use Date::Manip;
 
index aa7cd74..a21f629 100755 (executable)
@@ -22,7 +22,6 @@ use CGI;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Circulation;
 
 
index 3d164fc..bfed7a4 100644 (file)
@@ -20,7 +20,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index 692da8b..66d4b1b 100755 (executable)
@@ -30,7 +30,6 @@ use CGI;
 use C4::Output;
 use C4::Branch; # GetBranches
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Koha;
 
 
index 8df2ea7..1d89520 100755 (executable)
@@ -5,7 +5,6 @@ use CGI;
 use C4::Output;
 
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use Date::Manip;
 use C4::Stats;
index e2fd380..a716199 100755 (executable)
@@ -19,7 +19,6 @@ use strict;
 use CGI;
 use C4::Output;
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use Date::Manip;
 use C4::Stats;
index 0c83350..659d912 100755 (executable)
@@ -32,7 +32,6 @@ use CGI;
 use List::MoreUtils qw/uniq/;
 use Date::Calc qw/Today Date_to_Days/;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Auth;
 use C4::Reserves;
 use C4::Biblio;
index b4f4a0c..aa3903e 100755 (executable)
@@ -19,7 +19,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Review;
 use C4::Members;
index 64fc617..e9d01cc 100755 (executable)
@@ -45,7 +45,6 @@ use C4::Auth;
 use C4::Biblio;
 use C4::Output;
 use CGI;
-use C4::Interface::CGI::Output;
 
 
 use C4::Acquisition;
index f82dc43..e8e09b8 100755 (executable)
@@ -23,7 +23,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Bookfund;
 
 my $query = new CGI;
index 458beef..de711b4 100644 (file)
@@ -48,7 +48,6 @@ use CGI;
 use C4::Auth;
 use C4::Serials; # GetExpirationDate
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use Date::Calc qw/Today Date_to_Days/;
 
index db08e23..be12b9c 100755 (executable)
@@ -7,7 +7,6 @@ use C4::Serials;
 use C4::Acquisition;
 use C4::Output;
 use C4::Bookseller;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Letters;
 
index eabe967..344986e 100755 (executable)
@@ -53,7 +53,6 @@ use C4::Date;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 use C4::Serials;
 use C4::Members;
index b4d69b4..e07eb93 100755 (executable)
@@ -6,7 +6,6 @@ use C4::Auth;
 use C4::Serials;
 use C4::Acquisition;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 # use Date::Manip;
index dcb9608..7b17515 100755 (executable)
@@ -24,7 +24,7 @@ Member Search.pl script used to search for members to add to a routing list
 use strict;
 use CGI;
 use C4::Auth;       # get_template_and_user
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Members;    # BornameSearch
 
 my $query          = new CGI;
index 2ad8cb5..2a07827 100755 (executable)
@@ -23,7 +23,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index e4eef5f..dd083e5 100755 (executable)
@@ -6,13 +6,12 @@
 # printed out
 use strict;
 use CGI;
-use C4::Koha;
 use C4::Auth;
-use C4::Date;
+use C4::Context;
 use C4::Output;
+use C4::Koha;
+use C4::Date;
 use C4::Acquisition;
-use C4::Interface::CGI::Output;
-use C4::Context;
 use C4::Serials;
 
 my $query = new CGI;
index d3a6057..548b4fa 100755 (executable)
@@ -12,7 +12,6 @@ use C4::Output;
 use C4::Acquisition;
 use C4::Reserves;
 use C4::Circulation;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Members;
 use C4::Biblio;
index f4d5be7..0afa519 100755 (executable)
@@ -32,7 +32,7 @@ use C4::Auth;
 use C4::Date;
 use C4::Output;
 use C4::Acquisition;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Context;
 
 use C4::Members;
index b927789..05ea2c1 100755 (executable)
@@ -49,7 +49,6 @@ use C4::Koha;
 use C4::Date;
 use C4::Serials;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index 3b0704a..8aa51e9 100755 (executable)
@@ -27,7 +27,6 @@ use C4::Date;
 use C4::Serials;
 use C4::Letters;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 
index a931813..b6f0e94 100755 (executable)
@@ -70,7 +70,6 @@ use C4::Date;
 use C4::Biblio;
 use C4::Koha;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Serials;
 
index 03b89fb..7a8c5a2 100755 (executable)
@@ -46,7 +46,6 @@ use CGI;
 use C4::Auth;
 use C4::Serials;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 
 my $query         = new CGI;
index bb7e560..830c56a 100755 (executable)
@@ -70,7 +70,6 @@ use C4::Date;
 use C4::Biblio;
 use C4::Koha;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Serials;
 use C4::Branch; # GetBranches
index 9b1608a..8f42e70 100755 (executable)
@@ -22,7 +22,6 @@ use CGI;
 use C4::Auth;
 use C4::Date;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use C4::Serials;
 
index d132bdb..7a00e82 100755 (executable)
 
 use strict;
 use CGI;
+use Date::Manip;
 use C4::Koha;
 use C4::Auth;
 use C4::Date;
-use C4::Output;
 use C4::Acquisition;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Context;
 use C4::Branch; # GetBranches
 use C4::Serials;
-use Date::Manip;
 use C4::Letters;
 
 my $query = new CGI;
index c379346..6f28c43 100755 (executable)
@@ -54,7 +54,6 @@ use C4::Koha;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Search;
 use C4::Biblio;
 
index a416d69..7993f12 100755 (executable)
@@ -3,16 +3,15 @@
 
 use strict;
 use CGI;
+use Date::Manip;
+
 use C4::Koha;
 use C4::Auth;
 use C4::Date;
 use C4::Output;
 use C4::Acquisition;
-use C4::Interface::CGI::Output;
 use C4::Context;
-
 use C4::Serials;
-use Date::Manip;
 
 my $query = new CGI;
 my $subscriptionid = $query->param('subscriptionid');
index 5f7c88e..c26b5a8 100755 (executable)
@@ -22,7 +22,6 @@ use C4::Koha;
 use C4::Date;
 use C4::Serials;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Context;
 use Date::Manip;
 
index 16cdc7e..5856c23 100755 (executable)
@@ -56,7 +56,6 @@ use C4::Date;
 use C4::Context;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Serials;
 
 my $query = new CGI;
index 5608176..24581f6 100755 (executable)
 # Suite 330, Boston, MA  02111-1307 USA
 
 use strict;
+use CGI;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use CGI;
-use C4::Interface::CGI::Output;
-use C4::Interface::CGI::Template;
 use C4::Koha;
 use C4::Letters;
 use C4::Serials;
index f9f82fa..d51e01d 100755 (executable)
@@ -70,7 +70,7 @@ require Exporter;
 use CGI;
 
 use C4::Auth;    # get_template_and_user
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Suggestions;
 use C4::Koha;    # GetAuthorisedValue
 
index f436888..08924f5 100755 (executable)
@@ -3,7 +3,7 @@
 # script to generate items barcodes
 # written 07/04
 # by Veleda Matias - matias_veleda@hotmail.com - Physics Library UNLP Argentina and
-#    Castañeda Sebastian - seba3c@yahoo.com.ar - Physics Library UNLP Argentina and
+#    Casta�eda Sebastian - seba3c@yahoo.com.ar - Physics Library UNLP Argentina and
 
 # This file is part of Koha.
 #
@@ -24,7 +24,6 @@ use strict;
 use CGI;
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 
 use C4::Context;
index 8984920..db304ad 100755 (executable)
@@ -32,17 +32,14 @@ use strict;
 # standard or CPAN modules used
 use CGI;
 use DBI;
+use MARC::File::USMARC;
 
 # Koha modules used
 use C4::Context;
-use C4::Output;
-use C4::Interface::CGI::Output;
+use C4::Auth;
 use C4::Input;
-use C4::Biblio;
-use MARC::File::USMARC;
-
 use C4::Output;
-use C4::Auth;
+use C4::Biblio;
 use C4::Breeding;
 
 #------------------
@@ -103,6 +100,13 @@ my $file;
 #---------------
 # log cleared, as marcimport is (almost) rewritten from scratch.
 # $Log$
+# Revision 1.3  2007/04/24 13:54:30  hdl
+# functions that were in C4::Interface::CGI::Output are now in C4::Output.
+# So this implies quite a change for files.
+# Sorry about conflicts which will be caused.
+# directory Interface::CGI should now be dropped.
+# I noticed that many scripts (reports ones, but also some circ/stats.pl or opac-topissues) still use Date::Manip.
+#
 # Revision 1.2  2007/03/09 15:47:55  tipaul
 # rel_3_0 moved to HEAD (introducing new files)
 #
index 0928e71..3be6059 100755 (executable)
@@ -36,7 +36,7 @@ This script allows to do 2 things.
 use strict;
 use CGI;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 
 use C4::Members;               # GetBorrowersWhoHavexxxBorrowed.
index 59352e3..dd47161 100755 (executable)
@@ -5,7 +5,6 @@ use CGI;
 
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 
 use C4::Calendar;
index c540c64..540f6e8 100755 (executable)
@@ -21,7 +21,6 @@
 use strict;
 require Exporter;
 use C4::Auth;
-use C4::Interface::CGI::Output;
 use C4::Output;  # contains gettemplate
 use C4::Biblio;  # GetMarcBiblio GetXmlBiblio
 use CGI;
index 6994f87..cf42716 100755 (executable)
@@ -21,7 +21,6 @@ use CGI;
 
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 
 use C4::Calendar;
index 569dc6c..6b6ca69 100755 (executable)
@@ -31,18 +31,14 @@ use strict;
 
 # standard or CPAN modules used
 use CGI;
-use DBI;
+use MARC::File::USMARC;
 
 # Koha modules used
 use C4::Context;
-use C4::Output;
-use C4::Interface::CGI::Output;
+use C4::Auth;
 use C4::Input;
-use C4::Biblio;
-use MARC::File::USMARC;
-
 use C4::Output;
-use C4::Auth;
+use C4::Biblio;
 use C4::Breeding;
 
 #------------------
@@ -101,6 +97,13 @@ output_html_with_http_headers $input, $cookie, $template->output;
 #---------------
 # log cleared, as marcimport is (almost) rewritten from scratch.
 # $Log$
+# Revision 1.5  2007/04/24 13:54:30  hdl
+# functions that were in C4::Interface::CGI::Output are now in C4::Output.
+# So this implies quite a change for files.
+# Sorry about conflicts which will be caused.
+# directory Interface::CGI should now be dropped.
+# I noticed that many scripts (reports ones, but also some circ/stats.pl or opac-topissues) still use Date::Manip.
+#
 # Revision 1.4  2007/03/09 15:14:47  tipaul
 # rel_3_0 moved to HEAD
 #
index b2120d8..97a97bb 100755 (executable)
@@ -22,7 +22,6 @@ use CGI;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::Biblio;
 use C4::Date;
 use C4::Koha;
index 0861339..6fa0272 100755 (executable)
@@ -26,7 +26,7 @@ This script displays lost items.
 use strict;
 use CGI;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Biblio;    # GetLostItems
 use C4::Koha;                  # GetItemTypes
 use C4::Branch; # GetBranches
index 1169d3b..68ea675 100755 (executable)
@@ -2,7 +2,7 @@
 
 # Script to manage the opac news.
 # written 11/04
-# Castañeda, Carlos Sebastian - seba3c@yahoo.com.ar - Physics Library UNLP Argentina
+# Casta�eda, Carlos Sebastian - seba3c@yahoo.com.ar - Physics Library UNLP Argentina
 # Modified to include news to KOHA intranet - tgarip@neu.edu.tr NEU library -Cyprus
 # Copyright 2000-2002 Katipo Communications
 #
@@ -27,7 +27,6 @@ use C4::Auth;
 use C4::Koha;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 use C4::NewsChannels;
 use C4::Languages;
 use Date::Calc qw/Date_to_Days Today/;
index eb954f8..9be77f7 100755 (executable)
@@ -43,7 +43,6 @@ use C4::Date;
 use C4::Auth;
 use C4::Context;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 
 sub StringSearch  {
index a22a19e..71dd839 100755 (executable)
@@ -5,7 +5,6 @@ use CGI;
 
 use C4::Auth;
 use C4::Output;
-use C4::Interface::CGI::Output;
 
 
 use C4::Calendar;
index 75948b2..5bdec70 100755 (executable)
@@ -21,11 +21,8 @@ use strict;
 use CGI;
 use C4::Context;
 use C4::Output;
-
 use C4::Auth;
-use C4::Output;
 use C4::Koha;
-use C4::Interface::CGI::Output;
 use C4::Branch; # GetBranches
 use C4::Letters;
 
index a29ff78..ede9395 100755 (executable)
 require Exporter;
 
 use strict;
-
 use CGI;
-use C4::Context;
-use C4::Output;
-use C4::Auth;
-
 use PDF::API2;
 use PDF::API2::Page;
 use PDF::API2::PDF::Utils;
-use C4::Interface::CGI::Output;
+
+use C4::Context;
+use C4::Output;
+use C4::Auth;
 
 # This function returns the path to deal with the correct files, considering
 # templates set and language.
index 1a87fd6..cca60e9 100755 (executable)
@@ -18,7 +18,7 @@
 use strict;
 use CGI;
 use C4::Auth;
-use C4::Interface::CGI::Output;
+use C4::Output;
 
 my $query = new CGI;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
index 691fe35..080b1cc 100755 (executable)
@@ -24,7 +24,7 @@ use C4::Auth;
 use CGI;
 use C4::Context;
 use C4::Koha;
-use C4::Interface::CGI::Output;
+use C4::Output;
 use C4::Log;
 use Date::Manip;