Improvements to offline circ report (linking to title and patron records), and moving...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / offline_circ / process_koc.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Offline Circulation File Upload</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="file-upload.inc" -->
5 <!-- TMPL_INCLUDE NAME="background-job.inc" -->
6 <script type="text/javascript">
7 //<![CDATA[
8 $(document).ready(function(){
9         $("#processfile").hide();
10 });
11 function CheckUpload(f){
12         if(f.fileToUpload.value == ""){
13                 alert("Please choose a file to upload");
14         } else {
15                 return ajaxFileUpload()
16         }
17                 return false;
18 }
19 function CheckForm(f) {
20     if (f.uploadedfileid.value == '') {
21         alert('Please upload a file first.');
22     } else {
23                 $("#fileuploadstatus").hide();
24                 $("#fileuploadform").slideUp();
25         return submitBackgroundJob(f);
26     }
27     return false;
28 }
29
30 //]]>
31 </script>
32 <style type="text/css">
33         #fileuploadstatus,#jobstatus { margin:.4em; }
34         #fileuploadprogress,#jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('/intranet-tmpl/prog/img/progress.png') -300px 0px no-repeat; }
35 </style>
36 </head>
37 <body>
38 <!-- TMPL_INCLUDE NAME="header.inc" -->
39 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
40
41 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; <!-- TMPL_IF NAME="transactions_loaded" --> <a href="/cgi-bin/koha/offline_circ/process_koc.pl">Offline Circulation File Upload</a> &rsaquo; Results<!-- TMPL_ELSE --> Offline Circulation File Upload<!-- /TMPL_IF --></div>
42
43 <div id="doc" class="yui-t7">
44    
45    <div id="bd">
46
47 <!-- TMPL_IF NAME="transactions_loaded" -->
48   <h2>Koha Offline Circulation</h2>
49   <p>Your data was processed. Here are the results:</p>
50   <!-- TMPL_LOOP NAME="messages" -->
51     <!-- TMPL_IF NAME="message" -->
52         <div class="dialog alert">
53                 <!-- TMPL_IF NAME="ERROR_file_version" --><p>Warning: This file is version <!-- TMPL_VAR NAME="upload_version" -->, but I only know how to import version <!-- TMPL_VAR NAME="current_version" -->. I'll try my best.</p><!-- /TMPL_IF -->
54         </div>
55         <!-- /TMPL_IF -->
56         <!-- TMPL_IF NAME="ERROR_no_borrower_from_item" --><p>Warning: Unable to determine patron from item barcode (<!-- TMPL_VAR NAME="badbarcode" -->). Cannot check in.</p><!-- /TMPL_IF -->
57         <!-- TMPL_IF NAME="issue" --><p>Checked out <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> (<!-- TMPL_VAR NAME="barcode" -->) to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> (<!-- TMPL_VAR NAME="cardnumber" -->): <!-- TMPL_VAR NAME="datetime" --></p><!-- /TMPL_IF -->
58         <!-- TMPL_IF NAME="renew" --><p>Renewed <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>  (<!-- TMPL_VAR NAME="barcode" -->) for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> (<!-- TMPL_VAR NAME="cardnumber" -->): <!-- TMPL_VAR NAME="datetime" --></p><!-- /TMPL_IF -->
59         <!-- TMPL_IF NAME="return" --><p>Checked in <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a> (<!-- TMPL_VAR NAME="barcode" -->) from <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> (<!-- TMPL_VAR NAME="cardnumber" -->): <!-- TMPL_VAR NAME="datetime" --></p><!-- /TMPL_IF -->
60         <!-- TMPL_IF NAME="payment" --><p>Accepted payment (<!-- TMPL_VAR NAME="amount" -->) from <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a> (<!-- TMPL_VAR NAME="cardnumber" -->): <!-- TMPL_VAR NAME="datetime" --></p><!-- /TMPL_IF -->
61   <!-- /TMPL_LOOP -->
62 <!-- TMPL_ELSE -->
63   <h2>Upload Offline Circulation Data</h2>
64    <div id="fileuploadform">
65      <form method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->" enctype="multipart/form-data">
66                 <fieldset class="brief">
67        <ol><li><label for="fileToUpload">Choose .koc File: </label>
68        <input type="file" id="fileToUpload" size="50" name="fileToUpload" /></li></ol>
69            <fieldset class="action"><input type="button" class="submit" value="Upload file" onclick="CheckUpload(this.form);" /></fieldset>
70            </fieldset>
71      </form>
72      <div id="fileuploadstatus" style="display:none">Upload progress: <div id="fileuploadprogress"></div> <span id="fileuploadpercent">0</span>%</div>
73      <div id="fileuploadfailed" style="display:none"></div>
74    </div>
75    <form action="process_koc.pl" id="processfile" method="post" enctype="multipart/form-data">
76      <input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
77      <input type="hidden" name="runinbackground" id="runinbackground" value="" />
78      <input type="hidden" name="completedJobID" id="completedJobID" value="" />
79      <input type="submit" value="Process offline circulation file" onclick="return CheckForm(this.form);" id="mainformsubmit" />
80      <div id="jobstatus" style="display:none">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
81      <div id="jobfailed" style="display:none"></div>
82    </form>
83 <!-- /TMPL_IF -->
84
85
86 </div>
87 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->