Answer on Message 2:

Dear


I believe all ‘Custom’ Codes should be written in 
\dspace-1.5.2-src-release\dspace\modules

For JSP : Follow the tree structure under 
\dspace-1.5.2-src-release\dspace-jspui\dspace-jspui-webapp\src\main\webapp
        An example:
                If you want to change the file full.jsp 
(\dspace-1.5.2-src-release\dspace-jspui\dspace-jspui-webapp\src\main\webapp\browse\full.jsp)
1.      Build, under modules, the same tree structure as in \browse directory 
under \dspace-1.5.2-src-release\dspace-jspui\dspace-jspui-webapp\src\main\webapp
•       Create the \browse directory under 
\dspace-1.5.2-src-release\dspace\modules\jspui\src\main\webapp
•       Copy the full.jsp 
(\dspace-1.5.2-src-release\dspace\modules\jspui\src\main\webapp\browse\full.jsp)
•       Change this file
                
        
For Java Classes : Follow the tree structure under 
\dspace-1.5.2-src-release\dspace-jspui\dspace-jspui-api\src\main
        An example:
                If you want to change the file BrowseListTag.java 
(\dspace-1.5.2-src-release\dspace-jspui\dspace-jspui-api\src\main\java\org\dspace\app\webui\jsptag\BrowseListTag.java)
2.      Build, under modules, the same tree structure as in the directories 
under 
\dspace-1.5.2-src-release\dspace-jspui\dspace-jspui-api\src\main\java\org\dspace\app\webui\jsptag
 [starting from the \java folder]
•       Create the \java\org\dspace\app\webui\jsptag directory under 
\dspace-1.5.2-src-release\dspace\modules\jspui\src\main\
•       Copy the BrowseListTag.java 
(dspace-1.5.2-src-release\dspace-jspui\dspace-jspui-api\src\main\java\org\dspace\app\webui\jsptag\BrowseListTag.java)
•       Change this file



Yours Sincerely 

Christof Verdonck 
Email:[email protected] 



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] 
Sent: woensdag 9 september 2009 1:25
To: [email protected]
Subject: DSpace-tech Digest, Vol 41, Issue 15

Send DSpace-tech mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/dspace-tech
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of DSpace-tech digest..."


Today's Topics:

   1. Re: small correction for dspace_migrate (John Davison)
   2. Customize Dspace 1.5 using JSP (Khan, Baseer)
   3. SWORD and DSpace HowTo Available? ([email protected])
   4. Can "Stemming" be turned off in DSpace Lucene     searches?
      (Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY])
   5. Re: Can "Stemming" be turned off in DSpace        Lucenesearches?
      (Kim Shepherd)


----------------------------------------------------------------------

Message: 1
Date: Tue, 08 Sep 2009 14:22:56 -0400
From: John Davison <[email protected]>
Subject: Re: [Dspace-tech] small correction for dspace_migrate
To: Stuart Lewis <[email protected]>
Cc: "[email protected]"
        <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Collection-based export is working as expected when using the -m 
(migrate) flag in DSpace 1.5.2 with one exception.

/bin/export ItemExport --type=COLLECTION --id=collID --dest=dest_dir 
--number=seq_num -m

This will correctly remove the handle file, as well as the following 
metadata fields from dublin_core.xml:
  <dcvalue element="date" qualifier="accessioned"></dcvalue>
  <dcvalue element="date" qualifier="available"></dcvalue>
  <dcvalue element="date" qualifier="issued"></dcvalue>*
  <dcvalue element="description" qualifier="provenance"></dcvalue>
  <dcvalue element="format" qualifier="extent"></dcvalue>
  <dcvalue element="format" qualifier="mimetype"></dcvalue>
(*Date.issued is retained if the item has been published before.)

It also removes dc.identifier.uri in all cases. The dspace_migrate 
script uses a regular expression to only remove identifier.uri fields 
that start with http://hdl (retaining non-handle based identifier.uri 
elements), while ItemExport.java is eliminating all identifier.uri fields.

