Skip to content

Commit

Permalink
add config option in config.ws.php to publish or not global propities…
Browse files Browse the repository at this point in the history
… of the vocabulary ([PUBLISH_GLOBAL_SUMMARY])
  • Loading branch information
tematres committed May 29, 2024
1 parent 32973f1 commit ef9ff75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions common/include/config.tematres.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
//Define is use or not CDN to bootstrap and other external libraries, default == false (1)
$CFG["USE_CDN"]=1;


//Publish in public data about global organization of the vocabulary. Default == false (0)
$CFG["PUBLISH_GLOBAL_SUMMARY"]=0;

//default values for config
$arrayCFGs =array( 'CFG_PUBLISH'=>'1',
'COPY_CLICK'=>'1',
Expand Down
2 changes: 1 addition & 1 deletion common/include/fun.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2635,7 +2635,7 @@ function HTMLsummary()

$rows.=HTMLSources4vocab();

$rows.=HTMLglobalView($resumen);
$rows.=((evalUserLevel($_SESSION[$_SESSION["CFGURL"]])>0) || ($CFG["PUBLISH_GLOBAL_SUMMARY"]==1)) ? HTMLglobalView($resumen) : '';

$rows.=HTMLcloudTerms(SQLcount(SQLTermDeep()), 30);

Expand Down
3 changes: 3 additions & 0 deletions vocab/config.tematres.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@
//Define is use or not CDN to bootstrap and other external libraries, default == false (1)
$CFG["USE_CDN"]=0;

//Publish in public data about global organization of the vocabulary. Default == false (0)
$CFG["PUBLISH_GLOBAL_SUMMARY"]=0;


/* Config here to publish image and fixed link in header:
Expand Down

0 comments on commit ef9ff75

Please sign in to comment.