Re: [dspace-tech] Best practice to modify existing classes

2019-06-19 Thread Wenz, Armin
Hi Claudia,

I want to change the filename for uploaded files to a name composed of
author-title-timestamp.extension. Therefore I modfified
org.dspace.submit.step.UploadStep.processUploadFile() and
org.dspace.app.webui.servlet.admin.EditItemServlet.processUploadBitstre
am().

BTW: We are using DSpace 6.3 and your suggestion worked. 

Thanks


Am Montag, den 17.06.2019, 15:35 +0200 schrieb Claudia Jürgen:
> Hello Armin,
> 
> with which version of DSpace are you working and what are you trying
> to
> overlay?
> 
> Depending on what you want to oververlay, you might be missing a
> dependency in
> [dspace-src]/dspace/modules/jspui/pom.xml
> Most likely
>  
>  javax.servlet
>  jsp-api
>  2.0
>  provided
>  
> as this is used in org.dspace.app.webui.jsptag and customizing the
> ItemTag.java is a common use case.
> 
> Hope this helps
> 
> Claudia Jürgen
> 
> 
> Am 17.06.2019 um 15:08 schrieb Wenz, Armin:
> > Hi all,
> > 
> > I want to modify existing class files in the dspace-api and dspace-
> > jspui tree, but keep the original files (the original source tree)
> > intact, so that I can still update Dspace without loosing my
> > changes
> > with the next update. Therefore I copied the files I want to modify
> > to
> > dspace/modules/additions (the api) and dspace/modules/jspui.
> > 
> > The problem (as you probably guess) is now, that I cannot compile
> > my
> > classes due to missing import files.
> > 
> > Either my approach is wrong or I missed something. Searched the
> > tech
> > group and the wiki but haven't found anything appropriate.
> > 
> > So, is there a HOWTO or Best Practice doc describing how to modify
> > existing files?
> > 
> > Thanks
> > 
> 
> --
> Claudia Juergen
> Eldorado
> 
> Technische Universität Dortmund
> Universitätsbibliothek
> Vogelpothsweg 76
> 44227 Dortmund
> 
> Tel.: +49 231-755 40 43
> Fax: +49 231-755 40 32
> claudia.juer...@tu-dortmund.de
> www.ub.tu-dortmund.de
> 
> 
> Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich.
> Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht
> der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte
> den Absender und vernichten Sie diese Mail. Vielen Dank.
> Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen
> ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher
> Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung
> eines solchen Schriftstücks per Telefax erfolgen.
> 
> Important note: The information included in this e-mail is
> confidential. It is solely intended for the recipient. If you are not
> the intended recipient of this e-mail please contact the sender and
> delete this message. Thank you. Without prejudice of e-mail
> correspondence, our statements are only legally binding when they are
> made in the conventional written form (with personal signature) or
> when such documents are sent by fax.
> 

-- 

Armin Wenz
Universitätsbibliothek Mainz
Leitung Bibliotheksanwendungen
Jakob-Welder-Weg 12
55128 Mainz
Tel.: +49 6131 39-29830
http://www.ub.uni-mainz.de

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1560919518.7252.20.camel%40ub.uni-mainz.de.


[dspace-tech] Best practice to modify existing classes

2019-06-17 Thread Wenz, Armin
Hi all,

I want to modify existing class files in the dspace-api and dspace-
jspui tree, but keep the original files (the original source tree)
intact, so that I can still update Dspace without loosing my changes
with the next update. Therefore I copied the files I want to modify to
dspace/modules/additions (the api) and dspace/modules/jspui. 

The problem (as you probably guess) is now, that I cannot compile my
classes due to missing import files. 

Either my approach is wrong or I missed something. Searched the tech
group and the wiki but haven't found anything appropriate. 

So, is there a HOWTO or Best Practice doc describing how to modify
existing files? 

Thanks

-- 

Armin Wenz

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1560776897.7252.11.camel%40ub.uni-mainz.de.


