From 9a9d469987b55067ea3003649f912f66b5f2d072 Mon Sep 17 00:00:00 2001 From: Owen Leonard <oleonard@myacpl.org> Date: Tue, 22 Oct 2013 14:58:25 -0700 Subject: [PATCH] Bug 8033 - Remove unused template file. Bugs 11349 and 12062 implements part 1 and 2 of the 3 things listed before. This patch removes the unused receipt.tt file. TEST PLAN --------- 1) Confirm the file isn't used. $ git grep "sco/receipt" | grep -v "\.po:" -- this should list nothing, because there are still po files referencing it, but they aren't needed either. 2) ls Reimplementation of Kyle's follow-up, minus the addition of "<titleunused receipt.tt file. TEST PLAN --------- 1) Confirm the file isn't used. $ git grep "sco/receipt" | grep -v "\.po:" -- this should list nothing, because there are still po files referencing it, but they aren't needed either. 2) ls ./koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/receipt.tt -- there should be a file 3) apply patch 4) repeat step 2 -- the file should be removed --- .../opac-tmpl/bootstrap/en/modules/sco/receipt.tt | 46 ---------------------- 1 file changed, 46 deletions(-) delete mode 100644 koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/receipt.tt diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/receipt.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/receipt.tt deleted file mode 100644 index 3a28694..0000000 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/receipt.tt +++ /dev/null @@ -1,46 +0,0 @@ -<!DOCTYPE html> -[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %] -<head> -<title>RECEIPT</title> -<script type="text/javascript"> - x = 0; - function callPrint(){ - while (x == 0){ - self.print(); - javascript:window.opener.location='/cgi-bin/koha/sco/sco-main.pl?logout.x=1'; - x = 1; - } - } - - function closeNow(){ - if (x == 1){ - setTimeout('self.close()',1000); - } - } -</script> - -[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %] -[% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %] - -</head> - -<body onLoad="callPrint(); closeNow();"> - -[% branchname %]<br><br> -[% cardnumber %]<br> - -[% IF ( todayissues ) %]<br> -<p><b>Today's checkouts</b></p> -[% FOREACH todayissue IN todayissues %]<br> -[% todayissue.title |html %]<br> -[% todayissue.author %]<br> -[% todayissue.dd %]<br> -[% todayissue.barcode %]<br> -[% END %] -[% END %] - -</body> -</html> - -[% BLOCK jsinclude %] -[% END %] -- 1.9.1