Stud.IP  5.4
MarcxmlLibraryResultParser Class Reference
Inheritance diagram for MarcxmlLibraryResultParser:
LibraryResultParser

Public Member Functions

 simpleListMap ($doc, $data, $field, $args=[], $format='')
 
 simpleFixFieldMap ($doc, $data, $field, $args=[], $format='')
 
 notEmptyMap ($doc, $data, $field, $args, $format='')
 
 simpleMap ($doc, $data, $field, $args, $format='')
 
 readResultSet ($data='')
 
 readResultNode (\DOMElement $node)
 
 readRecord ($data='')
 

Protected Member Functions

 indexSubfields (\DOMElement $datafield)
 

Detailed Description

This is a LibraryResultParser implementation for the BASE catalog.

See also
LibraryResultParser

Member Function Documentation

◆ indexSubfields()

indexSubfields ( \DOMElement  $datafield)
protected

This is a helper method to index the child nodes of a node which represent the Marc21 subfields. The index is the subfield code of the DOM child node.

Parameters
DOMElement$datafieldThe node whose child nodes shall be indexed.
Returns
DOMElement[] An array of DOMElement nodes reperesenting the indexed child nodes of the supplied node.

◆ notEmptyMap()

notEmptyMap (   $doc,
  $data,
  $field,
  $args,
  $format = '' 
)

◆ readRecord()

readRecord (   $data = '')

◆ readResultNode()

readResultNode ( \DOMElement  $node)

Reads the XML nodes of one record and creates a LibraryDocument out of it.

Parameters
DOMElement$nodeThe XML node of one record.
Returns
LibraryDocument The LibraryDocument instance that could be read from the data.

◆ readResultSet()

readResultSet (   $data = '')

◆ simpleFixFieldMap()

simpleFixFieldMap (   $doc,
  $data,
  $field,
  $args = [],
  $format = '' 
)

◆ simpleListMap()

simpleListMap (   $doc,
  $data,
  $field,
  $args = [],
  $format = '' 
)

◆ simpleMap()

simpleMap (   $doc,
  $data,
  $field,
  $args,
  $format = '' 
)

The documentation for this class was generated from the following file: