Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 0c2b38d

Browse files
committed
Merge branch 'master' of https://github.com/Symbiota/Symbiota
2 parents eb0fb39 + 781ba57 commit 0c2b38d

File tree

10 files changed

+931
-19
lines changed

10 files changed

+931
-19
lines changed

classes/GlossaryUpload.php

Lines changed: 538 additions & 0 deletions
Large diffs are not rendered by default.

classes/OccurrenceManager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ public function getFullCollectionList($catId = ''){
646646
}
647647

648648
public function outputFullCollArr($occArr){
649+
global $DEFAULTCATID;
649650
$collCnt = 0;
650651
if(isset($occArr['cat'])){
651652
$categoryArr = $occArr['cat'];
@@ -679,7 +680,7 @@ public function outputFullCollArr($occArr){
679680
</td>
680681
<td style="padding:9px 5px;width:10px;">
681682
<a href="#" onclick="toggleCat('<?php echo $idStr; ?>');return false;">
682-
<img id="plus-<?php echo $idStr; ?>" src="../images/plus_sm.png" style="<?php echo ($cnt?'':'display:none;') ?>" /><img id="minus-<?php echo $idStr; ?>" src="../images/minus_sm.png" style="<?php echo ($cnt?'display:none;':'') ?>" />
683+
<img id="plus-<?php echo $idStr; ?>" src="../images/plus_sm.png" style="<?php echo (($DEFAULTCATID && $DEFAULTCATID != $catid)?'':'display:none;') ?>" /><img id="minus-<?php echo $idStr; ?>" src="../images/minus_sm.png" style="<?php echo (($DEFAULTCATID && $DEFAULTCATID != $catid)?'display:none;':'') ?>" />
683684
</a>
684685
</td>
685686
<td style="padding-top:8px;">
@@ -692,7 +693,7 @@ public function outputFullCollArr($occArr){
692693
</tr>
693694
<tr>
694695
<td colspan="4">
695-
<div id="cat-<?php echo $idStr; ?>" style="<?php echo ($cnt?'display:none;':'') ?>margin:10px;padding:10px 20px;border:inset">
696+
<div id="cat-<?php echo $idStr; ?>" style="<?php echo (($DEFAULTCATID && $DEFAULTCATID != $catid)?'display:none;':'') ?>margin:10px;padding:10px 20px;border:inset">
696697
<table>
697698
<?php
698699
foreach($catArr as $collid => $collName2){

classes/TPEditorManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function getVernaculars(){
139139
$sql = "SELECT v.VID, v.VernacularName, v.Language, v.Source, v.username, v.notes, v.SortSequence ".
140140
"FROM taxavernaculars v ".
141141
"WHERE (v.tid = ".$this->tid.") ";
142-
if($this->language) $sql .= "AND (v.Language = '".$this->language."') ";
142+
//if($this->language) $sql .= "AND (v.Language = '".$this->language."') ";
143143
$sql .= "ORDER BY v.Language, v.SortSequence";
144144
$result = $this->taxonCon->query($sql);
145145
$vernCnt = 0;

config/schema-1.0/schema_todo.sql

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,30 @@ ALTER TABLE `omcollectionstats`
351351
MODIFY COLUMN `dynamicProperties` longtext NULL AFTER `uploadedby`;
352352

353353
ALTER TABLE `glossary`
354-
ADD COLUMN `resourceurl` varchar(600) NULL AFTER `notes`;
354+
ADD COLUMN `resourceurl` varchar(600) NULL AFTER `notes`,
355355
MODIFY COLUMN `definition` varchar(1000) NULL DEFAULT NULL AFTER `term`;
356356

357357
ALTER TABLE `taxadescrblock`
358358
MODIFY COLUMN `caption` varchar(40) NULL DEFAULT NULL AFTER `tid`;
359-
360-
361-
362-
359+
360+
ALTER TABLE `glossarytaxalink`
361+
DROP FOREIGN KEY `glossarytaxalink_ibfk_1`,
362+
DROP FOREIGN KEY `glossarytaxalink_ibfk_2`;
363+
364+
ALTER TABLE `glossarytermlink` DROP FOREIGN KEY `glossarytermlink_ibfk_1`;
365+
366+
CREATE TABLE `uploadglossary` (
367+
`term` varchar(150) DEFAULT NULL,
368+
`definition` varchar(1000) DEFAULT NULL,
369+
`language` varchar(45) DEFAULT NULL,
370+
`source` varchar(600) DEFAULT NULL,
371+
`notes` varchar(250) DEFAULT NULL,
372+
`resourceurl` varchar(600) DEFAULT NULL,
373+
`tidStr` varchar(100) DEFAULT NULL,
374+
`synonym` tinyint(1) DEFAULT NULL,
375+
`newGroupId` int(10) DEFAULT NULL,
376+
`currentGroupId` int(10) DEFAULT NULL,
377+
`InitialTimeStamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
378+
KEY `term_index` (`term`),
379+
KEY `relatedterm_index` (`newGroupId`)
380+
);

0 commit comments

Comments
 (0)