mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-22 00:00:40 +02:00
552 lines
21 KiB
C
552 lines
21 KiB
C
// swad_timeline_publication.c: social timeline publications
|
|
|
|
/*
|
|
SWAD (Shared Workspace At a Distance),
|
|
is a web platform developed at the University of Granada (Spain),
|
|
and used to support university teaching.
|
|
|
|
This file is part of SWAD core.
|
|
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General 3 License as
|
|
published by the Free Software Foundation, either version 3 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
/*****************************************************************************/
|
|
/*********************************** Headers *********************************/
|
|
/*****************************************************************************/
|
|
|
|
#include <stdlib.h> // For malloc and free
|
|
#include <string.h> // For string functions
|
|
|
|
#include "swad_follow.h"
|
|
#include "swad_global.h"
|
|
#include "swad_profile.h"
|
|
#include "swad_timeline.h"
|
|
#include "swad_timeline_database.h"
|
|
#include "swad_timeline_note.h"
|
|
#include "swad_timeline_publication.h"
|
|
|
|
/*****************************************************************************/
|
|
/****************************** Public constants *****************************/
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
/************************* Private constants and types ***********************/
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
/************** External global variables from others modules ****************/
|
|
/*****************************************************************************/
|
|
|
|
extern struct Globals Gbl;
|
|
|
|
/*****************************************************************************/
|
|
/************************* Private global variables **************************/
|
|
/*****************************************************************************/
|
|
|
|
/*****************************************************************************/
|
|
/***************************** Private prototypes ****************************/
|
|
/*****************************************************************************/
|
|
|
|
static unsigned TL_Pub_GetMaxPubsToGet (const struct TL_Timeline *Timeline);
|
|
|
|
static void TL_Pub_UpdateFirstLastPubCodesIntoSession (const struct TL_Timeline *Timeline);
|
|
|
|
static struct TL_Pub_Publication *TL_Pub_SelectTheMostRecentPub (const struct TL_Pub_SubQueries *SubQueries);
|
|
|
|
static TL_Pub_PubType_t TL_Pub_GetPubTypeFromStr (const char *Str);
|
|
|
|
/*****************************************************************************/
|
|
/*************** Get list of pubications to show in timeline *****************/
|
|
/*****************************************************************************/
|
|
|
|
void TL_Pub_GetListPubsToShowInTimeline (struct TL_Timeline *Timeline)
|
|
{
|
|
struct TL_Pub_SubQueries SubQueries;
|
|
struct TL_Pub_RangePubsToGet RangePubsToGet;
|
|
unsigned MaxPubsToGet = TL_Pub_GetMaxPubsToGet (Timeline);
|
|
unsigned NumPub;
|
|
struct TL_Pub_Publication *Pub;
|
|
|
|
/***** Clear timeline for this session in database *****/
|
|
if (Timeline->WhatToGet == TL_GET_RECENT_TIMELINE)
|
|
TL_DB_ClearTimelineNotesOfSessionFromDB ();
|
|
|
|
/***** Create temporary tables *****/
|
|
/* Create temporary table with notes just retrieved */
|
|
TL_DB_CreateTmpTableJustRetrievedNotes ();
|
|
|
|
/* Create temporary table with all notes visible in timeline */
|
|
if (Timeline->WhatToGet == TL_GET_ONLY_OLD_PUBS)
|
|
TL_DB_CreateTmpTableVisibleTimeline ();
|
|
|
|
/***** Create subqueries *****/
|
|
/* Create subquery with potential publishers */
|
|
TL_DB_CreateSubQueryPublishers (Timeline,&SubQueries);
|
|
|
|
/* Create subquery to get only notes not present in timeline */
|
|
TL_DB_CreateSubQueryAlreadyExists (Timeline,&SubQueries);
|
|
|
|
/***** Get the publications in timeline *****/
|
|
/* Initialize range of pubs:
|
|
|
|
tl_pubs
|
|
_____
|
|
|_____|11
|
|
|_____|10
|
|
_|_____| 9 <-- RangePubsToGet.Top
|
|
Get / |_____| 8
|
|
pubs | |_____| 7
|
|
from < |_____| 6
|
|
this | |_____| 5
|
|
range \_|_____| 4
|
|
|_____| 3 <-- RangePubsToGet.Bottom
|
|
|_____| 2
|
|
|_____| 1
|
|
0
|
|
*/
|
|
switch (Timeline->WhatToGet)
|
|
{
|
|
case TL_GET_ONLY_NEW_PUBS: // Get the publications (without limit)
|
|
// newer than LastPubCod
|
|
/* This query is made via AJAX automatically from time to time */
|
|
RangePubsToGet.Top = 0; // +Infinite
|
|
RangePubsToGet.Bottom = TL_DB_GetPubCodFromSession ("LastPubCod");
|
|
break;
|
|
case TL_GET_ONLY_OLD_PUBS: // Get some limited publications
|
|
// older than FirstPubCod
|
|
/* This query is made via AJAX
|
|
when I click in link to get old publications */
|
|
RangePubsToGet.Top = TL_DB_GetPubCodFromSession ("FirstPubCod");
|
|
RangePubsToGet.Bottom = 0; // -Infinite
|
|
break;
|
|
case TL_GET_RECENT_TIMELINE: // Get some limited recent publications
|
|
default:
|
|
/* This is the first query to get initial timeline shown
|
|
==> no notes yet in current timeline table */
|
|
RangePubsToGet.Top = 0; // +Infinite
|
|
RangePubsToGet.Bottom = 0; // -Infinite
|
|
break;
|
|
}
|
|
/* Create subquery with bottom range of publications to get from tl_pubs.
|
|
Bottom pub. code remains unchanged in all iterations of the next loop. */
|
|
TL_DB_CreateSubQueryRangeBottom (&RangePubsToGet,&SubQueries);
|
|
|
|
/* With the current approach, we select one by one
|
|
the publications and notes in a loop. In each iteration,
|
|
we get the most recent publication (original, shared or commment)
|
|
of every set of publications corresponding to the same note,
|
|
checking that the note is not already retrieved.
|
|
After getting a publication, its note code is stored
|
|
in order to not get it again.
|
|
|
|
As an alternative, we tried to get the maximum PubCod,
|
|
i.e more recent publication (original, shared or commment),
|
|
of every set of publications corresponding to the same note:
|
|
"SELECT MAX(PubCod) AS NewestPubCod FROM tl_pubs ...
|
|
" GROUP BY NotCod ORDER BY NewestPubCod DESC LIMIT ..."
|
|
but this query is slow (several seconds) with a big table.
|
|
|
|
Chained list of publications:
|
|
|
|
Timeline->Pubs.Top Pub #0
|
|
______ ______ Pub #1
|
|
|______|------>|______| ______ Pub #2
|
|
|______| -> |______| ______ Pub #3
|
|
|______| / |______| ->|______| ______
|
|
|______| / |______| / |______| ->|______|
|
|
|_Next_|-- |______| / |______| // |______|
|
|
|_Next_|-- |______| // |______|
|
|
______ |_Next_|--/ |______|
|
|
|______|---------------------------------------------- |_NULL_|
|
|
|
|
Timeline->Pubs.Bottom
|
|
|
|
*/
|
|
Timeline->Pubs.Top =
|
|
Timeline->Pubs.Bottom = NULL;
|
|
|
|
for (NumPub = 0;
|
|
NumPub < MaxPubsToGet;
|
|
NumPub++)
|
|
{
|
|
/* Create subquery with top range of publications to get from tl_pubs
|
|
In each iteration of this loop, top publication code is changed to a lower value */
|
|
TL_DB_CreateSubQueryRangeTop (&RangePubsToGet,&SubQueries);
|
|
|
|
/* Select the most recent publication from tl_pubs */
|
|
Pub = TL_Pub_SelectTheMostRecentPub (&SubQueries);
|
|
|
|
/* Chain the previous publication with the current one */
|
|
if (NumPub == 0)
|
|
Timeline->Pubs.Top = Pub; // Pointer to top publication
|
|
else
|
|
Timeline->Pubs.Bottom->Next = Pub; // Chain the previous publication with the current one
|
|
Timeline->Pubs.Bottom = Pub; // Update pointer to bottom publication
|
|
|
|
if (Pub == NULL) // Nothing got ==> abort loop
|
|
break; // Last publication
|
|
|
|
/* Insert note in temporary tables with just retrieved notes.
|
|
These tables will be used to not get notes already shown */
|
|
TL_DB_InsertNoteInJustRetrievedNotes (Pub->NotCod);
|
|
if (Timeline->WhatToGet == TL_GET_ONLY_OLD_PUBS) // Get only old publications
|
|
TL_DB_InsertNoteInVisibleTimeline (Pub->NotCod);
|
|
|
|
/* Narrow the range for the next iteration */
|
|
RangePubsToGet.Top = Pub->PubCod;
|
|
}
|
|
|
|
/***** Update first (oldest) and last (more recent) publication codes
|
|
into session for next refresh *****/
|
|
TL_Pub_UpdateFirstLastPubCodesIntoSession (Timeline);
|
|
|
|
/***** Add notes just retrieved to visible timeline for this session *****/
|
|
TL_DB_AddNotesJustRetrievedToVisibleTimelineOfSession ();
|
|
|
|
/***** Drop temporary tables *****/
|
|
/* Drop temporary tables with notes already retrieved */
|
|
TL_DB_DropTmpTableJustRetrievedNotes ();
|
|
if (Timeline->WhatToGet == TL_GET_ONLY_OLD_PUBS) // Get only old publications
|
|
TL_DB_DropTmpTableVisibleTimeline ();
|
|
|
|
/* Drop temporary table with me and users I follow */
|
|
if (Timeline->UsrOrGbl == TL_Usr_TIMELINE_GBL && // Show the global timeline
|
|
Timeline->Who == Usr_WHO_FOLLOWED) // Show the timeline of the users I follow
|
|
Fol_DropTmpTableMeAndUsrsIFollow ();
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/********* Get maximum number of publications to get from database ***********/
|
|
/*****************************************************************************/
|
|
|
|
static unsigned TL_Pub_GetMaxPubsToGet (const struct TL_Timeline *Timeline)
|
|
{
|
|
static const unsigned MaxPubsToGet[TL_NUM_WHAT_TO_GET] =
|
|
{
|
|
[TL_GET_RECENT_TIMELINE] = TL_Pub_MAX_REC_PUBS_TO_GET_AND_SHOW,
|
|
[TL_GET_ONLY_NEW_PUBS ] = TL_Pub_MAX_NEW_PUBS_TO_GET_AND_SHOW,
|
|
[TL_GET_ONLY_OLD_PUBS ] = TL_Pub_MAX_OLD_PUBS_TO_GET_AND_SHOW,
|
|
};
|
|
|
|
return MaxPubsToGet[Timeline->WhatToGet];
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/************* Update first (oldest) and last (more recent) ***************/
|
|
/************* publication codes into session for next refresh ***************/
|
|
/*****************************************************************************/
|
|
|
|
static void TL_Pub_UpdateFirstLastPubCodesIntoSession (const struct TL_Timeline *Timeline)
|
|
{
|
|
long FirstPubCod;
|
|
|
|
switch (Timeline->WhatToGet)
|
|
{
|
|
case TL_GET_ONLY_NEW_PUBS: // Get only new publications
|
|
TL_DB_UpdateLastPubCodInSession ();
|
|
break;
|
|
case TL_GET_ONLY_OLD_PUBS: // Get only old publications
|
|
// The oldest publication code retrieved and shown
|
|
FirstPubCod = Timeline->Pubs.Bottom ? Timeline->Pubs.Bottom->PubCod :
|
|
0;
|
|
TL_DB_UpdateFirstPubCodInSession (FirstPubCod);
|
|
break;
|
|
case TL_GET_RECENT_TIMELINE: // Get last publications
|
|
// The oldest publication code retrieved and shown
|
|
FirstPubCod = Timeline->Pubs.Bottom ? Timeline->Pubs.Bottom->PubCod :
|
|
0;
|
|
TL_DB_UpdateFirstLastPubCodsInSession (FirstPubCod);
|
|
break;
|
|
}
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/************** Free chained list of publications in timeline ****************/
|
|
/*****************************************************************************/
|
|
|
|
void TL_Pub_FreeListPubs (struct TL_Timeline *Timeline)
|
|
{
|
|
struct TL_Pub_Publication *Pub;
|
|
struct TL_Pub_Publication *Next;
|
|
|
|
/***** Go over the list freeing memory *****/
|
|
for (Pub = Timeline->Pubs.Top;
|
|
Pub;
|
|
Pub = Next)
|
|
{
|
|
/* Save a copy of pointer to next element before freeing it */
|
|
Next = Pub->Next;
|
|
|
|
/* Free memory used for this publication */
|
|
free (Pub);
|
|
}
|
|
|
|
/***** Reset pointers to top and bottom elements *****/
|
|
Timeline->Pubs.Top =
|
|
Timeline->Pubs.Bottom = NULL;
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/************** Select the most recent publication from tl_pubs **************/
|
|
/*****************************************************************************/
|
|
|
|
static struct TL_Pub_Publication *TL_Pub_SelectTheMostRecentPub (const struct TL_Pub_SubQueries *SubQueries)
|
|
{
|
|
MYSQL_RES *mysql_res;
|
|
struct TL_Pub_Publication *Pub;
|
|
|
|
if (TL_DB_SelectTheMostRecentPub (SubQueries,&mysql_res) == 1)
|
|
{
|
|
/* Allocate space for publication */
|
|
if ((Pub = malloc (sizeof (*Pub))) == NULL)
|
|
Lay_NotEnoughMemoryExit ();
|
|
|
|
/* Get data of publication */
|
|
TL_Pub_GetDataOfPublicationFromNextRow (mysql_res,Pub);
|
|
Pub->Next = NULL;
|
|
}
|
|
else
|
|
Pub = NULL;
|
|
|
|
/***** Free structure that stores the query result *****/
|
|
DB_FreeMySQLResult (&mysql_res);
|
|
|
|
return Pub;
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/******************* Show new publications in timeline ***********************/
|
|
/*****************************************************************************/
|
|
// The publications are inserted as list elements of a hidden list
|
|
|
|
void TL_Pub_InsertNewPubsInTimeline (struct TL_Timeline *Timeline)
|
|
{
|
|
struct TL_Pub_Publication *Pub;
|
|
struct TL_Not_Note Not;
|
|
|
|
/***** List new publications timeline *****/
|
|
for (Pub = Timeline->Pubs.Top;
|
|
Pub;
|
|
Pub = Pub->Next)
|
|
{
|
|
/* Get data of note */
|
|
Not.NotCod = Pub->NotCod;
|
|
TL_Not_GetDataOfNoteByCod (&Not);
|
|
|
|
/* Write note */
|
|
HTM_LI_Begin ("class=\"TL_WIDTH TL_SEP TL_NEW_PUB\"");
|
|
TL_Not_CheckAndWriteNoteWithTopMsg (Timeline,&Not,
|
|
TL_Pub_GetTopMessage (Pub->PubType),
|
|
Pub->PublisherCod);
|
|
HTM_LI_End ();
|
|
}
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/********************* Show old publications in timeline *********************/
|
|
/*****************************************************************************/
|
|
// The publications are inserted as list elements of a hidden list
|
|
|
|
void TL_Pub_ShowOldPubsInTimeline (struct TL_Timeline *Timeline)
|
|
{
|
|
struct TL_Pub_Publication *Pub;
|
|
struct TL_Not_Note Not;
|
|
|
|
/***** List old publications in timeline *****/
|
|
for (Pub = Timeline->Pubs.Top;
|
|
Pub;
|
|
Pub = Pub->Next)
|
|
{
|
|
/* Get data of note */
|
|
Not.NotCod = Pub->NotCod;
|
|
TL_Not_GetDataOfNoteByCod (&Not);
|
|
|
|
/* Write note */
|
|
HTM_LI_Begin ("class=\"TL_WIDTH TL_SEP\"");
|
|
TL_Not_CheckAndWriteNoteWithTopMsg (Timeline,&Not,
|
|
TL_Pub_GetTopMessage (Pub->PubType),
|
|
Pub->PublisherCod);
|
|
HTM_LI_End ();
|
|
}
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/************* Get a top message given the type of publication ***************/
|
|
/*****************************************************************************/
|
|
|
|
TL_TopMessage_t TL_Pub_GetTopMessage (TL_Pub_PubType_t PubType)
|
|
{
|
|
static const TL_TopMessage_t TopMessages[TL_Pub_NUM_PUB_TYPES] =
|
|
{
|
|
[TL_Pub_UNKNOWN ] = TL_TOP_MESSAGE_NONE,
|
|
[TL_Pub_ORIGINAL_NOTE ] = TL_TOP_MESSAGE_NONE,
|
|
[TL_Pub_SHARED_NOTE ] = TL_TOP_MESSAGE_SHARED,
|
|
[TL_Pub_COMMENT_TO_NOTE] = TL_TOP_MESSAGE_COMMENTED,
|
|
};
|
|
|
|
return TopMessages[PubType];
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/***************** Put link to view new publications in timeline *************/
|
|
/*****************************************************************************/
|
|
|
|
void TL_Pub_PutLinkToViewNewPublications (void)
|
|
{
|
|
extern const char *The_ClassFormInBoxBold[The_NUM_THEMES];
|
|
extern const char *Txt_See_new_activity;
|
|
|
|
/***** Link to view (show hidden) new publications *****/
|
|
/* Begin container */
|
|
// div is hidden. When new posts arrive to the client via AJAX, div is shown
|
|
HTM_DIV_Begin ("id=\"view_new_posts_container\""
|
|
" class=\"TL_WIDTH TL_SEP VERY_LIGHT_BLUE\""
|
|
" style=\"display:none;\"");
|
|
|
|
/* Begin anchor */
|
|
HTM_A_Begin ("href=\"\" class=\"%s\""
|
|
" onclick=\"moveNewTimelineToTimeline();return false;\"",
|
|
The_ClassFormInBoxBold[Gbl.Prefs.Theme]);
|
|
|
|
/* Text */
|
|
HTM_TxtF ("%s (",Txt_See_new_activity);
|
|
HTM_SPAN_Begin ("id=\"view_new_posts_count\"");
|
|
HTM_Unsigned (0);
|
|
HTM_SPAN_End ();
|
|
HTM_Txt (")");
|
|
|
|
/* End anchor */
|
|
HTM_A_End ();
|
|
|
|
/* End container */
|
|
HTM_DIV_End ();
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/***************** Put link to view old publications in timeline *************/
|
|
/*****************************************************************************/
|
|
|
|
void TL_Pub_PutLinkToViewOldPublications (void)
|
|
{
|
|
extern const char *The_ClassFormInBoxBold[The_NUM_THEMES];
|
|
extern const char *Txt_See_more;
|
|
|
|
/***** Animated link to view old publications *****/
|
|
/* Begin container */
|
|
HTM_DIV_Begin ("id=\"view_old_posts_container\""
|
|
" class=\"TL_WIDTH TL_SEP VERY_LIGHT_BLUE\"");
|
|
|
|
/* Begin anchor */
|
|
HTM_A_Begin ("href=\"\" class=\"%s\" onclick=\""
|
|
"document.getElementById('get_old_timeline').style.display='none';" // Icon to be hidden on click
|
|
"document.getElementById('getting_old_timeline').style.display='';" // Icon to be shown on click
|
|
"refreshOldTimeline();"
|
|
"return false;\"",
|
|
The_ClassFormInBoxBold[Gbl.Prefs.Theme]);
|
|
|
|
/* Icon and text */
|
|
HTM_IMG (Cfg_URL_ICON_PUBLIC,"recycle16x16.gif","Txt_See_more",
|
|
"class=\"ICO20x20\" id=\"get_old_timeline\"");
|
|
HTM_IMG (Cfg_URL_ICON_PUBLIC,"working16x16.gif",Txt_See_more,
|
|
"class=\"ICO20x20\" style=\"display:none;\" id=\"getting_old_timeline\""); // Animated icon hidden
|
|
HTM_IMG (Cfg_URL_ICON_PUBLIC,"recycle16x16.gif","Txt_See_more",
|
|
"class=\"ICO20x20\" style=\"display:none;\" id=\"get_old_timeline\"");
|
|
HTM_TxtF (" %s",Txt_See_more);
|
|
|
|
/* End anchor */
|
|
HTM_A_End ();
|
|
|
|
/* End container */
|
|
HTM_DIV_End ();
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/*************** Put parameter with the code of a publication ****************/
|
|
/*****************************************************************************/
|
|
|
|
void TL_Pub_PutHiddenParamPubCod (long PubCod)
|
|
{
|
|
Par_PutHiddenParamLong (NULL,"PubCod",PubCod);
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/**************** Get parameter with the code of a publication ***************/
|
|
/*****************************************************************************/
|
|
|
|
long TL_Pub_GetParamPubCod (void)
|
|
{
|
|
/***** Get comment code *****/
|
|
return Par_GetParToLong ("PubCod");
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/***************** Get data of publication using its code ********************/
|
|
/*****************************************************************************/
|
|
|
|
void TL_Pub_GetDataOfPublicationFromNextRow (MYSQL_RES *mysql_res,
|
|
struct TL_Pub_Publication *Pub)
|
|
{
|
|
MYSQL_ROW row;
|
|
|
|
/***** Get next row from result *****/
|
|
row = mysql_fetch_row (mysql_res);
|
|
/*
|
|
row[0]: PubCod
|
|
row[1]: NotCod
|
|
row[2]: PublisherCod
|
|
row[3]: PubType
|
|
*/
|
|
|
|
/***** Get code of publication (row[0]) *****/
|
|
Pub->PubCod = Str_ConvertStrCodToLongCod (row[0]);
|
|
|
|
/***** Get note code (row[1]) *****/
|
|
Pub->NotCod = Str_ConvertStrCodToLongCod (row[1]);
|
|
|
|
/***** Get publisher's code (row[2]) *****/
|
|
Pub->PublisherCod = Str_ConvertStrCodToLongCod (row[2]);
|
|
|
|
/***** Get type of publication (row[3]) *****/
|
|
Pub->PubType = TL_Pub_GetPubTypeFromStr ((const char *) row[3]);
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/******* Get publication type from string number coming from database ********/
|
|
/*****************************************************************************/
|
|
|
|
static TL_Pub_PubType_t TL_Pub_GetPubTypeFromStr (const char *Str)
|
|
{
|
|
unsigned UnsignedNum;
|
|
|
|
if (sscanf (Str,"%u",&UnsignedNum) == 1)
|
|
if (UnsignedNum < TL_Pub_NUM_PUB_TYPES)
|
|
return (TL_Pub_PubType_t) UnsignedNum;
|
|
|
|
return TL_Pub_UNKNOWN;
|
|
}
|
|
|
|
/*****************************************************************************/
|
|
/********************* Publish note/comment in timeline **********************/
|
|
/*****************************************************************************/
|
|
// Pub->PubCod is set by the function
|
|
|
|
void TL_Pub_PublishPubInTimeline (struct TL_Pub_Publication *Pub)
|
|
{
|
|
/***** Publish note in timeline *****/
|
|
Pub->PubCod = TL_DB_CreateNewPub (Pub);
|
|
|
|
/***** Increment number of publications in user's figures *****/
|
|
Prf_IncrementNumPubsUsr (Pub->PublisherCod);
|
|
}
|