Changeset 5247


Ignore:
Timestamp:
05/21/14 09:29:17 (10 years ago)
Author:
Twan Goosen
Message:

Removed obsolete imdiBrowserUrl configuration parameter

Location:
vlo/trunk/vlo-commons/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo-commons/src/main/java/eu/clarin/cmdi/vlo/config/VloConfig.java

    r5205 r5247  
    584584
    585585    /**
    586      * Get the value of the ProfileSchemaUrl parameter combined with a
    587      * handle<br><br>
    588      *
    589      * For a description of the schema, refer to the general VLO documentation.
    590      *
    591      * @param handle the handle the URL is based on
    592      * @return the value
    593      */
    594     public String getImdiBrowserUrl(String handle) {
    595         String result;
    596         try {
    597             result = imdiBrowserUrl + URLEncoder.encode(handle, "UTF-8");
    598         } catch (UnsupportedEncodingException e) {
    599             result = imdiBrowserUrl + handle;
    600         }
    601         return result;
    602     }
    603 
    604     /**
    605      * Set the value of the IMDIBrowserUrl parameter<br><br>
    606      *
    607      * For a description of the parameter, refer to the general VLO
    608      * documentation.
    609      *
    610      * @param param the value
    611      */
    612     public void setImdiBrowserUrl(String param) {
    613         imdiBrowserUrl = param;
    614     }
    615 
    616     /**
    617586     * Get the value of the languageLinkPrefix parameter<br><br>
    618587     *
  • vlo/trunk/vlo-commons/src/main/resources/VloConfig.xml

    r5222 r5247  
    5555    <handleServerUrl>http://hdl.handle.net/</handleServerUrl>
    5656   
    57     <imdiBrowserUrl>http://corpus1.mpi.nl/ds/imdi_browser?openpath=</imdiBrowserUrl>
    58    
    5957    <nationalProjectMapping>/nationalProjectsMapping.xml</nationalProjectMapping>
    6058   
    6159    <!--
    6260        Facet field used to populate collection selector on search page
    63         If removed, the collection facet will not be shown (can be used to
     61        If disabled, the collection facet will not be shown (can be used to
    6462        move the collection facet in with the other facets).
     63       
     64        Uncomment to activate the separate collection facet display item.
    6565    -->
    6666    <!--<collectionFacet>collection</collectionFacet>-->
  • vlo/trunk/vlo-commons/src/test/java/eu/clarin/cmdi/vlo/config/DefaultVloConfigFactoryTest.java

    r5222 r5247  
    496496
    497497        assertEquals(param, result);
    498     }
    499 
    500     /**
    501      * Test the getIMDIBrowserUrl method
    502      */
    503     @Test
    504     public void testGetIMDIBrowserUrl() {
    505 
    506         System.out.println("getIMDIBrowserUrl");
    507 
    508         String expResult;
    509         try {
    510             expResult = "http://corpus1.mpi.nl/ds/imdi_browser?openpath=" + URLEncoder.encode("handle", "UTF-8");
    511         } catch (UnsupportedEncodingException ex) {
    512             expResult = "http://corpus1.mpi.nl/ds/imdi_browser?openpath=" + "handle";
    513         }
    514         String result = config.getImdiBrowserUrl("handle");
    515 
    516         assertEquals(expResult, result);
    517     }
    518 
    519     /**
    520      * Test the setIMDIBrowserUrl method
    521      */
    522     @Test
    523     public void testSetIMDIBrowserUrl() {
    524 
    525         System.out.println("setIMDIBrowserUrl");
    526 
    527         String param = "http://corpus1.mpi.nl/ds/imdi_browser?openpath=";
    528 
    529         config.setImdiBrowserUrl(param);
    530 
    531         String expResult;
    532         try {
    533             expResult = "http://corpus1.mpi.nl/ds/imdi_browser?openpath=" + URLEncoder.encode("handle", "UTF-8");
    534         } catch (UnsupportedEncodingException ex) {
    535             expResult = "http://corpus1.mpi.nl/ds/imdi_browser?openpath=" + "handle";
    536         }
    537 
    538         String result = config.getImdiBrowserUrl("handle");
    539 
    540         assertEquals(expResult, result);
    541498    }
    542499
Note: See TracChangeset for help on using the changeset viewer.