Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/bireme/plat-serv-bvs int…
Browse files Browse the repository at this point in the history
…o staging
  • Loading branch information
wilsonmoura committed Jun 7, 2023
2 parents 7ced7f2 + fdc15e4 commit a8018e6
Show file tree
Hide file tree
Showing 21 changed files with 81 additions and 81 deletions.
2 changes: 1 addition & 1 deletion client/templates/default/authentication.tpl.php
Expand Up @@ -20,7 +20,7 @@
<input type="hidden" name="lang" value="<?=$_SESSION['lang']?>">
</div>
<div class="input-field col s2">
<button class="btn waves-effect waves-light btnPrimary" type="submit" onclick="__gaTracker('send','event','My VHL','VHL Search Bar',document.getElementById('q').value);">
<button class="btn waves-effect waves-light btnPrimary" type="submit" onclick="gtag('send','event','My VHL','VHL Search Bar',document.getElementById('q').value);">
<i class="material-icons">search</i>
</button>
</div>
Expand Down
14 changes: 7 additions & 7 deletions client/templates/default/menu.tpl.php
Expand Up @@ -25,7 +25,7 @@
<img class="activator" src="<?php echo RELATIVE_PATH; ?>/images/<?php echo $_SESSION["skin"]; ?>/favoritos-<?php echo $_SESSION["lang"]; ?>.jpg" alt="Título Documentos Favoritos">
</div>
<div class="card-action">
<a href="<?php echo RELATIVE_PATH; ?>/controller/mydocuments/control/business" onclick="__gaTracker('send','event','Overview','Favorite Documents','See All');"><b><?php echo $trans->getTrans($_REQUEST["action"],'MORE'); ?> [+]</b></a>
<a href="<?php echo RELATIVE_PATH; ?>/controller/mydocuments/control/business" onclick="gtag('send','event','Overview','Favorite Documents','See All');"><b><?php echo $trans->getTrans($_REQUEST["action"],'MORE'); ?> [+]</b></a>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4"><?php echo $trans->getTrans('menu','SHELF_WIDGET'); ?><i class="material-icons right">close</i></span>
Expand All @@ -42,7 +42,7 @@
$docURL = $col['docURL'];
}
?>
<p><a href="<?php echo $docURL; ?>" class="record" target="_blank" onclick="__gaTracker('send','event','Overview','Favorite Documents','<?php echo htmlspecialchars($col['title']); ?>');"><?php echo $col['title'] ?></a></p>
<p><a href="<?php echo $docURL; ?>" class="record" target="_blank" onclick="gtag('send','event','Overview','Favorite Documents','<?php echo htmlspecialchars($col['title']); ?>');"><?php echo $col['title'] ?></a></p>
<?php endforeach; ?>
<?php endif; ?>
</div>
Expand All @@ -54,13 +54,13 @@
<img class="activator" src="<?php echo RELATIVE_PATH; ?>/images/<?php echo $_SESSION["skin"]; ?>/interesse-<?php echo $_SESSION["lang"]; ?>.jpg" alt="Título Temas de Interesses">
</div>
<div class="card-action">
<a href="<?php echo RELATIVE_PATH; ?>/controller/myprofiledocuments/control/business" onclick="__gaTracker('send','event','Overview','Interest Topics','See All');"><b><?php echo $trans->getTrans($_REQUEST["action"],'MORE'); ?> [+]</b></a>
<a href="<?php echo RELATIVE_PATH; ?>/controller/myprofiledocuments/control/business" onclick="gtag('send','event','Overview','Interest Topics','See All');"><b><?php echo $trans->getTrans($_REQUEST["action"],'MORE'); ?> [+]</b></a>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4"><?php echo $trans->getTrans('menu','PROFILE_WIDGET'); ?><i class="material-icons right">close</i></span>
<?php if ( $profiles ) : ?>
<?php foreach ( $profiles as $profile ) : ?>
<p><a href="<?php echo RELATIVE_PATH.'/controller/myprofiledocuments/control/business/profile/'.$profile["profileID"]; ?>" onclick="__gaTracker('send','event','Overview','Interest Topics','<?php echo htmlspecialchars($profile['profileName']); ?>');"><i class="fas fa-folder-open"></i> <?php echo $profile['profileName']; ?></a></p>
<p><a href="<?php echo RELATIVE_PATH.'/controller/myprofiledocuments/control/business/profile/'.$profile["profileID"]; ?>" onclick="gtag('send','event','Overview','Interest Topics','<?php echo htmlspecialchars($profile['profileName']); ?>');"><i class="fas fa-folder-open"></i> <?php echo $profile['profileName']; ?></a></p>
<?php endforeach; ?>
<?php endif; ?>
</div>
Expand All @@ -72,17 +72,17 @@
<img class="activator" src="<?php echo RELATIVE_PATH; ?>/images/<?php echo $_SESSION["skin"]; ?>/historico-<?php echo $_SESSION["lang"]; ?>.jpg" alt="Título Histórico de Buscas">
</div>
<div class="card-action">
<a href="<?php echo RELATIVE_PATH; ?>/controller/mysearches/control/business" onclick="__gaTracker('send','event','Overview','VHL Search History','See All');"><b><?php echo $trans->getTrans($_REQUEST["action"],'MORE'); ?> [+]</b></a>
<a href="<?php echo RELATIVE_PATH; ?>/controller/mysearches/control/business" onclick="gtag('send','event','Overview','VHL Search History','See All');"><b><?php echo $trans->getTrans($_REQUEST["action"],'MORE'); ?> [+]</b></a>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4"><?php echo $trans->getTrans($_REQUEST["action"],'SEARCH_WIDGET'); ?><i class="material-icons right">close</i></span>
<?php if ( $searches ) : $count = 0; ?>
<?php foreach ( $searches as $search ) : $count++; ?>
<p>
<?php if ( 'portal' == $_SESSION['iahx'] ) : ?>
<a id="v<?php echo $count; ?>" class="portal" data-origin="portal" data-query="<?php echo $search['query']; ?>" data-filter="<?php echo $search['filter']; ?>" onclick="__gaTracker('send','event','Overview','VHL Search History','<?php echo htmlspecialchars($search['query']); ?>');"><i class="fas fa-search"></i> <?php echo CharTools::shortenedQueryString($search['query'], true); ?></a>
<a id="v<?php echo $count; ?>" class="portal" data-origin="portal" data-query="<?php echo $search['query']; ?>" data-filter="<?php echo $search['filter']; ?>" onclick="gtag('send','event','Overview','VHL Search History','<?php echo htmlspecialchars($search['query']); ?>');"><i class="fas fa-search"></i> <?php echo CharTools::shortenedQueryString($search['query'], true); ?></a>
<?php else : ?>
<a id="v<?php echo $count; ?>" class="search" data-origin="<?php echo $_SESSION['iahx']; ?>" data-label="<?php echo $label; ?>" data-query="<?php echo $search['query']; ?>" data-filter="<?php echo $search['filter']; ?>" onclick="__gaTracker('send','event','Overview','VHL Search History','<?php echo htmlspecialchars($search['query']); ?>');"><i class="fas fa-search"></i> <?php echo CharTools::shortenedQueryString($search['query'], true); ?></a>
<a id="v<?php echo $count; ?>" class="search" data-origin="<?php echo $_SESSION['iahx']; ?>" data-label="<?php echo $label; ?>" data-query="<?php echo $search['query']; ?>" data-filter="<?php echo $search['filter']; ?>" onclick="gtag('send','event','Overview','VHL Search History','<?php echo htmlspecialchars($search['query']); ?>');"><i class="fas fa-search"></i> <?php echo CharTools::shortenedQueryString($search['query'], true); ?></a>
<?php endif; ?>
</p>
<?php endforeach; ?>
Expand Down
18 changes: 9 additions & 9 deletions client/templates/default/mydocuments.tpl.php
Expand Up @@ -40,9 +40,9 @@
<a class='dropdown-trigger btn2 btnSuccess' href='#' data-target='dir-actions'><i class="fas fa-angle-down"></i></a>
<!-- Dropdown Structure -->
<ul id='dir-actions' class='dropdown-content'>
<li><a href="#modal-ajax" class="modal-trigger modal-ajax" data-source="<?php echo RELATIVE_PATH; ?>/controller/directories/control/business/task/edit/directory/<?php echo $_REQUEST["directory"]; ?>" onclick="__gaTracker('send','event','Favorite Documents','Edit Collection','<?php echo htmlspecialchars($resultDirName); ?>');"><i class="far fa-edit right m1"></i><?php echo $trans->getTrans($_REQUEST["action"],'EDIT_FOLDER'); ?></a></li>
<li><a href="#modal-ajax" class="modal-trigger modal-ajax" data-source="<?php echo RELATIVE_PATH; ?>/controller/directories/control/business/task/delete/directory/<?php echo $_REQUEST["directory"]; ?>" onclick="__gaTracker('send','event','Favorite Documents','Remove Collection','<?php echo htmlspecialchars($resultDirName); ?>');"><i class="fas fa-eraser right m1"></i><?php echo $trans->getTrans($_REQUEST["action"],'REMOVE_FOLDER'); ?></a></li>
<li><a href="#modal-share" class="modal-trigger" onclick="__gaTracker('send','event','Favorite Documents','Share Collection','<?php echo htmlspecialchars($resultDirName); ?>');"><i class="fas fa-share-alt right m1"></i><?php echo $trans->getTrans($_REQUEST["action"],'SHARE_COLLECTION'); ?></a></li>
<li><a href="#modal-ajax" class="modal-trigger modal-ajax" data-source="<?php echo RELATIVE_PATH; ?>/controller/directories/control/business/task/edit/directory/<?php echo $_REQUEST["directory"]; ?>" onclick="gtag('send','event','Favorite Documents','Edit Collection','<?php echo htmlspecialchars($resultDirName); ?>');"><i class="far fa-edit right m1"></i><?php echo $trans->getTrans($_REQUEST["action"],'EDIT_FOLDER'); ?></a></li>
<li><a href="#modal-ajax" class="modal-trigger modal-ajax" data-source="<?php echo RELATIVE_PATH; ?>/controller/directories/control/business/task/delete/directory/<?php echo $_REQUEST["directory"]; ?>" onclick="gtag('send','event','Favorite Documents','Remove Collection','<?php echo htmlspecialchars($resultDirName); ?>');"><i class="fas fa-eraser right m1"></i><?php echo $trans->getTrans($_REQUEST["action"],'REMOVE_FOLDER'); ?></a></li>
<li><a href="#modal-share" class="modal-trigger" onclick="gtag('send','event','Favorite Documents','Share Collection','<?php echo htmlspecialchars($resultDirName); ?>');"><i class="fas fa-share-alt right m1"></i><?php echo $trans->getTrans($_REQUEST["action"],'SHARE_COLLECTION'); ?></a></li>
</ul>
<?php endif; ?>
</div>
Expand Down Expand Up @@ -76,12 +76,12 @@
<div class="box3P record">
<?php if ( is_array($register["docURL"]) ) : ?>
<?php if ( 'portal' != $_SESSION['iahx'] && !empty($site) && array_key_exists($site, $register['docURL']) ) : ?>
<a href="<?php echo $register["docURL"][$site]; ?>" class="doctitle" onclick="__gaTracker('send','event','Favorite Documents','View Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');" target="_blank"><?php echo $register["title"]; ?></a>
<a href="<?php echo $register["docURL"][$site]; ?>" class="doctitle" onclick="gtag('send','event','Favorite Documents','View Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');" target="_blank"><?php echo $register["title"]; ?></a>
<?php else : ?>
<a href="<?php echo $register["docURL"]["portal"]; ?>" class="doctitle" onclick="__gaTracker('send','event','Favorite Documents','View Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');" target="_blank"><?php echo $register["title"]; ?></a>
<a href="<?php echo $register["docURL"]["portal"]; ?>" class="doctitle" onclick="gtag('send','event','Favorite Documents','View Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');" target="_blank"><?php echo $register["title"]; ?></a>
<?php endif; ?>
<?php else : ?>
<a href="<?php echo $register["docURL"]; ?>" class="doctitle" onclick="__gaTracker('send','event','Favorite Documents','View Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');" target="_blank"><?php echo $register["title"]; ?></a>
<a href="<?php echo $register["docURL"]; ?>" class="doctitle" onclick="gtag('send','event','Favorite Documents','View Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');" target="_blank"><?php echo $register["title"]; ?></a>
<?php endif; ?>

