From ab574dbaf1a3f4359844d025a1b6cd037caef38d Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Tue, 22 Oct 2013 14:58:25 -0700
Subject: [PATCH] [PASSED QA] Bug 8033 - Remove unused template file.
All prog related patches were obsoleted from this bug.
Bug 11349 changed the code to have the proper template name
used (sco/printslip.tt instead of sco/printsplit.tmpl).
Bug 12062 moved the hard coded string logic into the template,
and passed the borrower number.
This only leaves the patch to remove 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 ./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
Followed test plan, file does no longer exist.
Signed-off-by: Marc Veron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
---
.../opac-tmpl/bootstrap/en/modules/sco/receipt.tt | 46 --------------------
1 files changed, 0 insertions(+), 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.7.2.5