Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 28, 2014
  1. @dbs

    Fix MARC-in-JSON serialization of subfield 0

    dbs authored
    Work around json_encode()'s inability to express array keys as stringified keys
    (and thus objects, in keeping with the MARC-in-JSON specification) in the
    _specific_ case of 0, via a (yes) regex.
    Now I have *E#(*DSNFSD( problems...
    Signed-off-by: Dan Scott <>
Commits on Jan 19, 2014
  1. @dbs

    Correct CodeSniffer errors in File/MARCXML

    dbs authored
    Gotta have those spaces after commas!
    Signed-off-by: Dan Scott <>
Commits on Dec 19, 2013
  1. @cKlee
Commits on Nov 28, 2013
  1. @dbs

    MARC_Lint update from Demian Katz for latest MARC rules

    dbs authored
    The Perl MARC::Lint set of rules has been updated in various places,
    including RDA changes. Sync up with the Perl MARC::Lint set of MARC
    Thanks to Demian Katz <> for providing this
    Signed-off-by: Dan Scott <>
Commits on Oct 30, 2013
  1. @dbs

    Fix problem reported by Mark Jordan in toRaw() output

    dbs authored
    We were using a test for the existence of data that stumbled upon ye
    olde PHP interpretation of "string '0' is FALSE" which ended up
    generating corrupted MARC binary output.
    Add a unit test, using UUENCODE to avoid problems with binary file
    encodings. You can decode it if you fear that it is not a valid MARC
    file :)
    Signed-off-by: Dan Scott <>
Commits on Oct 2, 2013
  1. @dbs

    Updated PHP_CodeSniffer compliance

    dbs authored
    Signed-off-by: Dan Scott <>
  2. @dbs

    Remove dependency on Structures_LinkedList

    dbs authored
    Use the native SplDoublyLinkedList implementation rather than the
    pure-PHP Structures_LinkedList package, in theory to gain performance
    and robustness bonuses, while reducing dependencies.
    As SplDoublyLinkedList does not offer an add() method until PHP 5.5.0,
    we need to implement our own insert methods. Still much less code than
    having to rely on Structures_LinkedList.
    SplDoublyLinkedList was not integrated until PHP 5.3.0, so bump the
    minimum PHP version accordingly.
    Signed-off-by: Dan Scott <>
    All unit tests passing again
    Still need to sort out the proper location of get/setPosition but
    working well enough for now.
    Signed-off-by: Dan Scott <>
Commits on Sep 13, 2013
  1. @librarywebchic @dbs

    Always define namespace for record elements

    librarywebchic authored dbs committed
    Changed toXML to make sure when it is render both with and without a
    collection element that the MARC namespace is present.
    Signed-off-by: Dan Scott <>
Commits on Mar 22, 2013
  1. @dbs

    Close bug # 19845 Record::toXML returns nothing

    dbs authored
    When the toXML() routine was refactored, a dangling reference to a
    non-existent variable was left behind. In addition, we were able to
    improve the toXML() routine such that it returns XML without
    automatically printing it. Thanks to jfragoulis for reporting this
    problem and offering a suggested fix.
    Signed-off-by: Dan Scott <>
Commits on Apr 7, 2012
  1. Add File_MARC_Lint for MARC syntax checking

    Dan Scott authored
    Many thanks to Demian Katz <> for the contribution of
    File_MARC_Lint. This gives users an easy way to check the validity of their
    USMARC records.
    Accordingly, we're bumping the version to 0.7.0 and adding Validate_ISPN to the
    dependencies list.
    git-svn-id: c90b9560-bf6c-de11-be94-00142212c4b1
Commits on Feb 8, 2011
  1. Improve handling of overly long leaders as sometimes happens with MAR…

    Dan Scott authored
    Rather than generating MARC records with correspondingly overly long
    leaders, which confuses many other MARC parsing tools greatly, truncate
    the leader at 24 chars and move on. It's mangled, there's not much more
    we can do about the leader, but at least there's a chance the directory
    can be salvaged.
    git-svn-id: c90b9560-bf6c-de11-be94-00142212c4b1
  2. PEAR 18251: fix for checking the record length

    Dan Scott authored
    Apply Christian Rishøj's patch for checking the record length to avoid
    using the result of the regex if it doesn't match.
    In addition, prefer the actual length of the record to the declared
    length of the record, and add a warning when that condition occurs.
    git-svn-id: c90b9560-bf6c-de11-be94-00142212c4b1
Commits on Aug 15, 2010
  1. Update layout to address bug #17704

    Dan Scott authored
    git-svn-id: c90b9560-bf6c-de11-be94-00142212c4b1
Something went wrong with that request. Please try again.