It's possible, but it's not very intuitive.
You'll have to go into your admin/GT/SQL/Admin.pm file and add some code.
Specificially you'll have to add code to the subroutine: modify_multi_search_results
In that module (for me it was around line 1064 in ...GT/SQL/Admin.pm), where you see
You will have to add the following code before that line. You will also have to modify that line so it reflects the following:
URL => sub {
my ( $self, $col, $values ) = @_;
my $field_name = $self->{multiple} ? "$self->{multiple}-$col" : $col;
my $value = $values->{URL};
my $visit_link = $value ? qq!<sup><a href='$value' target=_blank>visit link</a></sup>! : '';
my $buf = qq!
<tr $self->{tr}>
<td $self->{td}>
<font $self->{col_font}>URL</font>
</td>
<td $self->{td}>
<font $self->{val_font}>
<input type="text" name="$field_name" value="$value">
$visit_link
</font>
</td>
</tr>
!;
return $buf;
},
};
print $self->{html}->form ( { mode => 'modify_multi_search_results', values => $result, multiple => $i, view_key => 1, file_field => 1, file_delete => 1, code => $code } );
That should setup your modify-multiple so that there will be a little "visit link" twiddle beside the URL value (if the URL value exists) that will open the link in a new window.
I may have some syntax errors in there so please let me know and I'll fix it.
You'll have to go into your admin/GT/SQL/Admin.pm file and add some code.
Specificially you'll have to add code to the subroutine: modify_multi_search_results
In that module (for me it was around line 1064 in ...GT/SQL/Admin.pm), where you see
Code:
print $self->{html}->form ( { mode => 'modify_multi_search_results', values => $result, multiple => $i, view_key => 1, file_field => 1, file_delete => 1 } );You will have to add the following code before that line. You will also have to modify that line so it reflects the following:
Code:
my $code = { URL => sub {
my ( $self, $col, $values ) = @_;
my $field_name = $self->{multiple} ? "$self->{multiple}-$col" : $col;
my $value = $values->{URL};
my $visit_link = $value ? qq!<sup><a href='$value' target=_blank>visit link</a></sup>! : '';
my $buf = qq!
<tr $self->{tr}>
<td $self->{td}>
<font $self->{col_font}>URL</font>
</td>
<td $self->{td}>
<font $self->{val_font}>
<input type="text" name="$field_name" value="$value">
$visit_link
</font>
</td>
</tr>
!;
return $buf;
},
};
print $self->{html}->form ( { mode => 'modify_multi_search_results', values => $result, multiple => $i, view_key => 1, file_field => 1, file_delete => 1, code => $code } );
That should setup your modify-multiple so that there will be a little "visit link" twiddle beside the URL value (if the URL value exists) that will open the link in a new window.
I may have some syntax errors in there so please let me know and I'll fix it.