Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
9.6 KiB

5 years ago
  1. <script>
  2. function getServiceData() {
  3. return JSON.parse("{\"consumable\": [{\"id\":\"first-consumable\", \"title\":\"Purchase: Amount (weight) of consumables used\",\"description\":\"It can be represented by the weight and/or quantity of consumables used to deliver your service. The less consumables used, the better.\"}, {\"id\":\"second-consumable\", \"title\":\"Purchase: Ecological rucksack of consumables\",\"description\":\"An Ecological Rucksack is the total quantity of materials and energy moved from nature to create a product or service. Ecological rucksacks take a life cycle approach and signify the environmental strain or resource efficiency of the product or service.\"}, {\"id\":\"third-consumable\", \"title\":\"Purchase: Consumables with recovered components and/or recycled content\",\"description\":\"Recovered materials are products, components or parts of a production or waste stream captured or separated for reuse (without processing, which would be recycling). On the other hand, the recycled content is the proportion, by mass, of recycled material in a product or packaging.\"}, {\"id\":\"forth-consumable\", \"title\":\"Purchase: Reciclability of materials\",\"description\":\"Reciclability refers to the ability of a material to be captured and separated from a waste stream for being recycled.\"}, {\"id\":\"fifth-consumable\", \"title\":\"Purchase: Biodegradability of materials\",\"description\":\"Biodegradability refers to the capability of being decomposed by biological agents, especially bacteria.\"}, {\"id\":\"sixth-consumable\", \"title\":\"Purchase: Scarcity of materials\",\"description\":\"It refers to the lack or the limited existence of resources that are fundamental for the product or service provided. The more scarce, the worse.\"}, {\"id\":\"seventh-consumable\", \"title\":\"Purchase: Origin of goods\",\"description\":\"The origin of goods refers to the geographical location from which they are obtained. Local goods are desirable due to shorter distances.\"}, {\"id\":\"eighth-consumable\", \"title\":\"Purchase: Toxicity\",\"description\":\"Toxicity refers to the degree to which a substance can damage an organism.\"}, {\"id\":\"nineth-consumable\", \"title\":\"Purchase: Dose or Size\",\"description\":\"Purchasting consumables on the higher dose possible (bigger size), makes sure you are not wasting packaging and it makes transport more efficient, reducing the amount of greenhouse gas emissions.\"}, {\"id\":\"tenth-consumable\", \"title\":\"Purchase: Perish\",\"description\":\"Perish refers to the durability of perishable / expirable consumables. In general, it is preferrable to select consumables with higher life expectancy, in order to avoid wasting them without being used.\"}, {\"id\":\"eleventh-consumable\", \"title\":\"Purchase: Packaging of your consumables\",\"description\":\"This packaging refers to the materials used to pack your purchases (upstream packaging). In some occasions, the amount of packaging used is unjustified.\"}, {\"id\":\"twelfth-consumable\", \"title\":\"Purchase: Own packaging\",\"description\":\"Own packaging refers to the materials used to pack your own products that you deliver to your customers (downstream packaging). Example: food cases for a food delivering company, bags for a dry cleaner, etc.\"}], \"infrastructure\": [{\"id\":\"first-infrastructure\", \"title\":\"Durability of your infrastructure\",\"description\":\"Durability is aimed at extending the lifetime of products and infrastructure thanks to the inherent material properties and to the maintenance tasks.\"}, {\"id\":\"second-infrastructure\", \"title\":\"Process complexity\",\"description\":\"It refers to the level of intricateness of the production process. It can be simplified as the number of production processes (the less, the better).\"}, {\"id\":\"third-infrastructure\", \"title\":\"Efficiency of the processes and activities\",\"description\":\"It refers to the capability of the production processes and technology to produce the desired results without wasting inputs (materials, time, energy, waste...). The generation of wast
  4. }
  5. function getKeyOfDataTable($title, $category) {
  6. $data = getLifeCycleData();
  7. $code = "Not found";
  8. $($data[$category]).each(function() {
  9. if(this.title == $title.replace("&amp;", "&")) {
  10. $code = this.id
  11. }
  12. });
  13. return $code;
  14. }
  15. </script>