source: MDService2/branches/MDService_simple3/src/xsl/params.xsl @ 1807

Last change on this file since 1807 was 1807, checked in by gaba, 12 years ago

fcs/scan

File size: 4.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3       
4<!--    <xsl:param name="title" select="'Default Title'" />  -->
5
6        <xsl:param name="server" select="'http://localhost:8080/'" />
7        <xsl:param name="app_name" select="'MDService2'" />
8       
9        <xsl:param name="format"  select="'htmltable'"/> <!-- table|list -->
10        <xsl:param name="display_values_limit" select="10" />
11       
12        <xsl:param name="max_depth" select="0" />
13       
14        <xsl:param name="base_dir" select="concat('/', $app_name)" />
15        <xsl:param name="base_url" select="concat($server, $app_name, '/')" />
16        <xsl:param name="base_js_url" select="concat($base_dir, '/search/htmljspage')" />               
17        <xsl:param name="docs_baseuri" select="concat($base_dir, '/docs/htmlpage/welcome')" />
18        <xsl:param name="repository_baseuri" select="concat($base_url, '/repository')" />
19       
20        <!-- momentary used in dcif2view.xsl to select appropriate language section
21        should be universal language-selector eventually -->
22        <xsl:param name="lang" select="'en'" />
23        <xsl:param name="default_lang" select="'en'" />
24       
25       
26        <xsl:param name="workspaceprofile_uri" select="concat('http://localhost:8080/', $app_name, '/workspaceprofile/xml/server')" />
27       
28<!-- should be obsoleted by SMC:        -->
29        <!-- <xsl:param name="model_matrix_uri" select="'http://localhost:8080/MDService2/model/matrix?maxdepth=8&amp;q='" /> -->
30        <xsl:param name="model_matrix_uri" select="'http://localhost:8080/MDService2/model/matrix?q='" />
31        <xsl:param name="datcats_terms_uri" select="'http://localhost:8080/MDService2/datcats/terms/?q='" />
32        <xsl:param name="terms_setup_uri" select="'http://localhost:8080/MDService2/datcats/xml/?q='" />
33        <xsl:param name="terms_flat_uri" select="'http://localhost:8080/MDService2/terms/flat/?q=all'" />
34       
35                       
36        <xsl:param name="repository" select="''" />
37        <!-- <xsl:param name="repository_name"><xsl:value-of select="$repository"></xsl:value-of></xsl:param> -->
38       
39        <xsl:param name="q" select="''" />
40        <xsl:param name="startRecord">1</xsl:param>
41        <xsl:param name="maximumRecords">10</xsl:param>
42
43       
44        <!--  for resolving components by suffixing with @ComponentId -->
45        <!-- <xsl:param name="components_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/'" /> -->
46        <!--  redirecting the resolution via MDService, to be able to make use of the cache
47                the absolute-URL is not nice, however I wasn't able to tell XSL how to resolve a relative url
48        -->     
49<!-- should be obsoleted by SMC:        -->     
50        <xsl:param name="cmdprofiles_uri" select="'http://localhost:8080/MDService2/compprofile/xml/'" />
51        <xsl:param name="components_uri" select="'http://localhost:8080/MDService2/comp/xml/'" />               
52        <xsl:param name="components_id_prefix" select="'clarin.eu:cr1:'" />
53        <xsl:param name="components_viewer_uri" select="'http://catalog.clarin.eu/ds/ComponentRegistry/?item='" />
54       
55        <xsl:param name="autocolumns_limit" select="6" />
56        <xsl:param name="resourceref_limit" select="20" />
57
58<!--    <xsl:param name="recordset_prefix" select="concat($base_dir, '/record/htmldetail/')" /> -->
59        <xsl:param name="default_prefix" select="concat($base_dir, '/', replace($format, '2','/'), '/')" />
60       
61        <xsl:param name="detail_comp_prefix"  select="'comp/htmldetail/'"/> 
62        <xsl:param name="detail_profile_prefix"  select="'compprofile/htmldetail/'"/> 
63        <xsl:param name="detail_complist_prefix"  select="if(contains(name(/*),'profile')) then $detail_profile_prefix else $detail_comp_prefix"/>
64       
65        <xsl:param name="detail_model_prefix"  select="'?q='"/>
66        <!--  <xsl:param name="detail_uri_prefix"  select="'?q='"/> -->
67                               
68        <!--  for rewriting links to DatCats (redirecting via MDService) -->                   
69        <xsl:param name="isocat_base_uri" select="'http://www.isocat.org/datcat/'" />   
70        <xsl:param name="isocat_uri_match" select="'http://www.isocat.org/datcat/DC-'" />               
71        <xsl:param name="isocat_uri_replace" select="'isocat/htmldiv/'" />
72       
73       
74        <xsl:param name="cache_cols_" >id date duration repository collection lang query startRecord maximumRecords maxDepth</xsl:param>   
75        <xsl:param name="cache_cols" select="tokenize($cache_cols_,'\s+')"  />
76       
77        <xsl:param name="name_element" select="('title', 'name', 'resourcename', 'md-title')"  />
78       
79        <xsl:param name="user" select="''"  />
80               
81       
82       
83</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.