File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ composer require scriptotek/marc dev-master
22
22
## Reading records
23
23
24
24
Records are loaded into a ` Collection ` object using
25
- ` Collection::fromFile ` or ` Collection::fromString ` ,
25
+ ` Collection::frrcle ` or ` Collection::fromStringString ` ,
26
26
which autodetects if the data is Binary MARC or XML:
27
27
28
28
``` php
@@ -61,7 +61,7 @@ syntax provided by the [php-marc-spec package](https://github.com/MARCspec/php-m
61
61
``` php
62
62
use Scriptotek\Marc\Collection;
63
63
64
- $collection = Collection::from($someMarcDataOrFile );
64
+ $collection = Collection::fromFile($someMarcFile );
65
65
66
66
foreach ($collection->records as $record) {
67
67
echo $record->get('250$a');
@@ -94,7 +94,7 @@ for presentation purpose, like so:
94
94
``` php
95
95
use Scriptotek\Marc\Record;
96
96
97
- $record = Record::from ('<?xml version =" 1.0" encoding =" UTF-8" ?>
97
+ $record = Record::fromString ('<?xml version =" 1.0" encoding =" UTF-8" ?>
98
98
<record xmlns =" " " http://www.loc.gov/MARC21/slim" >
99
99
<leader >99999cam a2299999 u 4500</leader >
100
100
<controlfield tag =" 001" >98218834x</controlfield >
You can’t perform that action at this time.
0 commit comments