File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
namespace Scriptotek \Marc ;
4
4
5
5
use Scriptotek \Marc \Importers \Importer ;
6
- use Scriptotek \Marc \Importers \OaiPmhResponse ;
6
+ use Scriptotek \Marc \Importers \XmlImporter ;
7
7
use Scriptotek \Marc \Importers \SruResponse ;
8
8
9
9
class Collection
@@ -27,7 +27,7 @@ public static function fromString($data)
27
27
28
28
public static function fromOaiPmhResponse ($ data )
29
29
{
30
- $ importer = new OaiPmhResponse ($ data );
30
+ $ importer = new XmlImporter ($ data );
31
31
32
32
return $ importer ->getCollection ();
33
33
}
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public function get($spec)
140
140
{
141
141
$ reference = new \File_MARC_Reference ($ spec , $ this ->record );
142
142
143
- return $ reference ?: array ();
143
+ return $ reference-> content ?: array ();
144
144
}
145
145
146
146
public function __call ($ name , $ args )
You can’t perform that action at this time.
0 commit comments