Your questions are related to display format and - luckily - you won't need any javascript knowledge to make changes.
For all formats they are defined in the layout.xml files, e.g. layout1.xml is the default format and by modifying its contents you instruct how and which fields and information are displayed.
1. The flags can be used in two ways from the layout.xml file. The first approach is with multiple flags in a cell. This means that the script will translate each individual country name - separated by a comma or slash - into a corresponding flag image.
Code: Select all
<flag src="movie.getAttribute('Country')" width="15" height="10" ...
The second approach is that a cell only contains a single flag image and when multiple countries are defined these are then replaced by the UN flag (this is what you want).
Code: Select all
<img src="flag(movie.getAttribute('Country'))" width="15" height="10" ...
One remark: when you are getting only UN flag images it means that the translation of country names to flag images is not done properly. The supplied "flags.xml" file is for english country names only and you need to edit this file yourself and put the country names in your language in here. For example
Code: Select all
Original English:
<cc id="es"><map>spain</map><map>spanish</map></cc>
Becomes in French:
<cc id="es"><map>espagne</map><map>espagnol</map></cc>
2. The "Thumbnail" and "Popup" view are based on a floating window. The only way to make this fit is by editing the layout3.xml and layout4.xml files and remove or change the fields to be displayed.
3. Adding the comments field can be done in the following way (see the layout1.xml file). I have here included the header "Comments" as an example.
Code: Select all
<text style="italic">'Synopsis'</text>
<text style="justify">movie.getAttribute('Description')</text><br/>
<text style="italic">'Comments'</text>
<text style="justify">movie.getAttribute('Comments')</text>
Hope this helps you on the way!