source: MDService2/trunk/MDService2/src/xsl/params.xsl

Last change on this file was 1482, checked in by vronk, 13 years ago

debug mdset_pazpar.xsl

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