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

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