Biblio...Segment(3pm)

πŸ’– Biblio::SICI::ContributionSegment β€” the contribution segment of a SICI πŸ’–

okay bestie, so this is a Perl module from the Biblio::SICI universe (perl documentation, user contributed, the whole vibe) and it's literally just the contribution segment of a SICI. that's it. that's the girl. ✨

🌸 VERSION 🌸

version 0.04 β€” vintage but iconic πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

my $sici = Biblio::SICI->new();

$sici->contribution->location('6-21');

like… look at her go. one constructor, one method call, done. we love a low-effort queen πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

not me showing up to say this first but: you are expected to NOT directly instantiate objects of this class!! πŸš«πŸ™ˆ

fr fr. do not new this yourself. she's not for you like that, she's got a whole thing going on with the parent object. let her be.

so what even is a contribution segment? it's the part of a SICI that holds info about a contribution to an item β€” think: an article published in a journal issue. that's the energy. πŸ“–βœ¨

and here's the cute part: a SICI can be perfectly valid without any contribution data at all, so this segment can just be empty / unused. she's optional and unbothered. she's not desperate. 🧚

for further information please have a look at the standard. (iykyk, go read the standard, bestie πŸ“š)


πŸ’œ ATTRIBUTES πŸ’œ

for each attribute, clearer (clear_) and predicate (has_) methods are provided. so for every one of these girls you get a "wipe her" and a "does she exist" check. iconic utility, no cap 🫢

  • location β€” where the contribution sits inside the item. a typical example would be the range of pages an article was printed on. so like, page range vibes. πŸ“„
  • titleCode β€” a special code of no more than 6 characters, derived from the title of the contribution. the rules for how to construct the code are provided in the standard. so don't freestyle it, bestie, the standard has the recipe. πŸ”€
  • localNumber β€” an opaque number that somehow describes the contribution in the context of its item. "opaque" meaning don't look at her too hard, she's mysterious on purpose. πŸ”’

πŸ”₯ METHODS πŸ”₯

⭐ STRING to_string()

returns a stringified representation of the data in the contribution segment. she said "let me put it in a string for you" and she did. πŸ’…

⭐ reset()

resets all attributes to their default values.

⚠️ hold up β€” plot twist ⚠️ resetting the contribution segment also resets the value of the csi attribute in the control segment! so this is not a local girlboss move, she reaches over and touches the control segment too. know that before you hit reset. πŸ˜­πŸ’€

⭐ BOOL is_valid()

checks if the data for the contribution segment conforms to the standard. returns a boolean, so true/false, valid/not valid, slay/not slay. πŸ”₯


🌈 SEE ALSO 🌈

  • Biblio::SICI::Role::ValidSegment

go read that one too, bestie, they're linked for a reason 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Heiko Jansen <hjansen@cpan.org> β€” thank you for your service, king πŸ«‘πŸ’–


this software is copyright (c) 2014 by Heiko Jansen.

this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. ✨


and that's the whole page, bestie! πŸŽ€ this one came from perl v5.36.0, dated 2023-02-06, and the header up top was Biblio...Segment(3pm) β€” which is just the long name getting squished, we've all been there. mwah, go read the standard πŸ’‹πŸ’œ

πŸ“¦ where this page comes from