<<

NAME

C4::NewsChannels - Functions to manage OPAC and intranet news

DESCRIPTION

This module provides the functions needed to mange OPAC and intranet news.

FUNCTIONS

add_opac_new

    $retval = add_opac_new($hashref);

    $hashref should contains all the fields found in opac_news,
    except idnew. The idnew field is auto-generated.

upd_opac_new

    $retval = upd_opac_new($hashref);

    $hashref should contains all the fields found in opac_news,
    including idnew, since it is the key for the SQL UPDATE.

GetNewsToDisplay

    $news = &GetNewsToDisplay($lang,$branch);
    C<$news> is a ref to an array which contains
    all news with expirationdate > today or expirationdate is null
    that is applicable for a given branch.

AUTHOR

TG

<<