Simple list (formatted with CSS)

In this example, a Geological Atlas of Switzerland to the scale of 1:500000 is integrated as an individual product. The formatting is carried out using CSS.

The format template used
var formatTemplate =
'<div style="width: 960px; font-size: 0.95em; margin-bottom: 20px;">' +
   '<div class="info_lst">' +
      '<span class="title">[product.titleDe]</span>   1:[product.scale]<br/>' +
         '([product.descriptionDe])<br/><br/>' +
         'Ausgabe: [product.releaseDate]<br/>' +
         'ISBN-Nummer: [product.isbnNumber]<br/>' +
         'Preis: [product.price]<br/><br/>' +
         '<a href="http://www.toposhop.admin.ch/de/shop/basket?ref=test.ch
      &product0=GK500-DRG-1&quantity0=1" target="_blank">
      Bestellen</a></b>' +
   '</div>' +
'</div>' +
'<div class="clearthefloats"></div>';
   
New code from January 1st 2017
var formatTemplate =
'<div style="width: 960px; font-size: 0.95em; margin-bottom: 20px;">' +
   '<div class="info_lst">' +
      '<span class="title">[product.titleDe]</span>   1:[product.scale]<br/>' +
         '([product.descriptionDe])<br/><br/>' +
         'Ausgabe: [product.releaseDate]<br/>' +
         'ISBN-Nummer: [product.isbnNumber]<br/>' +
         'Preis: [product.price]<br/><br/>' +
         '<a href="https://shop.swisstopo.admin.ch/en/dispatcher?ref=test.ch
      &product0=GK500-DRG-1&quantity0=1" target="_blank">
      Bestellen</a></b>' +
   '</div>' +
'</div>' +
'<div class="clearthefloats"></div>';
   

Calling up the JavaScript function
window.onload=getProducts(1.0, formatTemplate, null,['GK500-DRG-1']);   	
   

To transfer the product ordering process to our shop, the order link was inserted as follows (replacing # with URL):
http://www.toposhop.admin.ch/en/shop/basket?ref=test.ch&product0=[product.identifier]&quantity0=1

New code from January 1st 2017
https://shop.swisstopo.admin.ch/en/dispatcher?ref=test.ch&product0=[product.identifier]&quantity0=1

It looks like this