File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
20
20
- ` getPartOf() ` for 773 fields
21
21
- Added a ` mapSubFields() ` method to the ` Field ` class.
22
22
- Made the ` Record ` class JSON serializable.
23
-
23
+ - Added a ` getType() ` and ` getTag() ` method to ` Classification ` .
24
24
### Changed
25
25
26
26
- Changed the ` Field::sf() ` method to return ` NULL ` , not an empty string,
Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ class Classification extends Subfield implements \JsonSerializable
8
8
{
9
9
use SerializableField;
10
10
11
+ const UDC = '080 ' ;
12
+ const DEWEY = '082 ' ;
13
+ const ADD_DEWEY = '082 ' ;
14
+ const OTHER_SCHEME = '084 ' ;
15
+
11
16
/**
12
17
* @var array List of properties to be included when serializing the record using the `toArray()` method.
13
18
*/
@@ -25,6 +30,16 @@ public static function get(Record $record)
25
30
return $ out ;
26
31
}
27
32
33
+ public function getType ()
34
+ {
35
+ return $ this ->getTag ();
36
+ }
37
+
38
+ public function getTag ()
39
+ {
40
+ return $ this ->field ->getTag ();
41
+ }
42
+
28
43
public function getScheme ()
29
44
{
30
45
$ typeMap = [
You can’t perform that action at this time.
0 commit comments