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 aQueryResultobject rather than an array of strings. This allows access to the marc fields / subfields matched by the query.Collection::recordshas been removed in favor of making the records available directly on theCollectionclass. 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 onSubjectfor comparison, so to check if a subject is a topical term, you can do$subject->type == Subject::TOPICAL_TERM.Record::fromStringnow throws aRecordNotFoundexception rather than anErrorExceptionexception if no record was found.Record::getTypenow throws aUnknownRecordTypeexception rather than anErrorException.