Changeset 26471 for main

Show
Ignore:
Timestamp:
19.11.2012 23:20:16 (7 years ago)
Author:
davidb
Message:

Added extra util:xx function (accessed from XSLT) to return the DocOID root for any given document section ID

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java

    r26334 r26471  
    137137    } 
    138138 
     139    public static String oidDocumentRoot(String oid) 
     140    { 
     141        String[] oidParts = oid.split("\\."); 
     142 
     143        return oidParts[0]; 
     144    } 
     145 
     146 
    139147    public static String replace(String orig, String match, String replacement) 
    140148    {