Skip to content

Commit c54ddb9

Browse files
committed
Remove 'type' from json serialization of records
1 parent e72149b commit c54ddb9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/BibliographicRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class BibliographicRecord extends Record
1313
/**
1414
* @var array List of properties to be included when serializing the record using the `toArray()` method.
1515
*/
16-
public $properties = ['id', 'type', 'isbns', 'title', 'subjects'];
16+
public $properties = ['id', 'isbns', 'title', 'subjects'];
1717

1818
/**
1919
* Get the descriptive cataloging form value from LDR/18. Returns any of

src/HoldingsRecord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class HoldingsRecord extends Record
1515
/**
1616
* @var array List of properties to be included when serializing the record using the `toArray()` method.
1717
*/
18-
public $properties = ['id', 'type', 'location'];
18+
public $properties = ['id', 'location'];
1919

2020
/*************************************************************************
2121
* Helper methods for specific fields. Each of these are supported by

src/Record.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Record implements \JsonSerializable
2727
/**
2828
* @var array List of properties to be included when serializing the record using the `toArray()` method.
2929
*/
30-
public $properties = ['id', 'type'];
30+
public $properties = ['id'];
3131

3232
/**
3333
* Record constructor.

0 commit comments

Comments
 (0)