[dspace-tech] Rename bitstream

2019-06-03 Thread Wenz, Armin
Hi,

we want to normalize the filename for uploaded bitstreams, e.g. using
the dc.title and dc.author values as resulting filename.
Is there a way to do that easily or do I have to write a bit of code to
accomplish that. If so, is there a howto describing that or can anybody
give me an idea, where to start.
BTW: we are using DSpace 6.3, JSPUI

Thanks

-- 

Armin Wenz

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/1559563229.2898.62.camel%40ub.uni-mainz.de.


[dspace-tech] Facettes in an empty database?

2019-01-11 Thread Wenz, Armin
Hi,


for testing purposes I cloned my postgres DB (create database .. from template 
..)  right after a fresh install and creating admin-users and empty collections 
(no items inserted).

After testing a few imports I shut down the whole application, moved the 
testing DB out of the way, cloned my template DB again and started DSpace with 
the newly cloned DB again.

Everything works fine, my epersons and empty collections where there. But still 
the facettes from the old DB are displayed even when all collections are empty. 
Of course, when clicking on the facette links, there is no data shown.

Another strange behaviour occured when importing items into the new 
DB/Application: The amount of items shown in the item list is the sum from the 
old imports and the new imports and I can click on 'next' as long as there are 
new imports.

So I guess this data is cached somewhere. Can anybody tell me  where or how I 
can get rid of that data?


BTW: using DSpace 6.3 with JSPUI


Many thanks in advance


Armin Wenz
Universitätsbibliothek Mainz
Jakob-Welder-Weg 12
55128 Mainz
Tel.: +49 6131/39-32895
http://www.ub.uni-mainz.de


-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] A way to alter metadata values for display?

2019-01-10 Thread Wenz, Armin
Hi,

we want to accomplish the same task with multiple values (e.g. language
codes, ddc, document types)
We are using DSpace 6.3 with JSPUI.

Would be great if you can suggest a procedure or point me/us to a
document describing a solution.

Thanks


Am Mittwoch, den 09.01.2019, 15:30 -0800 schrieb Terry Brady:
> Gabe, 
> 
> Please provide a couple additional bits of information.
> 
> - Which version of DSpace are you using?
> - Which UI do you use?  XMLUI or JSPUI?
> - If you are running XMLUI, what theme do you use?
> 
> Terry
> 
> On Wed, Jan 9, 2019 at 1:38 PM  wrote:
> > Group-  
> > 
> > Is there a straightforward way to hide the actual values contained
> > in a field, while displaying translated or crosswalked versions of
> > those values?  We'd like to automatically translate two letter
> > language codes into text: the language field would contain the
> > value 'en' but display the value 'english'.  
> > 
> > Can anyone suggest a procedure for accomplishing this?  
> > 
> > Thank you in advance for your help!  We are just getting started
> > with DSpace.  
> > 
> > -Gabe
> > -- 
> > All messages to this mailing list should adhere to the DuraSpace
> > Code of Conduct: https://duraspace.org/about/policies/code-of-condu
> > ct/
> > --- 
> > You received this message because you are subscribed to the Google
> > Groups "DSpace Technical Support" group.
> > To unsubscribe from this group and stop receiving emails from it,
> > send an email to dspace-tech+unsubscr...@googlegroups.com.
> > To post to this group, send email to dspace-tech@googlegroups.com.
> > Visit this group at https://groups.google.com/group/dspace-tech.
> > For more options, visit https://groups.google.com/d/optout.
> > 
> 
> 
> -- 
> Terry Brady
> Applications Programmer Analyst
> Georgetown University Library Information Technology
> https://github.com/terrywbrady/info
> 425-298-5498 (Seattle, WA)

-- 

Armin Wenz
Universitätsbibliothek Mainz
Leitung Bibliotheksanwendungen
Jakob-Welder-Weg 12
55128 Mainz
Tel.: +49 6131 39-29830
http://www.ub.uni-mainz.de

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.