From 9c284068bb26330989ccc94a00b85e8a263cc97d Mon Sep 17 00:00:00 2001 From: wlx Date: Sat, 25 Jul 2015 21:01:44 +0800 Subject: [PATCH] Add view-tianditu in WATER project --- .../views/scripts/water/view-tianditu.phtml | 518 ++++++++++++++++++ 1 file changed, 518 insertions(+) create mode 100755 application/default/views/scripts/water/view-tianditu.phtml diff --git a/application/default/views/scripts/water/view-tianditu.phtml b/application/default/views/scripts/water/view-tianditu.phtml new file mode 100755 index 00000000..9775c130 --- /dev/null +++ b/application/default/views/scripts/water/view-tianditu.phtml @@ -0,0 +1,518 @@ +headTitle($this->config->title->site); + $this->headTitle($this->config->title->data); + $this->headTitle($this->metadata->title); + $this->headTitle()->setSeparator(' - '); + $this->theme->AppendPlus($this,'tianditu'); + $this->theme->AppendPlus($this,'colorbox'); + if(!empty($this->dataService)) { + $this->theme->AppendModel($this,"dataservice"); + } +?> + + render('breadcrumbs.phtml'); ?> +metadata;if ($md):?> +

escape($md->title); + if ($md->title_en) echo '
'.$this->escape($md->title_en); + if ($md->mdid) echo ' Chinese Version';?> +

+
+
+
+
+ +

+

',$md->description);?> +

+
+
+ citation) : ?> +
+

CitationHelp

+

datadoi) || !strpos($md->citation,$md->datadoi)) : ?> + Paper Cite + escape($md->citation); + if (strpos($md->citation,$md->datadoi)) : ?> + (Download: RIS | + Bibtex) + +

+ datadoi) && !strpos($md->citation,$md->datadoi)) : ?> +

Dataset Cite + author_en,1,-1)).'. '.$md->title.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi; ?> + (Download: RIS | + Bibtex)

+ + ref) : ?> +
+

Related Publications (Recommended by Author)

+
    + ref as $ref) : + echo '
  1. '.$ref->reference; + echo 'Detail'; + if (empty($ref->link)) + { + if(!empty($ref->attid)) + echo ' Download'; + }else{ + echo ' Download'; + } + echo "
  2. "; + endforeach; + ?> +
+ themeref) :?> + +
+

Special Publications

+
    + themeref as $ref) : + echo '
  1. '.$ref->reference; + echo 'Detail'; + if (empty($ref->link)) + { + if(!empty($ref->attid)) + echo ' | Download'; + }else{ + echo ' | Download'; + } + echo "
  2. "; + endforeach; + ?> +
+ userref) : ?> +
+

Cited By

+
    + userref as $ref) : + echo '
  1. '.$ref->reference; + echo 'Detail'; + if (empty($ref->link)) + { + if(!empty($ref->attid)) + echo ' Download'; + }else{ + echo ' Download'; + } + echo "
  2. "; + endforeach; + if (count($this->userref)==15) + { + echo 'More'; + } + ?> +
+ +
+

Limitations

+ uselimits) : + foreach($this->uselimits as $uselimit) : + echo '

'.str_replace(array("\r\n", "\n", "\r"),'

',$this->escape($uselimit->uselimit)).'

'; + endforeach; + ?> + + data_archives){ ?> +

Dataset News

+
    + data_archives as $v){?> +
  • + +
+
+ + suppinfo || $this->fund) : ?> +

Fund

+ fund)) : ?> +
    + fund as $k=>$v) : ?> +
  • (No. )
  • + +
+ suppinfo)) : ?> + '.str_replace(array("\r\n", "\n", "\r"),'

',$this->escape($md->suppinfo)).'

';?> + +
+ + resources) : ?> +

Online Resources

+ +
+ +
+
+ keys as $cg){ + if($cg['keytype']=="theme") + $keywords[]=$cg['keyword']; + } + $ev = join(" ",$keywords); + ?> +
+ +
+ +
+
+
+
+
+
    +
    +
    + +
    +
    +
    + +
    +
    +
    + + 'Discipline','place'=>'Place','theme'=>'Theme','temporal'=>'Temporal','stratum'=>'Stratum'); +$kt=''; +$i=0; +foreach($this->keys as $cg) : + if ($kt==$cg['keytype']) : + $i+=1; + else : + if (!empty($kt)) echo ''; + $kt=$cg['keytype']; + $i=0; + endif; + if ($i==0) { + ?> + + doi) : ?> + + +
    +
    +

    InformationFile list

    +
      + fileformat) : ?> +
    • File Format: fileformat; ?>
    • + +
    • Size: filesize; ?>MB
    • + downloaded>9) :?> +
    • Downloaded: downloaded; ?>
    • + +
    • Viewed: viewed; ?>
    • + + timebegin)) : ?> +
    • Temporal Range: timebegin));if (!empty($md->timeend)) echo " to ".date('Y-m-d',strtotime($md->timeend)); ?>
    • + + attachments) : ?> +
    • Documents: + attachments as $k=>$a) : ?> + + + +
    • + +
    • Sharing: datatype) print "Offline"; else print "Online";?>
    • +
    +
    + status>0 and $md->status<5) : ?> + Reviewing + datatype) : ?> + + Download + + + dataService)) { ?> + dataService['service_type'] == 2) { ?> + + dataService['service_type'] == 3) {?> + + + + + + Put in the Basket + + +
    + +
    +
    +

    Map

    +
    +
    +

    Contacts

    +
    +
      + 'Resource Provider','custodian'=>'Custodian','owner'=>'Owner','user'=>'User','distributor'=>'Distributor','originator'=>'Originator','pointOfContact'=>'Point Of Contact','principalInvestigator'=>'Principal Investigator','processor'=>'Processor','publisher'=>'Publisher','author'=>'Author'); + $r=''; + $i=0; + foreach($this->authors as $k=>$author) : + if ($author->role!=$r) + { + $r=$author->role; + $i=0; + if ($k>0) echo ''; + echo '
    • '.$party_zh[$author->role].':'; + } + if ($i>0) echo ','; + $i+=1; + if (!empty($author->email) && $r!='principalInvestigator') + echo ''; + echo ''; + if (!empty($author->individual)) + echo $author->individual; + else + echo $author->organisation; + echo ''; + if (!empty($author->email)) echo ''; + if ($k+1==count($this->authors)) echo '
    • '; + endforeach; + ?> +
    +
    +
      +
    • Last update: ts_created)); ?>
    • +
    • Download Metadata: + Adobe PDF + OpenOffice odt + Word doc + XML +
    • + + version->c>0):?> +
    • Version: version->c ?> 个
    • + +
    +
    +
    + +
    +
    + + + +

    Cannot find the metadata.

    + +dataService)) { ?> + dataService['service_type'] == 2) { ?> + theme->AppendPlus($this,'datepicker'); ?> + + dataService['service_type'] == 3) {?> + theme->AppendPlus($this,'datepicker'); ?> + + + \ No newline at end of file