<?php if ( $register["authors"] ) : ?>
Expand All @@ -91,9 +91,9 @@
</div>
<?php if ($register["dirID"] == null) { $dirID = 0; } ?>
<div class="btn2Botoes">
<a href="#modal-remove-doc" class="btn3 btnDanger modal-trigger remove" data-source="<?php echo RELATIVE_PATH; ?>/controller/mydocuments/control/business/task/removedoc/document/<?php echo $register["docID"]; ?>/directory/<?php echo $register["dirID"]; ?>" data-title="<?php echo $register["title"]; ?>" onclick="__gaTracker('send','event','Favorite Documents','Remove Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');"><?php echo $trans->getTrans($_REQUEST["action"],'REMOVE_FROM_COLLECTION'); ?></a>
<a href="#modal-ajax" class="btn3 btnSuccess modal-trigger modal-ajax" data-source="<?php echo RELATIVE_PATH; ?>/controller/directories/control/business/task/movedoc/document/<?php echo $register["docID"]; ?>/directory/<?php echo $register["dirID"]; ?>/docsrc/<?php echo base64_encode($register["srcID"]); ?>" onclick="__gaTracker('send','event','Favorite Documents','Move Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');"><?php echo $trans->getTrans($_REQUEST["action"],'MOVE_TO'); ?></a>
<a href="#modal-related-docs" class="btn3 btnPrimary modal-trigger related-docs" onclick="__gaTracker('send','event','Favorite Documents','Related Documents','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');"><?php echo $trans->getTrans('suggesteddocs','RELATED_DOCS'); ?></a>
<a href="#modal-remove-doc" class="btn3 btnDanger modal-trigger remove" data-source="<?php echo RELATIVE_PATH; ?>/controller/mydocuments/control/business/task/removedoc/document/<?php echo $register["docID"]; ?>/directory/<?php echo $register["dirID"]; ?>" data-title="<?php echo $register["title"]; ?>" onclick="gtag('send','event','Favorite Documents','Remove Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');"><?php echo $trans->getTrans($_REQUEST["action"],'REMOVE_FROM_COLLECTION'); ?></a>
<a href="#modal-ajax" class="btn3 btnSuccess modal-trigger modal-ajax" data-source="<?php echo RELATIVE_PATH; ?>/controller/directories/control/business/task/movedoc/document/<?php echo $register["docID"]; ?>/directory/<?php echo $register["dirID"]; ?>/docsrc/<?php echo base64_encode($register["srcID"]); ?>" onclick="gtag('send','event','Favorite Documents','Move Document','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');"><?php echo $trans->getTrans($_REQUEST["action"],'MOVE_TO'); ?></a>
<a href="#modal-related-docs" class="btn3 btnPrimary modal-trigger related-docs" onclick="gtag('send','event','Favorite Documents','Related Documents','<?php echo addslashes(htmlspecialchars($register["title"])); ?>');"><?php echo $trans->getTrans('suggesteddocs','RELATED_DOCS'); ?></a>
</div>
</div>
</article>
Expand Down
4 changes: 2 additions & 2 deletions client/templates/default/mylinks.tpl.php
Expand Up @@ -37,8 +37,8 @@
<small><?php echo $register["description"]; ?></small>
</div>
<div class="btn2Botoes">
<a href="#modal-remove-link" class="btn3 btnDanger modal-trigger remove" data-source="<?php echo RELATIVE_PATH; ?>/controller/mylinks/control/business/task/delete/link/<?php echo $register["linkID"]; ?>" data-title="<?php echo $register["name"]; ?>" onclick="__gaTracker('send','event','Favorite Links','Remove Link','<?php echo $register["url"]; ?>');"><?php echo $trans->getTrans($_REQUEST["action"],'REMOVE_LINK'); ?></a>
<a href="#modal-ajax" class="btn3 btnWarning modal-trigger modal-ajax" data-source="<?php echo RELATIVE_PATH; ?>/controller/mylinks/control/business/task/edit/link/<?php echo $register["linkID"]; ?>" onclick="__gaTracker('send','event','Favorite Links','Edit Link','<?php echo $register["url"]; ?>');"><i class="far fa-edit right m1"></i><?php echo $trans->getTrans($_REQUEST["action"],'EDIT_LINK'); ?></a>
<a href="#modal-remove-link" class="btn3 btnDanger modal-trigger remove" data-source="<?php echo RELATIVE_PATH; ?>/controller/mylinks/control/business/task/delete/link/<?php echo $register["linkID"]; ?>" data-title="<?php echo $register["name"]; ?>" onclick="gtag('send','event','Favorite Links','Remove Link','<?php echo $register["url"]; ?>');"><?php echo $trans->getTrans($_REQUEST["action"],'REMOVE_LINK'); ?></a>
<a href="#modal-ajax" class="btn3 btnWarning modal-trigger modal-ajax" data-source="<?php echo RELATIVE_PATH; ?>/controller/mylinks/control/business/task/edit/link/<?php echo $register["linkID"]; ?>" onclick="gtag('send','event','Favorite Links','Edit Link','<?php echo $register["url"]; ?>');"><i class="far fa-edit right m1"></i><?php echo $trans->getTrans($_REQUEST["action"],'EDIT_LINK'); ?></a>
</div>
</div>
</article>
Expand Down

0 comments on commit a8018e6

Please sign in to comment.