Line 474:
                if ((!migrate) ||
                    (migrate && !(
                     (dcv.element.equals("date") && 
qualifier.equals("issued")) ||
                     (dcv.element.equals("date") && 
qualifier.equals("accessioned")) ||
                     (dcv.element.equals("date") && 
qualifier.equals("available")) ||
                     (dcv.element.equals("identifier") && 
qualifier.equals("uri")) ||
                     (dcv.element.equals("description") && 
qualifier.equals("provenance")) ||
                     (dcv.element.equals("format") && 
qualifier.equals("extent")) ||
                     (dcv.element.equals("format") && 
qualifier.equals("mimetype")))))
                {
                    out.write(utf8, 0, utf8.length);


-John



Stuart Lewis wrote:
> Hi John,
>
>   
>> I was transferring a few collections from a DSpace 1.5.2 development
>> server to a production instance this morning and encountered a small
>> issue with the dspace_migrate bash script.
>> Since the item exporter in 1.6 has a migrate option (-m flag) this
>> script might get removed, so I'm posting this simple fix just in case
>> anyone else encounters the same problem.
>>     
>
> Thanks for reporting this problem. The -m 'migrate' flag was  
> introduced in 1.5.2, so you could try running that instead. It would  
> be good to know if it works for you to give us more confidence in  
> removing the dspace_migrate script. We also have an open issue to make  
> the -m 'migrate' flag more configurable 
> (http://jira.dspace.org/jira/browse/DS-287 
> )
>
> I've noted the bug in the JIRA issue to remove the dspace_migrate  
> script, so if we decide not to remove it, then we can make sure it  
> gets fixed before we release 1.6.
>
> Thanks,
>
>
> Stuart Lewis
> IT Innovations Analyst and Developer
> Te Tumu Herenga The University of Auckland Library
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> Ph: 64 9 373-7599 x81928
> http://www.library.auckland.ac.nz/
>
>
>   




------------------------------

Message: 2
Date: Tue, 08 Sep 2009 14:35:39 -0500
From: "Khan, Baseer" <[email protected]>
Subject: [Dspace-tech] Customize Dspace 1.5 using JSP
To: "[email protected]"
        <[email protected]>
Message-ID:
        <e02ccda42b6cea4294f90226f9f403fc164e9b4...@exchange-01.ad.wichita.edu>
        
Content-Type: text/plain; charset="us-ascii"

Hello ,
I have successfully updated my Dspace instance from 1.4.2 to 1.5.
I want to configure this using JSPUI.
Can someone help me out in how to make the customization changes so that my 1.5 
version looks similar to my 1.4.2.
Can you point me out the location of the all JSP files that I need to update to 
make necessary changes , I am a bit confused with the documentation .
Can I copy and paste my JSP page from 1.4.2 and paste it in 1.5 to make it work 
?
If yes where should I paste them in 1.5.
For your reference I have downloaded Dspace 1.5 src file .
Thank you,
Baseer.
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Tue, 8 Sep 2009 16:08:38 -0500
From: <[email protected]>
Subject: [Dspace-tech] SWORD and DSpace HowTo Available?
To: <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

I'm testing various import options for DSpace 1.5.2, and I'm struggling with 
SWORD, which seems like a great idea. I'm having trouble accessing my SWORD 
servicedocument, and I'm sure that I just didn't set something up correctly. 
(See the dspace.log file error below - it results in an HTTP Status 500 error 
when you go to http://dlynx.rhodes.edu/sword/servicedocument and authenticate).

Is anyone aware of a basic DSpace and SWORD HowTo document that would take me, 
more or less, step-by-step through the setup process, if I wanted to use the 
SWORD demonstration client to submit items to a DSpace collection?

Thanks in advance for the help...

2009-09-08 15:40:35,885 ERROR 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sword].[servicedocument]
 @ Servlet.service() for servlet servicedocument threw exception
java.lang.NullPointerException
        at org.purl.sword.base.Collection.marshall(Collection.java:459)
        at org.purl.sword.base.Workspace.marshall(Workspace.java:197)
        at org.purl.sword.base.Service.marshall(Service.java:381)
        at 
org.purl.sword.base.ServiceDocument.marshall(ServiceDocument.java:132)
        at 
org.purl.sword.server.ServiceDocumentServlet.doGet(ServiceDocumentServlet.java:168)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:595)

