Skip to content

Commit 545fcbf

Browse files
committed
Add Subject::getControlNumber()
1 parent 6c8f71b commit 545fcbf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Fields/Subject.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ public function getVocabulary()
3131
return;
3232
}
3333

34+
/**
35+
* Return the Authority record control number
36+
*/
37+
public function getControlNumber($value='')
38+
{
39+
return $this->field->getSubfield('0');
40+
}
41+
3442
public function __toString()
3543
{
3644
$parts = array();

0 commit comments

Comments
 (0)