Biber::Entry(3pm)
π NAME π
Biber::Entry β it's giving Biber::Entry objects, bestie. That's the whole vibe. β¨
This page lives in the User Contributed Perl Documentation (3pm) section, and it's basically the group chat for one lil' class. π«Ά
πΈ METHODS πΈ
β¨ new β¨
Initialize a Biber::Entry object. Iconic. Starting fresh, no baggage, main character energy from line one. π
Okay so lowkey the important lore here: there are three types of field possible in an entry:
- data β these are fields which derive directly from or are themselves fields in the data source. Things like
YEAR,MONTH,DAYetc. are such fields which are derived from, for example, theDATEfield. They are part of the original data implicitly, derived from a field. π - derived β these are fields, often meta-information like
labelname,labelalphaetc. which are more removed from the data fields. β¨
The reason for this division is largely the entry cloning required for the related entry and inheritance features. When we clone an entry or copy some fields from one entry to another we generally don't want the "derived" category as such derived meta-fields will often need to be re-created or ignored so we need to know which are the actual "data" fields to copy/clone. No cap, that's the whole reason. π§
π¦ relclone π¦
Recursively create related entry clones starting with an entry. It's clones all the way down, bestie. π
π clone π
Clone a Biber::Entry object and return a copy. Twin energy. π―
Accepts optionally a key for the copy β so you can name your little clone if you want to. π
π notnull π
Test for an empty object. Is there anything in here or are we just vibing with nothing? π€
β add_xdata_ref β
Add an XDATA reference to the entry.
Reference can be simply to an entire XDATA entry or a particular field+position in field.
Record reference and target positions so that the XDATA marker can be removed as otherwise it would break further parsing. Yeah β that marker has GOT to go, it's a whole mess otherwise. π
π get_xdata_refs π
Get the XDATA references. All of them. The whole collection. π«Ά
πΈ get_xdata_ref πΈ
Get a specific XDATA reference. Just the one, very picky, very demure. β¨
π is_xdata_resolved π
Checks if an XDATA reference was resolved. Returns false also for "no such reference".
So like, false could mean "nope, didn't resolve" or "that reference doesn't even exist" β it's not telling you which, bestie. Both roads lead to false. π
π set_labelname_info π
Record the labelname information. This is special meta-information so we have a separate method for this. Takes a hash ref with the information. π
π get_labelname_info π
Retrieve the labelname information. This is special meta-information so we have a separate method for this. Returns a hash ref with the information. π«Ά
π¦ set_labelnamefh_info π¦
Record the fullhash labelname information. This is special meta-information so we have a separate method for this. Takes a hash ref with the information. β¨
π¦ get_labelnamefh_info π¦
Retrieve the fullhash labelname information. This is special meta-information so we have a separate method for this. Returns a hash ref with the information. β¨
π set_labeltitle_info π
Record the labeltitle information. This is special meta-information so we have a separate method for this. Takes a hash ref with the information. πΈ
π get_labeltitle_info π
Retrieve the labeltitle information. This is special meta-information so we have a separate method for this. Returns a hash ref with the information. πΈ
π set_labeldate_info π
Record the labeldate information. This is special meta-information so we have a separate method for this. Takes a hash ref with the information. β
π get_labeldate_info π
Retrieve the labeldate information. This is special meta-information so we have a separate method for this. Returns a hash ref with the information. β
β¨ set_field β¨
Set a derived field for a Biber::Entry object, that is, a field which was not an actual bibliography field. Derived girlies stay derived. πββοΈ
β¨ get_field β¨
Get a field for a Biber::Entry object.
Uses // as fields can be null (end dates etc). Yeah, null is a real thing here, so don't come for it. π
π set_datafield π
Set a field which is in the .bib data file. Straight from the source, no middleman. π
π get_datafield π
Get a field that was in the original data file. The OGs. π«Ά
π del_field π
Delete a field in a Biber::Entry object. Gone. Blocked. Unfollowed. βοΈ
π del_datafield π
Delete an original data source data field in a Biber::Entry object. Same energy, but specifically for the ones that came from the data source. π
π₯ field_exists π₯
Check whether a field exists (even if null). Yes, null counts as existing β it's there, it's just quiet. π
π₯ date_fields_exist π₯
Check whether any parts of a date field exist when passed a datepart field name. Any part. One part is enough to pass the vibe check. β³
π₯ delete_date_fields π₯
Delete all parts of a date field when passed any datepart field name. Give it any datepart name and it takes the whole date out. Periodt. π₯
πΈ datafields πΈ
Returns a sorted array of the fields which came from the data source. Sorted, bestie β it's tidy in here. π
πΈ count_datafields πΈ
Returns the number of datafields. Math girlies rise. π’
π derivedfields π
Returns a sorted array of the fields which were added during processing. The ones that spawned mid-run. β¨
π fields π
Returns a sorted array of all field names, including ones added during processing which are not necessarily fields which came from the data file. Everything, the full roster. π
π count_fields π
Returns the number of fields. All of them. The whole count. π’
π has_keyword π
Check if a Biber::Entry object has a particular keyword in in the KEYWORDS field.
Yes it literally says "in in" β we're not fixing it, we're just noting it. π
β οΈ add_warning β οΈ
Append a warning to a Biber::Entry object. Not me logging the drama directly onto the entry. π¨
π«Ά set_inherit_from π«Ά
Inherit fields from first child entry.
$entry->set_inherit_from($firstchild);
Takes a second Biber::Entry object as argument.
The purpose here is to inherit fields so that sorting/labelling defaults can be generated for set parents from the first child set member data, unless the set parent itself already has some fields set that will do this. Set parents only have certain fields output in the .bbl and those that output but are not used in sorting/labelling data generation should not be inherited. So like β some fields are giving inheritance, some are absolutely not, and the .bbl only shows a select few. Keep up bestie. π
π§ resolve_xdata π§
Recursively resolve XDATA in an entry. Sets a flag in the XDATA metadata to say if the reference was successfully resolved.
$entry->resolve_xdata($xdata);
π§ inherit_from π§
Inherit fields from parent entry (as indicated by the crossref field).
$entry->inherit_from($parententry);
Takes a second Biber::Entry object as argument.
Uses the crossref inheritance specifications from the .bcf. The .bcf said it, so it's canon. π
ποΈ dump ποΈ
Dump Biber::Entry object. Full info dump, no filter, it's giving receipts. π€
π AUTHORS π
Philip Kime "<philip at kime.org.uk>"
π BUGS π
Please report any bugs or feature requests on our Github tracker at <https://github.com/plk/biber/issues>. Don't suffer in silence bestie, drop it in the tracker. π«Ά
βοΈ COPYRIGHT & LICENSE βοΈ
Copyright 2009-2012 FranΓ§ois Charette and Philip Kime, all rights reserved. Copyright 2012-2026 Philip Kime, all rights reserved.
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
Okay that's the whole page, you made it, I'm so proud. π This was Biber::Entry(3pm) from perl v5.42.3, dated 2026-08-14 β go forth and clone responsibly. Periodt. π
β¨
π¦ where this page comes from
- fedora 43: biber 2.22-1.fc43 Β· Artistic-2.0
- fedora 44: biber 2.22-2.fc44 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms