On 04/04/2013, at 21:23 , Daniele Pontillo wrote: Thank you very much Obviously this is totally useless for me. It's a matter of communication
No, of the way one thinks. The help given by Christiaan is indeed I believe very, very helpful and probably right on the spot, so I have a hard time to understand why you say it is useless. I guess it is the solution for your problem from all what I have understood so far. Even a rather easy one. BTW, I have written AppleScripts and offer them from my home page that do extract bibliographies in html form that can be used by colleagues. I do NOT offer there Dropbox links of the kind you seem to have in mind, but that may not be what you really want. You could easily extract with my script 'Extract Bibliography' the currently in BibDesk selected publications and then save the html index together with the pdf's to a Dropbox folder that you share with your colleagues. That way each of you could share fully all information, e.g. by double clicking in the index file the pdf links or doi links or other URL links from any browser that has the html file opened. This works also very well from iOS devices, e.g. using App GoodReader in an iPad that has access to the wanted Dropbox folder. My webpage http://www.sysecol.ethz.ch/people/afischli link Software -> BibDesk: AppleScripts Regards, Andreas Inviato da iPhone Il giorno 04/apr/2013, alle ore 20:52, Christiaan Hofman <cmhof...@gmail.com<mailto:cmhof...@gmail.com>> ha scritto: On Apr 4, 2013, at 19:53, Daniele Pontillo wrote: Il giorno 04/apr/2013, alle ore 19:12, Christiaan Hofman <cmhof...@gmail.com<mailto:cmhof...@gmail.com>> ha scritto: On Apr 4, 2013, at 13:40, Daniele Pontillo wrote: You almost got it right, almost I don't like my HTML file, but I don't know how to edit the file itself. Which field should I use to paste my Dropbox-generated link? And what is the syntax to edit the HTML file in order to get an appropriate output? You are still confusing different things. the problem is that what you say you want to get, or what you have, is not consistent with the concrete questions you ask. So what do you have, and what do you want to get? So what's in your data, what linked files, linked URLs, and (URL) fields? And what do you want in the HTML output? Is the information you want in there available in your data? Do you know about templates, have you read the Wiki and tried to look at sample templates? Christiaan Dear Christiaan. I appreciate so much your being straightforward, but I still have to get used to it. So please try and understand, since I'd try to be extremely patient and cooperative if I had to explain to you a current of lesion during STEMI and PCI or the specific prognosis of the takotsubo syndrome the problem is that you are implicitly making assumptions about the way templates are generated and the structure of the data, which are not correct, and then ask questions about the result of that assumption. Instead, you should say what you have and what you want to get, not what you assume you need in the intermediate to get what you want. 1. I have a database 2. I have a publication record 3. This record has fields 4. I am looking for a field where to paste https://www.dropbox.com/s/21v1rxpvbgb65x0/2008.pdf, but actually I don't know if such one exists Here you make the assumption that you can add a field, and put something in there, and somehow the content of that field turns up in the generated HTML. That assumption is wrong. So you are *not* looking for such a field. 1. I created a new field in a single publication record and called it Dropbox-Url and pasted the link That does not work because your assumption that arbitrary fields turn up in the generated HTML is wrong. 1. I looked at templates 2. I don't know how to sufficiently edit templates 3. I tried to build a template with the template editor as a .txt file and used for export 4. Formatting was terrible, but I actually got my link to appear 5. I'd like to get something like this which comes with the default html template Mokhles:2012aa The risk of new onset heart failure associated with dopamine agonist use in Parkinson's disease M. M. Mokhles and G. Trifirò and J. P. Dieleman and M. D. Haag and E. M. van Soest and K. M. C. Verhamme and G. Mazzaglia and R. Herings and C. d. Luise and D. Ross and G. Brusselle and A. Colao and W. Haverkamp and R. Schade and G. v. Camp and R. Zanettini and M. C. J. M. Sturkenboom Pharmacol Res 65 358-64 (2012) /Users/lalla/Dropbox/Papers/Mokhles/2012.nbib<file:///Users/lalla/Dropbox/Papers/Mokhles/2012.nbib> * But instead of /Users/lalla/Dropbox/Papers/mypaper * id like * https://www.dropbox.com/s/21v1rxpvbgb65x0/2008.pdf Again, one question is: is this information available somewhere in your publication items? If it is not, it will never turn up in the template. So you should somehow add it. * maybe some automation to retrieve the cloud link for any file stored in the local Dropbox folder would be useful IMHO Automation of setting this information will not and should not be done in any default way. This could be done using AppleScript, possibly through script hooks. I noticed that I don't know how to create a field common to the entire database Now, I am begging all of you to consider my perspective instead of constantly underscoring my computer science inconsistency. Its not about computer science. It's about your assumptions on how they work. That makes it really confusing, because it makes it unclear what you really want. The answer to "what field to use" depends on why you want this field and what you want to do with it. And actually you probably don't even want a field, but something else. But that is not what you asked. If my description is not enough, I will give up. I appreciate your cooperation Daniele Pontillo, MD So here is what I now think you want (rather than what you think you want): 1. You have items with linked files (not fields!) located in your local Dropbox. 2. You want to generate HTML from templates, possibly the default HTML template. 3. The generated template should contain *remote URLs* to your remote Dropbox, associated to those linked files. Is that correct? Now to get this you need at least two things: 1. Those remote URLs should be added to the item data. 2. The template should actually use those remote URLs (wherever they end up) in the generated text. The point is that as it is now, the default HTML template will not do 2 for you, so you need to edit the template (or use a custom template). Moreover, there are different ways you can do 1, which may or may not involve a field, and it depends on what you do in 2. If all this is correct, I think the best solution is to put the remote URLs in the linked URLs (so not in a field, but a URL that turns up in the side panes.) Those linked URLs should also turn up in the template, but I just noticed that there is an error in the default HTML template. To fix that, you should edit the htmlItemExportTemplate.html file (see the Template prefs) using a plain text editor, and add $ before the word remoteURLs (twice). An alternative is to use a field. But then you have to edit the template a bit more (could be in the same item template file). For instance, if you put the corresponding remote URL in the field "Url", then you could add the following line: <span class="File"><a href="<$urls.Url.absoluteString/>"><$urls.Url.absoluteString/></a></span><br /> or you could put this line instead of the 3 lines from <$localFiles> to </$localFiles>. Then the next question could be how to automate the synchronization of the linked local files with the corresponding remote URLs in your data. For this, you should use AppleScript. What this AppleScript looks like depends on whether you want to synchronize manually (say, generate the remote URLs in all selected items). Or whether you want to have this done automatically whenever you add a new linked file, in which case you should use a script hook. Moreover what the AppleScript looks like depends on the choices you make above (basically, whether you want to put the remote URL in the linked URLs, or in the Url field.) Christiaan Il giorno 04/apr/2013, alle ore 13:05, Fischlin Andreas <andreas.fisch...@env.ethz.ch<mailto:andreas.fisch...@env.ethz.ch>> ha scritto: It seems you do not like the html file. Then edit the template you use accordingly. This has, AFAI can understand you, nothing to do with a field of your publication record in BibDesk nor with Dropbox. Regards, Andreas ETH Zurich Prof. Dr. Andreas Fischlin Systems Ecology - Institute of Integrative Biology CHN E 21.1 Universitaetstrasse 16 8092 Zurich SWITZERLAND andreas.fisch...@env.ethz.ch<mailto:andreas.fisch...@env.ethz.ch><mailto:andreas.fisch...@env.ethz.ch> www.sysecol.ethz.ch<http://www.sysecol.ethz.ch/><http://www.sysecol.ethz.ch<http://www.sysecol.ethz.ch/>> +41 44 633-6090 phone +41 44 633-1136 fax +41 79 595-4050 mobile Make it as simple as possible, but distrust it! ________________________________________________________________________ On 04/04/2013, at 12:51 , Daniele Pontillo wrote: Il giorno 04/apr/2013, alle ore 12:45, Christiaan Hofman <cmhof...@gmail.com<mailto:cmhof...@gmail.com><mailto:cmhof...@gmail.com>> ha scritto: On Apr 4, 2013, at 12:26, Daniele Pontillo wrote: I am so sorry I cannot make myself understood. I'll try harder, step by step. 1. hahah, I have a publication 2. I have a pdf file I want to link to the publication 3. the pdf is in my dropbox folder Everything clear till now, OK? When I export my database to a HTML file take a look at what I get <link.jpg> Well, I guess you have a linked file to your local dropbox folder. 1. I don't need to display the link to my local folder (/Users/lalla/) 2. I want to find in my publication the APPROPRIATE FIELD to paste the Dropbox server-generated link instead of getting the local file link The appropriate field is the field where you put the URL you're talking about. If you did not put a URL in a field, then there is no appropriate field. Christiaan Dear Christiaan, I guess that this Italian cardiologist is really too dumb as for computer science. But listen carefully: please give me the name of the field where I can place the link and that would be displayed in an HTML output Il giorno 04/apr/2013, alle ore 12:15, Christiaan Hofman <cmhof...@gmail.com<mailto:cmhof...@gmail.com><mailto:cmhof...@gmail.com>> ha scritto: On Apr 4, 2013, at 11:47, Daniele Pontillo wrote: Hello again everybody. Since there are some issues in identifuing the field in which local pdfs are stored (in order to find and replace the url) I will ask another question I linked my publication to the file on the dropbox server (https://www.dropbox.com/s/21v1rxpvbgb65x0/2008.pdf) placing it in the remote-url field. What syntax should I use and which file should I edit to get the remote-url link instead of the local file link displayed on the exported HTML file ? Thanks Dan You're confusing again. Are you talking about linked files, linked remote URLs, or a field called "Remote-Url"? Christiaan ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net><mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net><mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net><mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net<mailto:Bibdesk-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html_______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users