This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +39
-12
lines changed Expand file tree Collapse file tree 3 files changed +39
-12
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ div.viewInfo{
6
6
display : block!important ;
7
7
}
8
8
9
- table # browseTable {
9
+ table . bitstreamList {
10
10
display : table!important ;
11
11
}
12
12
@@ -34,10 +34,6 @@ div.genericInfo .genericSubtitle {
34
34
font-size : 10px ;
35
35
}
36
36
37
- # browseTable {
38
- margin-top : 0px ;
39
- }
40
-
41
37
.itemStats {
42
38
float : right;
43
39
font-size : 10px ;
Original file line number Diff line number Diff line change @@ -55,6 +55,31 @@ $(document).ready(function() {
55
55
showDialog ( json . item . message . duplicate ) ;
56
56
} ) ;
57
57
58
+ $ ( 'tr.bitstreamRow' ) . qtip ( {
59
+ content : {
60
+ text : function ( api ) {
61
+ var name = $ ( this ) . find ( 'td:first div span[name=filename]' ) . html ( ) ;
62
+ var md5 = $ ( this ) . find ( 'td:first div span[name=md5]' ) . html ( ) ;
63
+ var size = $ ( this ) . find ( 'td:first div span[name=sizeBytes]' ) . html ( ) ;
64
+ var type = $ ( this ) . find ( 'td:first div span[name=mimeType]' ) . html ( ) ;
65
+ var text = '<b>Filename:</b> ' + name + '<br/>' ;
66
+ text += '<b>Size:</b> ' + size + ' bytes<br/>' ;
67
+ text += '<b>MIME Type:</b> ' + type + '<br/>' ;
68
+ text += '<b>MD5:</b> ' + md5 + '<br/>' ;
69
+ return text ;
70
+ }
71
+ } ,
72
+ position : {
73
+ target : 'mouse' ,
74
+ adjust : {
75
+ mouse : false
76
+ }
77
+ } ,
78
+ hide : {
79
+ event : 'unfocus mouseleave'
80
+ }
81
+ } ) ;
82
+
58
83
$ ( 'a#itemDeleteLink' ) . click ( function ( ) {
59
84
$ . ajax ( {
60
85
type : "GET" ,
Original file line number Diff line number Diff line change @@ -145,24 +145,30 @@ if($this->preview) // module visualize
145
145
echo '</div> ' ;
146
146
echo '<div class="revisionContent"> ' ;
147
147
echo '<h4 style="margin-top: 0px;margin-bottom: 5px;"> ' .$ this ->t ('CONTENT ' ).'</h4> ' ;
148
- echo '<table style="display:block;" id="browseTable" class="bitstreamList"> ' ; ?>
148
+ echo '<table style="display:block;" class="bitstreamList"> ' ; ?>
149
149
<thead>
150
150
<tr>
151
151
<th><?php echo $ this ->t ('Name ' );?> </th>
152
152
<th><?php echo $ this ->t ('Size ' );?> </th>
153
- <th><?php echo $ this ->t ('Type ' );?> </th>
154
153
</tr>
155
154
</thead>
156
155
<tbody>
157
156
<?php
158
157
$ bitstreams = $ revision ->getBitstreams ();
159
158
foreach ($ bitstreams as $ bitstream )
160
159
{
161
- echo "<tr> " ;
162
- echo " <td> {$ this ->slicename ($ bitstream ->getName (),50 )}</td> " ;
163
- echo " <td> {$ this ->Utility ->formatSize ($ bitstream ->getSizebytes ())} </td> " ;
164
- echo " <td> {$ bitstream ->getMimetype ()}</td> " ;
165
- echo "</tr> " ;
160
+ echo '<tr class="bitstreamRow"> ' ;
161
+ echo '<td> ' ;
162
+ echo ' <div style="display: none;"> ' ;
163
+ echo ' <span name="filename"> ' .$ bitstream ->getName ().'</span> ' ;
164
+ echo ' <span name="md5"> ' .$ bitstream ->getChecksum ().'</span> ' ;
165
+ echo ' <span name="sizeBytes"> ' .$ bitstream ->getSizebytes ().'</span> ' ;
166
+ echo ' <span name="mimeType"> ' .$ bitstream ->getMimetype ().'</span> ' ;
167
+ echo ' </div> ' ;
168
+ echo $ this ->slicename ($ bitstream ->getName (), 50 );
169
+ echo '</td> ' ;
170
+ echo '<td> ' .$ this ->Utility ->formatSize ($ bitstream ->getSizebytes ()).'</td> ' ;
171
+ echo '</tr> ' ;
166
172
}
167
173
?>
168
174
</tbody>
You can’t perform that action at this time.
0 commit comments