Skip to main content
Version: 0.6.3

Publication

This method is used to retrieve detailed information about a specific publication.

Parameters

ParameterTypeDescription
idStringThe unique identifier of the publication.
domainStringThe domain (region) code for retrieving publication detail.
langDataLanguageThe language for publication data (default: DataLanguage.id).

Example

Example usage and sample output:

Preview

// Fetch publication detail from BPS API
final publication = await StadataFlutter.instance.view.publication(
id: 'example_publication_id', // Replace with the desired publication ID
domain: 'example_domain', // Replace with the desired Domain Code
lang: DataLanguage.id,
);

print('Publication ID: ${publication.id}');
print('Title: ${publication.title}');
print('ISSN: ${publication.issn}');
print('Scheduled Date: ${publication.scheduledDate}');
print('Release Date: ${publication.releaseDate}');
print('Update Date: ${publication.updateDate}');
print('Cover Image URL: ${publication.cover}');
print('PDF File URL: ${publication.pdf}');
print('Size: ${publication.size}');
print('Abstract: ${publication.abstract ?? 'Not available'}');
print('Catalogue Number: ${publication.catalogueNumber ?? 'Not available'}');
print('Publication Number: ${publication.publicationNumber ?? 'Not available'}');

Properties (Publication)

PropertyTypeDescription
idStringUnique identifier for the publication.
titleStringThe title of the publication.
issnStringThe International Standard Serial Number (ISSN).
scheduledDateDateTime?The scheduled date for the publication (optional).
releaseDateDateTime?The release date of the publication (optional).
updateDateDateTime?The date when the publication was last updated (optional).
coverStringThe cover image URL of the publication.
pdfStringThe PDF file URL of the publication.
sizeStringThe size of the publication (e.g., file size).
abstractString?An optional abstract or summary of the publication in HTML Format (optional).
catalogueNumberString?An optional catalogue number associated with the publication (optional).
publicationNumberString?An optional publication number or code (optional).