ILL/Document Delivery Form form customization - increasing display field size
- Article Type: General
- Product: SFX
- Product Version: 3
Description:
I have customized the sfx doc delivery form (docdel.tmpl). I don't know how to make the display fields (tmpl_var escape=HTML field_value) bigger/longer. For example, the Article Title field only displays the first few words of the title. Is the width of the fields defined somewhere in the docdel.cgi? Which lines should I modify?
[ <Vlad Buldyrev > ]
Resolution:
The length of the fields can be changed by editing the docdel template form docdel.tmpl in the directory templates/targets/docdel/ of your instance. Break the symbolic link to the global version of this file if you have not already done so and find the line that looks like this:
<td><input name=<TMPL_VAR ESCAPE=HTML FIELD_NAME> VALUE="<TMPL_VAR
ESCAPE=HTML FIELD_VALUE>"></td>
You will want to add a SIZE parameter in here to specify the desired length of the display field. So for example, you might edit the line to look like this:
<td><input name=<TMPL_VAR ESCAPE=HTML FIELD_NAME> VALUE="<TMPL_VAR
ESCAPE=HTML FIELD_VALUE>" SIZE=50></td>
You can of course try different sizes until you find the one that you prefer. Note that this will change the size for all the display fields on the docdel form. If you are comfortable with programming and templates, you probably could modify both the docdel.cgi and the docdel.tmpl so that you can specify different sizes for different fields - but that would take some work.
Additional Information
ILL,Document Delivery,Custom,Fields,display,template,HTML
- Article last edited: 10/8/2013