src/BibliographicRecord.php
public function getMaterialSubtypeFrom007($x1, $x2, $default = 'Unknown')
    {
        $f007values = array(
            'a' => array(
                'd' => 'Atlas',
                'g' => 'Diagram',
                'j' => 'Map',
                'k' => 'Profile',
                'q' => 'Model',
                'r' => 'Remote-sensing image',
                '_' => 'Map',
            ),
            'c' => array(
                'a' => 'Tape cartridge',
                'b' => 'Chip cartridge',
                'c' => 'Computer optical disc cartridge',
                'd' => 'Computer disc, type unspecified',
                'e' => 'Computer disc cartridge, type unspecified',
                'f' => 'Tape cassette',
                'h' => 'Tape reel',
                'j' => 'Magnetic disk',
                'k' => 'Computer card',
                'm' => 'Magneto-optical disc',
                'o' => 'CD-ROM',                // Optical disc
                'r' => 'Remote resource',    // n Nettdokumenter
            ),
            'f' => array(
                'a' => 'Moon',         // in the Moon writing system
                'b' => 'Braille',      // in the Braille writing system
                'c' => 'Combination ', // in a combination of two or more of the other defined types
                'd' => 'No writing system',
            ),
            'h' => array(
                'a' => 'Aperture card',
                'b' => 'Microfilm cartridge',
                'c' => 'Microfilm cassette',
                'd' => 'Microfilm reel',
                'e' => 'Microfiche',
                'f' => 'Microfiche cassette',
                'g' => 'Microopaque',
                'h' => 'Microfilm slip',
                'j' => 'Microfilm roll',
                'u' => 'Microform', // Unspecified
                'z' => 'Microform', // Other
                '|' => 'Microform', // No attempt to code
            ),
            'o' => array(
                'u' => 'Kit',
                '|' => 'Kit',
            ),
            's' => array(
                'd' => 'Music CD',             // v CD-er
                'e' => 'Cylinder',
                'g' => 'Sound cartridge',
                'i' => 'Sound-track film',
                'q' => 'Roll',
                's' => 'Sound cassette',
                't' => 'Sound-tape reel',
                'u' => 'Unspecified',
                'w' => 'Wire recording',
            ),
            'v' => array(
                'c' => 'Videocartridge',
                'd' => 'Videodisc',           // w DVD-er
                'f' => 'Videocassette',
                'r' => 'Videoreel',
            ),
        );
        if (isset($f007values[$x1]) && isset($f007values[$x1][$x2])) {
            return $f007values[$x1][$x2];
        }
        // TODO: LOG IT!
        return $default;
    }
public function getMaterialSubtypeFrom007($x1, $x2, $default = 'Unknown')
    {
        $f007values = array(
            'a' => array(
                'd' => 'Atlas',
                'g' => 'Diagram',
                'j' => 'Map',
                'k' => 'Profile',
                'q' => 'Model',
                'r' => 'Remote-sensing image',
                '_' => 'Map',
            ),
            'c' => array(
                'a' => 'Tape cartridge',
                'b' => 'Chip cartridge',
                'c' => 'Computer optical disc cartridge',
                'd' => 'Computer disc, type unspecified',
                'e' => 'Computer disc cartridge, type unspecified',
                'f' => 'Tape cassette',
                'h' => 'Tape reel',
                'j' => 'Magnetic disk',
                'k' => 'Computer card',
                'm' => 'Magneto-optical disc',
                'o' => 'CD-ROM',                // Optical disc
                'r' => 'Remote resource',    // n Nettdokumenter
            ),
            'f' => array(
                'a' => 'Moon',         // in the Moon writing system
                'b' => 'Braille',      // in the Braille writing system
                'c' => 'Combination ', // in a combination of two or more of the other defined types
                'd' => 'No writing system',
            ),
            'h' => array(
                'a' => 'Aperture card',
                'b' => 'Microfilm cartridge',
                'c' => 'Microfilm cassette',
                'd' => 'Microfilm reel',
                'e' => 'Microfiche',
                'f' => 'Microfiche cassette',
                'g' => 'Microopaque',
                'h' => 'Microfilm slip',
                'j' => 'Microfilm roll',
                'u' => 'Microform', // Unspecified
                'z' => 'Microform', // Other
                '|' => 'Microform', // No attempt to code
            ),
            'o' => array(
                'u' => 'Kit',
                '|' => 'Kit',
            ),
            's' => array(
                'd' => 'Music CD',             // v CD-er
                'e' => 'Cylinder',
                'g' => 'Sound cartridge',
                'i' => 'Sound-track film',
                'q' => 'Roll',
                's' => 'Sound cassette',
                't' => 'Sound-tape reel',
                'u' => 'Unspecified',
                'w' => 'Wire recording',
            ),
            'v' => array(
                'c' => 'Videocartridge',
                'd' => 'Videodisc',           // w DVD-er
                'f' => 'Videocassette',
                'r' => 'Videoreel',
            ),
        );
        if (isset($f007values[$x1]) && isset($f007values[$x1][$x2])) {
            return $f007values[$x1][$x2];
        }
        // TODO: LOG IT!
        return $default;
    }
@param string $x1
@param string $x2
@param string $default

@return string