source: main/trunk/greenstone2/macros/talkback.dm@ 23059

Last change on this file since 23059 was 23059, checked in by davidb, 14 years ago

New macros to support DL talkback where two Greenstone digital libraries that can transfer documents between themselves.

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1package talkback
2
3# The following values are typically set in <gsdlhome>/macro/extra.dm
4_talkfromcgi_ {}
5_talktocgi_ {}
6
7# Set by the runtime system
8_randString_ {}
9
10_talkfromLibrary_ {_talkfromcgi_/library.cgi}
11_talkfromUploadSimulate_ {_talkfromcgi_/upload-sim.pl}
12
13_talktoLibrary_ {_talktocgi_/library.cgi}
14_talktoUpload_ {_talktocgi_/upload-pb.pl}
15
16
17_uploadForm_ {
18
19 <form name="uploadForm"
20 action="_talkfromUploadSimulate_"
21 enctype="multipart/form-data"
22 method="post">
23 <input type="hidden" name="yes_upload" value="1" />
24 <input type="hidden" name="process" value="1" />
25 <input type="hidden" name="rand_string" id="rand_string" value="_randString_" />
26 <input type="hidden" name="oid" value="" />
27
28 </form>
29
30 <script type="text/javascript">
31
32 function talkbackUploadSubmit(oid)
33 \{
34 var uploadForm = document.uploadForm;
35 // uploadForm.oid.value = oid;
36 uploadForm.submit();
37 \}
38 </script>
39}
40
41_monitorUpload_ {
42 <iframe frameborder="0" width="600" height="80"
43 src="_talktoUpload_?rand\_string=_randString_">
44
45 </iframe>
46}
47
48#---------------------------
49
50_imagethispage_ {DL Talkback}
51
52_content_ {
53_optnavigationbar_
54
55
56<div class="divbar">&nbsp;</div>
57
58<div style="min-height: 500px;">
59 <div style="width: 47%; height: 100%; float: left; margin-left: 1px">
60
61 <iframe width="100%" height="500" frameborder="0"
62 src="_talkfromLibrary_?a=p&p=about&c=video-demo&talkback=1">
63 </iframe>
64
65
66 </div>
67
68 <div style="float: right; width: 51%; height: 100%; margin-right: 1px;">
69 <iframe width="100%" height="500" frameborder="0"
70 src="_talktoLibrary_?a=p&p=about&c=5-showcase/talkback&talkback=1">
71 </iframe>
72 </div>
73
74</div>
75<div style="clear: both"></div>
76<div class="divbar">&nbsp;</div>
77
78
79<center>
80 <div style="width: 800px;">
81 _monitorUpload_
82 </div>
83</center>
84
85}
86
Note: See TracBrowser for help on using the repository browser.