equal
deleted
inserted
replaced
74 (strpos(strtolower($res->getUri()), "collection", strlen(config('corpusparole.cocoon_doc_id_base_uri'))) !== FALSE) || |
74 (strpos(strtolower($res->getUri()), "collection", strlen(config('corpusparole.cocoon_doc_id_base_uri'))) !== FALSE) || |
75 (strpos(strtolower($res->getUri()), "collection", strlen(config('corpusparole.corpus_doc_id_base_uri'))) !== FALSE) |
75 (strpos(strtolower($res->getUri()), "collection", strlen(config('corpusparole.corpus_doc_id_base_uri'))) !== FALSE) |
76 ); |
76 ); |
77 } |
77 } |
78 |
78 |
|
79 public static function getGeonamesidFromUrl($url) { |
|
80 $matches = []; |
|
81 if(preg_match(config('corpusparole.geonames_url_regexp'), $url, $matches) === 1) { |
|
82 return $matches[1]; |
|
83 } |
|
84 else { |
|
85 return null; |
|
86 } |
|
87 } |
|
88 |
79 } |
89 } |