$meta_data
$meta_data : array
Array holding the meta-data of this bibtentry
A class to represent bibliography entries.
__construct(array $meta_data = array())
Construct a bibtentry.
Only the entries in $meta_data whose keys are listed in $meta_data_fields are taken into account. All fields that are not arrays are converted to string. Fields that are in $meta_data_fields but for which no data is provided are initialized to an empty string.
array | $meta_data | The meta-data to store in this bibentry |
merge(\O3PO_Bibentry $bibitem1, \O3PO_Bibentry $bibitem2) : \O3PO_Bibentry
Merge two bibentries.
Bibentries are merged field wise, in case of collisions $bibitem1 takes preference over $bibitem2.
\O3PO_Bibentry | $bibitem1 | First bibentry to merge. |
\O3PO_Bibentry | $bibitem2 | First bibentry to merge. |
Merged bibentry.
match(\O3PO_Bibentry $bibitem1, \O3PO_Bibentry $bibitem2) : boolean
Compare two bibentries.
\O3PO_Bibentry | $bibitem1 | First bibentry to match. |
\O3PO_Bibentry | $bibitem2 | First bibentry to match. |
True if bibentries are considered similar enough to probably represent the same bibliographic item, false otherwise.
merge_bibitem_arrays(array $array1, array $array2, boolean $remove_dulicates = true) : array
Merge two arrays of bibentries.
Merges $array2 into $array1. The content of the entries in $array1 takes preference over those in $array2, entries in $array2 that were not merged are appended at the end. Array keys in $array1 are preserved.
If $remove_dulicates is true all duplicates are removed from the final array by merging them into the first matching entry. Non-removed array keys are preserved.
array | $array1 | First array of bibtentries. |
array | $array2 | Second array of bibtentries. |
boolean | $remove_dulicates | Whether to remove duplicates. |
Merged array of bibentries.
remove_duplicates(array $array, boolean $merge = false)
Remove duplicates from an array of bibentries.
Duplicates are identified by comparing pairs with the help of match().
array | $array | Array of bibentries from which duplicates are to be removed. |
boolean | $merge | Whether to merge duplicates or simply discard them. |