1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <title>Upload plugin</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7 <script type="text/javascript" src="[% interface %]/lib/jquery/jquery.js"></script>
8 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/staff-global.css" />
9 <script type="text/javascript">
11 function goToUploadPage() {
12 var url = "/cgi-bin/koha/cataloguing/plugin_launcher.pl?"
13 + "plugin_name=upload.pl&index=[% index %]";
14 window.location.href = url;
20 <body id="cat_upload_delete" class="cat">
23 <script type="text/javascript">
25 var doc = opener.document;
26 var field = doc.getElementById("[% index %]");
29 $(document).ready(function() {
34 <p>The file has been successfully deleted.</p>
36 <input type="button" value="Upload a new file" onclick="goToUploadPage();" />
37 <input type="button" value="Close" onclick="window.close();" />
41 [% IF ( MissingURL ) %]
42 <p>Error: The OPAC system preference OPACBaseURL is not configured.</p>
43 <p><input type="button" value="close" onclick="window.close();" /></p>
45 <p>Error: Unable to delete the file.</p>
46 <p><input type="button" value="close" onclick="window.close();" /></p>
48 <h2>File deletion</h2>
49 <p>A file has already been uploaded for this field. Do you want to delete it?</p>
50 <form method="post" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl">
51 <input type="hidden" name="plugin_name" value="upload.pl" />
52 <input type="hidden" name="delete" value="delete" />
53 <input type="hidden" name="id" value="[% id %]" />
54 <input type="hidden" name="index" value="[% index %]" />
55 <input type="button" value="Cancel" onclick="javascript:window.close();" />
56 <input type="submit" value="Delete" />