Logo Search packages:      
Sourcecode: jabref-plugin-oo version File versions  Download package

String net::sf::jabref::oo::OOBibStyle::getCitationMarkerField ( BibtexEntry  entry,
BibtexDatabase  database,
String  field 
) [inline]

This method looks up a field for en entry in a database. Any number of backup fields can be used if the primary field is empty.

entry The entry.
database The database the entry belongs to.
field The field, or succession of fields, to look up. If backup fields are needed, separate field names by /. E.g. to use "author" with "editor" as backup, specify "author/editor".
The resolved field content, or an empty string if the field(s) were empty.

Definition at line 723 of file OOBibStyle.java.

Referenced by getAuthorYearInTextMarker(), getAuthorYearParenthesisMarker(), and getCitationMarker().

        String[] fields = field.split("/");
        for (int i = 0; i < fields.length; i++) {
            String s = fields[i];
            String content = BibtexDatabase.getResolvedField(s, entry, database);
            if ((content != null) && (content.trim().length() > 0))
                return content;
        // No luck? Return an empty string:
        return "";

Generated by  Doxygen 1.6.0   Back to index