<<

NAME

Koha::AdditionalContents - Koha Additional content object set class

API

Class Methods

search_for_display

my $contents = Koha::AdditionalContents->search_for_display({ category => 'news', # news or html_customizations location => 'slip', lang => 'es-ES', library_id => $branchcode })

Return Koha::AdditionalContents set for display to user

You can limit the results by location, language and library by optional params

library_id should be valid branchcode of defined library

location is one of this: - slip - for ISSUESLIP notice - staff_only - for intranet - opac_only - for OPAC - staff_and_opac - for intranet and online catalogue - OpacNavRight - Right column in the online catalogue - opacheader - OpacCustomSearch - OpacMainUserBlock - opaccredits - OpacLoginInstructions - OpacSuggestionInstructions - ArticleRequestsDisclaimerText - CookieConsentBar - CookieConsentPopup

find_best_match

    Koha::AdditionalContents->find_best_match({
        category => , location => , lang => , library_id =>
    });

    When choosing the best match, a match on lang and library is preferred.
    Next a match on library and default lang. Then match on All libs and lang.
    Finally a match with All libs and default lang.

_type

object_class

AUTHOR

Kyle M Hall <kyle@bywatersolutions.com>

<<