openmolecules.org

 
Home » DataWarrior » Functionality » Hyperlinks
Re: Hyperlinks [message #729 is a reply to message #721] Tue, 17 December 2019 22:11 Go to previous messageGo to previous message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
You can do that if you edit a dwar file with a text editor. You need to add column properties like the these (taken from the DataWarrior file after retrieving all wikipedia compounds) into the column properties section:

<column properties>
...
<columnName="Compound Name">
<columnProperty="lookupCount 1">
<columnProperty="lookupName0 Wikipedia Entry">
<columnProperty="lookupURL0 http://en.wikipedia.org/wiki/%s">
</column properties>

This means the following: The column with the name 'Compound Name' gets three column properties:
lookupCount<TAB>1: there is one URL lookup
lookupName0<TAB>Wikipedia Entry: the name of this lookup (index=0) is 'Wikipedia Entry'
lookupURL0<TAB>http://en.wikipedia.org/wiki/%s: the URL for every cell of this column (also here is lookup index=0) is the given one, where '%s' is automatically replaced by the cell content. If you wanted to have the entire URL in the cell, then the given URL should be simply '%s'.

Hope I could explain it in an understandable manner, Thomas
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: tautomer & protomer display
Next Topic: Duplicate Molecules
Goto Forum:
  


Current Time: Fri Nov 22 17:49:38 CET 2024

Total time taken to generate the page: 0.04017 seconds