File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public function setUp()
13
13
<record xmlns="http://www.loc.gov/MARC21/slim">
14
14
<leader>99999cam a2299999 u 4500</leader>
15
15
<controlfield tag="001">98218834x</controlfield>
16
- <datafield tag="020" ind1=" " ind2=" ">
16
+ <datafield tag="020" ind1=" " ind2="3 ">
17
17
<subfield code="a">8200424421</subfield>
18
18
<subfield code="q">h.</subfield>
19
19
<subfield code="c">Nkr 98.00</subfield>
@@ -49,6 +49,12 @@ public function testText()
49
49
$ this ->assertEquals ('8200424421 ' , $ result );
50
50
}
51
51
52
+ public function testIndicator ()
53
+ {
54
+ $ result = $ this ->record ->query ('020 ' )->first ()->getIndicator (2 );
55
+ $ this ->assertEquals ('3 ' , $ result );
56
+ }
57
+
52
58
public function testTextPattern ()
53
59
{
54
60
$ result = $ this ->record ->query ('020$a{$q=\ib.} ' )->text ();
You can’t perform that action at this time.
0 commit comments