src/Utils.rb
# Search the element of hashmap and return the finding elements in hashmap or return all links in links.json
#
# @param asig [String, #read] the asig of element
# @param apunte [String, #read] the name of element
# @param num [int, #read] That num is 1 when the request was sent from Search Form, the num is 0 when the request was sent from all Links form
# @param jsonName [String, #read] the name of json file
# @return [Hashmap] the hashmap of the finding elements or all elemnts

Search the element of hashmap and return the finding elements in hashmap or return all links in links.json
Search the element of hashmap and return the finding elements in hashmap or return all links in links . json
def returnJson(asig, apunte, num, collection)
    map=getCollection("./links/links.json", collection)
    if num==1
      map=searchIntoJson(asig, apunte, map)
    end
    return map
  end
def returnJson ( asig , apunte , num , collection ) map = getCollection ( "./links/links.json" , collection ) if num == 1 map = searchIntoJson ( asig , apunte , map ) end return map end
Search the element of hashmap and return the finding elements in hashmap or return all links in links.json
Search the element of hashmap and return the finding elements in hashmap or return all links in links . json
the hashmap of the finding elements or all elemnts
the hashmap of the finding elements or all elemnts
Hashmap
asig
the asig of element
the asig of element
apunte
the name of element
the name of element
num
That num is 1 when the request was sent from Search Form, the num is 0 when the request was sent from all Links form
That num is 1 when the request was sent from Search Form the num is 0 when the request was sent from all Links form
collection
<not_specific>
jsonName
<not_specific>
the name of json file
the name of json file