@@ -103,7 +103,7 @@ public function indexAction()
103
103
{
104
104
$ bitstream =$ bitstreams [0 ];
105
105
$ this ->view ->mimetype = $ bitstream ->getMimetype ();
106
- $ this ->view ->path = $ bitstream ->getPath ();
106
+ $ this ->view ->path = $ bitstream ->getAssetstore ()-> getPath (). ' / ' . $ bitstream -> getPath ();
107
107
$ this ->view ->name =$ bitstream ->getName ();
108
108
if (!file_exists ($ this ->view ->path ))
109
109
{
@@ -120,7 +120,7 @@ public function indexAction()
120
120
$ zip = new ZipStream ($ name .'.zip ' );
121
121
foreach ($ bitstreams as $ bitstream )
122
122
{
123
- $ zip ->add_file_from_path ($ bitstream ->getName (), $ bitstream ->getPath ());
123
+ $ zip ->add_file_from_path ($ bitstream ->getName (), $ bitstream ->getAssetstore ()-> getPath (). ' / ' . $ bitstream -> getPath ());
124
124
}
125
125
$ zip ->finish ();
126
126
}
@@ -152,7 +152,7 @@ private function createZipRecursive($zip,$path,$folders,$revisions)
152
152
$ bitstreams =$ revision ->getBitstreams ();
153
153
foreach ($ bitstreams as $ bitstream )
154
154
{
155
- $ zip ->add_file_from_path ($ path .'/ ' .$ bitstream ->getName (), $ bitstream ->getPath ());
155
+ $ zip ->add_file_from_path ($ path .'/ ' .$ bitstream ->getName (), $ bitstream ->getAssetstore ()-> getPath (). ' / ' . $ bitstream -> getPath ());
156
156
}
157
157
}
158
158
foreach ($ folders as $ folder )
@@ -178,7 +178,7 @@ private function createZipRecursive($zip,$path,$folders,$revisions)
178
178
$ bitstreams =$ subRevisions ->getBitstreams ();
179
179
foreach ($ bitstreams as $ bitstream )
180
180
{
181
- $ zip ->add_file_from_path ($ path .'/ ' .$ bitstream ->getName (), $ bitstream ->getPath ());
181
+ $ zip ->add_file_from_path ($ path .'/ ' .$ bitstream ->getName (), $ bitstream ->getAssetstore ()-> getPath (). ' / ' . $ bitstream -> getPath ());
182
182
}
183
183
}
184
184
}
0 commit comments