Releases: scriptotek/php-marc
Releases · scriptotek/php-marc
Version 0.3.1
- Fixed a bug f67255d
Version 0.3.0
Breaking changes:
Record::get()
was replaced byRecord::query()
, which returns aQueryResult
object rather than an array of strings. This allows access to the marc fields / subfields matched by the query.Collection::records
has been removed in favor of making the records available directly on theCollection
class. Replaceforeach ($collection->records as $record)
withforeach ($collection as $record)
.Subject::getType()
now returns the tag number (like "650)" instead of a string representing the tag (like "topic"). Constants have been defined onSubject
for comparison, so to check if a subject is a topical term, you can do$subject->type == Subject::TOPICAL_TERM
.Record::fromString
now throws aRecordNotFound
exception rather than anErrorException
exception if no record was found.Record::getType
now throws aUnknownRecordType
exception rather than anErrorException
.