--
Stacy Pennington
Rhodes College
[email protected]
(901) 843-3968





------------------------------

Message: 4
Date: Tue, 8 Sep 2009 18:09:43 -0500
From: "Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES
        COMPANY]"       <[email protected]>
Subject: [Dspace-tech] Can "Stemming" be turned off in DSpace Lucene
        searches?
To: "[email protected]"
        <[email protected]>
Message-ID:
        <03de6124b1f32240b3692ed5e591ed1604cd33e...@ndmsscc07.ndc.nasa.gov>
Content-Type: text/plain; charset="us-ascii"

We are trying to figure out an easy way to turn off stemming in DSpace 
searches.  Can anyone point me in the right direction?
Thanks in advance,
Sue


Sue Walker-Thornton
ConITS Contract
NASA Langley Research Center
Integrated Library Systems Application & Database Administrator
130 Research Drive
Hampton, VA  23666
Office: (757) 224-4074
Fax:    (757) 224-4001
Pager: (757) 988-2547
Email:  [email protected]<mailto:[email protected]>

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 5
Date: Wed, 9 Sep 2009 11:24:38 +1200
From: "Kim Shepherd" <[email protected]>
Subject: Re: [Dspace-tech] Can "Stemming" be turned off in DSpace
        Lucenesearches?
To: "Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES
        COMPANY]"       <[email protected]>,
        <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="utf-8"

Hi Sue,

 

Search analysis, filtering, stemming etc. is done by Apache Lucene, but there 
is a ?DSAnalyzer? supplied by default with Dspace, The quickest way to achieve 
what you want may be to just comment out the steps you don?t want carried out 
in org.dspace.search.DSAnalyzer:

 

This function is the one you want to modify:

 

   /*

     * Create a token stream for this analyzer.

     */

    public final TokenStream tokenStream(String fieldName, final Reader reader)

    {

        TokenStream result = new DSTokenizer(reader);

 

        result = new StandardFilter(result);

        result = new LowerCaseFilter(result);

        result = new StopFilter(result, stopSet);

        result = new PorterStemFilter(result);  // THIS IS THE CALL TO THE 
STEMMER

 

        return result;

    }

 

The PorterStemFilter() call at the end is the stemmer you?re talking about, and 
the StopFilter ignores common conjunctions, pronouns etc. ? I would recommend 
at least keeping the StandardFilter and LowerCaseFilter.

 

I haven?t tried exactly what you?re asking about, so I can?t guarantee results, 
but I have successfully added new filter steps without any hassles.

 

Cheers,

 

Kim

 

--

Kim Shepherd

IRR Technical Specialist

ITS Systems & Development

The University of Waikato

New Zealand

 

DDI +64 7 838 4025

 

 

 

From: Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES COMPANY] 
[mailto:[email protected]] 
Sent: Wednesday, 9 September 2009 11:10 a.m.
To: [email protected]
Subject: [Dspace-tech] Can "Stemming" be turned off in DSpace Lucenesearches?

 

We are trying to figure out an easy way to turn off stemming in DSpace 
searches.  Can anyone point me in the right direction?

Thanks in advance,

Sue

 

 

Sue Walker-Thornton

ConITS Contract
NASA Langley Research Center
Integrated Library Systems Application & Database Administrator

130 Research Drive

Hampton, VA  23666

Office: (757) 224-4074
Fax:    (757) 224-4001
Pager: (757) 988-2547 
Email:  [email protected] <mailto:[email protected]> 

 

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

------------------------------

_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech


End of DSpace-tech Digest, Vol 41, Issue 15
*******************************************


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to