Changeset 4462 for cats


Ignore:
Timestamp:
02/06/14 13:20:26 (10 years ago)
Author:
mwindhouwer
Message:

M mod-ISOcat-access-system/config/set.acc
M mod-ISOcat-access-system/config/database.acc
M mod-ISOcat-access-system/etc/ISOcatConfig.xml
M mod-ISOcat-manage-system/plugin/configure.xsl

  • made it possible to configure the database server and port
Location:
cats/ISOcat/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-access-system/config/database.acc

    r2029 r4462  
    1717                                                <jdbcDriver>org.postgresql.Driver</jdbcDriver>
    1818                                                <jdbcConnection>
    19                                                     <xsl:text>jdbc:postgresql://localhost/</xsl:text>
    20                                                     <xsl:choose>
    21                                                         <xsl:when test="normalize-space(database/name)!=''">
    22                                                             <xsl:value-of select="normalize-space(database/name)"/>
    23                                                         </xsl:when>
    24                                                         <xsl:otherwise>
    25                                                             <xsl:text>ISOcat</xsl:text>
    26                                                         </xsl:otherwise>
     19                                                    <xsl:text>jdbc:postgresql://</xsl:text>
     20                                                        <xsl:choose>
     21                                                                <xsl:when test="normalize-space(database/host)!=''">
     22                                                                        <xsl:value-of select="normalize-space(database/host)"/>
     23                                                                </xsl:when>
     24                                                                <xsl:otherwise>
     25                                                                        <xsl:text>localhost</xsl:text>
     26                                                                </xsl:otherwise>
     27                                                        </xsl:choose>
     28                                                        <xsl:if test="normalize-space(database/port)!=''">
     29                                                                <xsl:text>:</xsl:text>
     30                                                                <xsl:value-of select="normalize-space(database/port)"/>
     31                                                        </xsl:if>
     32                                                        <xsl:text>/</xsl:text>
     33                                                        <xsl:choose>
     34                                                                <xsl:when test="normalize-space(database/name)!=''">
     35                                                                    <xsl:value-of select="normalize-space(database/name)"/>
     36                                                                </xsl:when>
     37                                                                <xsl:otherwise>
     38                                                                    <xsl:text>ISOcat</xsl:text>
     39                                                                </xsl:otherwise>
    2740                                                    </xsl:choose>
    2841                                                </jdbcConnection>
  • cats/ISOcat/trunk/mod-ISOcat-access-system/config/set.acc

    r4185 r4462  
    2727                                                        </admin>
    2828                                                        <database>
     29                                                                <host>
     30                                                                        <xsl:value-of select="database_host"/>
     31                                                                </host>
     32                                                                <port>
     33                                                                        <xsl:value-of select="database_port"/>
     34                                                                </port>
    2935                                                                <name>
    3036                                                                        <xsl:value-of select="database_name"/>
  • cats/ISOcat/trunk/mod-ISOcat-access-system/etc/ISOcatConfig.xml

    r4036 r4462  
    77        </admin>
    88        <database>
     9                <host>localhost</host>
     10                <port/>
    911                <name>isocat</name>
    1012                <user>isocat</user>
  • cats/ISOcat/trunk/mod-ISOcat-manage-system/plugin/configure.xsl

    r4036 r4462  
    5353                                                </tr>
    5454                                                <tr>
     55                                                        <td>host</td>
     56                                                        <td>
     57                                                                <input name="database_host" value="{database/host}"/>
     58                                                        </td>
     59                                                        <td/>
     60                                                </tr>
     61                                                <tr>
     62                                                        <td>port</td>
     63                                                        <td>
     64                                                                <input name="database_port" value="{database/port}"/>
     65                                                        </td>
     66                                                        <td/>
     67                                                </tr>
     68                                                <tr>
    5569                                                        <td>database</td>
    5670                                                        <td>
Note: See TracChangeset for help on using the changeset viewer.