|
Astro::ADS::Result::Paper - A individual paper in an Astro::ADS::Result object |
Astro::ADS::Result::Paper - A individual paper in an Astro::ADS::Result object
$paper = new Astro::ADS::Result::Paper( Bibcode => $bibcode,
Title => $title,
Authors => \@authors,
Affil => \@affil,
Journal => $journal_refernce,
Published => $published,
Keywords => \@keywords,
Origin => $journal,
Links => \@associated_links,
URL => $abstract_url,
Abstract => \@abstract,
Object => $object,
Score => $score );
$bibcode = $paper->bibcode(); @authors = $paper->authors();
$xml = $paper->summary(format => "XML"); $text= $paper->summary(format => "TEXT", fields => \@fields);
Stores meta-data about an individual paper in the Astro::ADS::Result object returned by an Astro::ADS::Query object.
$Id: Paper.pm,v 1.11 2001/11/10 20:58:43 timj Exp $
$paper = new Astro::ADS::Result::Paper( Bibcode => $bibcode,
Title => $title,
Authors => \@authors,
Affil => \@affil,
Journal => $journal_refernce,
Published => $published,
Keywords => \@keywords,
Origin => $journal,
Links => \@outbound_links,
URL => $abstract_url,
Abstract => \@abstract,
Object => $object,
Score => $score );
returns a reference to an ADS paper object.
$bibcode = $paper->bibcode(); $paper->bibcode( $bibcode );
$title = $paper->title(); $paper->title( $title );
@authors = $paper->authors(); $first_author = $paper->authors(); $paper->authors( \@authors );
if called in a scalar context it will return the first author.
@institutions = $paper->affil(); $first_author_inst = $paper->affil(); $paper->affil( \@institutions );
if called in a scalar context it will return the affiliation of the first author.
$journal_ref = $paper->journal(); $paper->journal( $journal_ref );
$published = $paper->published(); $paper->published( $published );
@keywords = $paper->keywords(); $paper->keywords( \@keywords );
if called in a scalar context it will return the number of keywords.
$source = $paper->origin(); $paper->origin( $source );
@outbound_links = $paper->links(); $paper->links( \@outbound_links );
if called in a scalar context it will return the number of outbound links available.
$adsurl = $paper->url(); $paper->url( $adsurl );
@abstract = $paper->abstract(); $paper->abstract( @abstract );
if called in a scalar context it will return the number of lines of text in the abstract.
$object = $paper->object(); $paper->object( $object );
$score = $paper->score(); $paper->score( $score );
$result = $paper->references();
returns undef if this external link type is not available for this paper.
$result = $paper->citations();
returns undef if this external link type is not available for this paper.
$result = $paper->alsoread();
returns undef if this external link type is not available for this paper.
$result = $paper->tableofcontents();
returns undef if this external link type is not available for this paper.
$paper->configure( %options );
Takes a hash as argument with the following keywords:
A copy of the relevant chapter in this book is available online as a Postscript file via the CDS at http://cdsweb.u-strasbg.fr/simbad/refcode.ps
Does nothing if these keys are not supplied.
$summary = $paper->summary( format => "XML" );
Takes a hash as argument. The following keys are supported:
summary() method with
default arguments.
Copyright (C) 2001 University of Exeter. All Rights Reserved.
This program was written as part of the eSTAR project and is free software; you can redistribute it and/or modify it under the terms of the GNU Public License.
Alasdair Allan <aa@astro.ex.ac.uk>,
|
Astro::ADS::Result::Paper - A individual paper in an Astro::ADS::Result object |