<?php
/**************************************************************************
 *
 * LOVD DATABASE WEBSITE
 *
 * Created     : 2009-08-18
 * Modified    : 2009-09-18
 * For LOVD    : 2.0-22
 *
 * Access      : Public
 *
 * Programmer  : Ing. Ivo F.A.C. Fokkema <I.F.A.C.Fokkema@LUMC.nl>
 * Last edited : Ing. Ivo F.A.C. Fokkema <I.F.A.C.Fokkema@LUMC.nl>
 *
 *************/

define('ROOT_PATH', '../../../');
define('DOCS_PATH', ROOT_PATH . 'docs/');
require DOCS_PATH . 'inc-website-init.php';
require ROOT_PATH . 'inc-top.php';
?>

            <H3>LOVD Gene configuration area</H3>
            <H4>Advanced edit features</H4>
            <H5>Copy Column</H5>

            This feature can be used to copy or move certain values from one specific column to another. The copy column form guides you to define which genes would you like to work on, which columns you want to copy values from, which text you want to search for in that column, where in this field you want to have the search text match and which field you want to have the value copied to. You also have to choose whether you want to overwrite the existing value or to append the copied value to the existing value, and you can choose to delete the copied value in the copied from field (move the value). This works for two columns at a time only, the column you want to copy from and the column you want to copy to.<BR>
            <BR>

<?php lovd_showInfoTable('Be extremely careful when using this function since misuse can empty an entire field in the database. It would be wise to do a download of the database first for backup purposes.', 'warning'); ?>

            In the configuration area, click the "Copy Column" link.<BR>
            <B>Select genes</B>: Select which genes you want to apply this copy column on. If you perform copy column on a patient column, only the patients that have variants in the selected genes will be edited.<BR>
            <B>Copy values from</B>: Select the column you want the values copied from. This drop-down list shows all custom columns available in LOVD; if you select a column that is not enabled for the gene(s) you want to apply copy column to, no changes are done to the database.<BR>
            <B>Match type</B>: Select how you want to search the selected field for the search value:
            <UL style="margin : 0px;">
              <LI><I>Field value is...</I> the search string should match the field's contents exactly.</LI>
              <LI><I>Field contains...</I> the search string can be found anywhere within the field's value.</LI>
              <LI><I>Field starts with...</I> the field's value should start with the search string.</LI>
              <LI><I>Field ends with...</I> the field's value should end with the search string.</LI>
            </UL>
            <B>Find text</B>: Fill in the search string that you wish to match the column you want to copy. Please note that the entire contents of the column will be copied, not just the part matching your "Find text".<BR>
            <B>Copy value to</B>: Select the column you want the values to be copied to.<BR>
            <B>Append or overwrite</B>: Choose between appending to or overwriting the existing value.<BR>
            <B>Move the copied field</B>: Tick this box to delete the values in the column you copied from.<BR>
            <BR>

            If all fields are filled in correctly, LOVD will first notify you about the number of entries that matched your find text and ask you if you want to continue. After your confirmation, LOVD will do the copy column and notify you of the number of matched entries and the number of updated entries.<BR>
            <BR>

            Copy Column does not have an undo. So be extremely careful with what you do. If you make an error while using the form, you may loose important data from the selected column.<BR>
            <BR>

<?php
include ROOT_PATH . 'inc-bot.php';
?>
