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.

28 lines
24 KiB

5 years ago
  1. <script>
  2. function getServiceStrategiesData() {
  3. return JSON.parse("{\"consumable\": [{\"id\":\"first-strategy-consumable\", \"id_assoc\":\"first-consumable\", \"title\":\"Include durability in the purchasing criteria applied for consumables to minimise material input\", \"description\":\"Can you purchase more durable goods?\"}, {\"id\":\"second-strategy-consumable\", \"id_assoc\":\"first-consumable\", \"title\":\"Include multifunctionality in the purchasing criteria applied for consumables to minimise material input\", \"description\":\"The combination of functions into one product reduces the consumption of material per function. Therefore, the consumed resources are used to provide several functions, for which reason the generated impacts could be partially allocated to each of the functions). Can you purchase consumables that can work for diferent tasks or jobs?\"}, {\"id\":\"third-strategy-consumable\", \"id_assoc\":\"second-consumable\", \"title\":\"Purchase consumables composed by materials and components with lower ecological rucksack\", \"description\":\"The consumption of resources for the supply of raw materials and the manufacture of external parts and components has an ecological rucksack, that is aggregated into the product's rucksack. Consequently, efforts should concentrate on minimizing the ecological rucksacks accompanying materials and other external parts and components. This may be realized by clearly defined requirements for the selection of suppliers, for which different assessment methods exist. Can you purchase consumables with a lower ecological rucksack?\"}, {\"id\":\"forth-strategy-consumable\", \"id_assoc\":\"second-consumable\", \"title\":\"Select suppliers and products under ecolabelling systems or providing environmental information\", \"description\":\"Certified and ecolabelled materials are preferrable. Can you purchase certified or ecolabeled consumables instead of non certified or ecolabeled consumables?\"}, {\"id\":\"fifth-strategy-consumable\", \"id_assoc\":\"third-consumable\", \"title\":\"Include use of recovered components in the purchasing criteria applied for consumables\", \"description\":\"Using recovered components avoid the need to produce new components and, thus, all associated impacts. This may result in an environmental benefit but also an economic one. Can you purchase recovered consumables?\"}, {\"id\":\"sixth-strategy-consumable\", \"id_assoc\":\"third-consumable\", \"title\":\"Prioritize consumables composed by materials with a high recycled content\", \"description\":\"The prioritization of materials with high recycled content promotes a circular economy in which materials are recycled and converted into new products. Can you purchase recycled consumables?\"}, {\"id\":\"seventh-strategy-consumable\", \"id_assoc\":\"forth-consumable\", \"title\":\"Prioritize consumables composed by recyclable materials\", \"description\":\"A requisite for achieving a circular economy with closed material cycles is to use only materials that are really recyclable and that ensure, at the same time, that its characteristics are also present in the secondary material to a sufficient degree. This implies that not only the characteristics of the material are adequate for recycling, but also that there exist the necessary infrastructure to recover and recycle materials. Can you purchase consumables the more recyclable as possible?\"}, {\"id\":\"eighth-strategy-consumable\", \"id_assoc\":\"fifth-consumable\", \"title\":\"Prioritize consumables composed by biodegradable materials\", \"description\":\"When selecting biodgradable materials, it is important not to forget the product use expectatives and, therefore, select materials that satisfy the technical and durability requirements for the product. Can you purchase biodegradable consumables?\"}, {\"id\":\"nineth-strategy-consumable\", \"id_assoc\":\"sixth-consumable\", \"title\":\"Prioritize consumables composed by materials that are abundant in the environment and avoid scarce materials \", \"description\":\"The use of materials that are abundant provides for greater opportunit
  4. }
  5. function getElementByIdAssoc($idAssoc, $category) {
  6. $fullData = getServiceStrategiesData();
  7. $dataReturned = [];
  8. $($fullData[$category]).each(function($i, $item) {
  9. if($item.id_assoc == $idAssoc) {
  10. $dataReturned.push($item);
  11. }
  12. });
  13. return $dataReturned;
  14. }
  15. function getKeyOfDataTableStrategies($title, $category) {
  16. $data = getServiceStrategiesData();
  17. $code = "Not found";
  18. $($data[$category]).each(function() {
  19. if(this.title == $title.replace("&amp;", "&")) {
  20. $code = this.id
  21. }
  22. });
  23. return $code;
  24. }
  25. </script>