[dspace-tech] Issue with handles without resource

2018-03-08 Thread Arthur H L R S
Greetings,

In my base, I have some handles that have no resource - accessing them will 
show this error: org.apache.cocoon.ResourceNotFoundException: Page cannot 
be found

The problem is: The logs are getting insanelly huge as, I believe, the 
discover is trying to reach them and generating too much erros, like* 2GB 
*console 
log/day.

The erros are pretty similar for all the *handles* wich has no *resource_id*
.

What is the best approach to this problem? deleting the handles manually?


Thanks in advance,



-- 
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] DSpace AIP restore or submit

2018-03-08 Thread Tim Donohue
Hello,

According to that error, the restore or submit process is looking for a
Collection with handle "capes/224578", and cannot find it.   It's hard to
tell exactly what may be the problem here though, as it's unclear what the
ZIP file "projetos_1425.zip" refers to.

It could be that one of the objects (Items) in the ZIP file you are
restoring was either a child of the Collection "capes/224578" or has been
mapped to Collection "capes/224578".  In that scenario, during a restore,
DSpace will attempt to import the Item into that same Collection. If the
Collection does not exist, then you'll see an error like this one.

Also, I'm not sure which of the commands you ran (you listed two).

But, the second command (the -s one) looks incorrect.  According to the
Documentation, using "Submission Mode" *requires* that you specify the new
parent object (via a -p flag):
https://wiki.duraspace.org/display/DSDOC5x/AIP+Backup+and+Restore#AIPBackupandRestore-Thedifferencebetween"Submit"and"Restore/Replace"modes
 If you leave out the -p flag, then a submit request won't know what
Collection you are attempting to resubmit this content into.

The first command (the -r one) looks correct, but in a Restore/Replace,
DSpace will find the parent in the ZIP file's METS document...and it will
attempt to replace that content under the same parent object. So, in this
situation the parent object must exist.

So, I'm not sure I have an answer to your problem, as it's not clear to me
what content is in the ZIP file, how that ZIP file was generated, etc.   If
you have more information to share, please post back to this mailing list,
and we'll be glad to provide more feedback!

- Tim

On Thu, Mar 8, 2018 at 1:42 PM Brendow Adriel  wrote:

> vs: DSPACE 5.6
>
>
> Hello guys,
>
>  i'm trying to restore or submit a collection with all son objects
> (submition content of collection)
>
> dspace packager -r -a -f -t AIP  -e admin
> C:\Users\brendows\Downloads\1425\datas\projetos_1425.zip
>
> dspace packager -s -a -t AIP  -e admin
> C:\Users\brendows\Downloads\1425\dados_comunidades\projetos_1425.zip
>
>
> How i can solve this problem?
>
>
> This may take a while, please check your logs for ongoing status while we
> process each package.
> org.dspace.content.crosswalk.CrosswalkException:
> org.dspace.content.packager.PackageException: Unable to translate Handle to
> Internal ID in group named 'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace
> Object (Handle='hdl:capes/224578') does not exist.
> at
> org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:547)
> at
> org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:447)
> at
> org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193)
> at
> org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1114)
> at
> org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:453)
> at
> org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:228)
> at
> org.dspace.content.packager.AbstractPackageIngester.ingestAll(AbstractPackageIngester.java:145)
> at org.dspace.app.packager.Packager.ingest(Packager.java:515)
> at org.dspace.app.packager.Packager.main(Packager.java:427)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
> at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
> Caused by: org.dspace.content.packager.PackageException: Unable to
> translate Handle to Internal ID in group named
> 'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace Object
> (Handle='hdl:capes/224578') does not exist.
> at
> org.dspace.content.packager.PackageUtils.translateGroupNameForImport(PackageUtils.java:932)
> at
> org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:524)
> ... 14 more
> org.dspace.content.crosswalk.CrosswalkException:
> org.dspace.content.packager.PackageException: Unable to translate Handle to
> Internal ID in group named 'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace
> Object (Handle='hdl:capes/224578') does not exist.
>
> --
> 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 

[dspace-tech] DSpace AIP restore or submit

2018-03-08 Thread Brendow Adriel
vs: DSPACE 5.6


Hello guys,

 i'm trying to restore or submit a collection with all son objects 
(submition content of collection)

dspace packager -r -a -f -t AIP  -e admin  
C:\Users\brendows\Downloads\1425\datas\projetos_1425.zip

dspace packager -s -a -t AIP  -e admin  
C:\Users\brendows\Downloads\1425\dados_comunidades\projetos_1425.zip


How i can solve this problem?


This may take a while, please check your logs for ongoing status while we 
process each package.
org.dspace.content.crosswalk.CrosswalkException: 
org.dspace.content.packager.PackageException: Unable to translate Handle to 
Internal ID in group named 'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace 
Object (Handle='hdl:capes/224578') does not exist.
at 
org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:547)
at 
org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:447)
at 
org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1193)
at 
org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1114)
at 
org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:453)
at 
org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:228)
at 
org.dspace.content.packager.AbstractPackageIngester.ingestAll(AbstractPackageIngester.java:145)
at org.dspace.app.packager.Packager.ingest(Packager.java:515)
at org.dspace.app.packager.Packager.main(Packager.java:427)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:226)
at 
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:78)
Caused by: org.dspace.content.packager.PackageException: Unable to 
translate Handle to Internal ID in group named 
'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace Object 
(Handle='hdl:capes/224578') does not exist.
at 
org.dspace.content.packager.PackageUtils.translateGroupNameForImport(PackageUtils.java:932)
at 
org.dspace.content.crosswalk.METSRightsCrosswalk.ingest(METSRightsCrosswalk.java:524)
... 14 more
org.dspace.content.crosswalk.CrosswalkException: 
org.dspace.content.packager.PackageException: Unable to translate Handle to 
Internal ID in group named 'COLLECTION_hdl:capes/224578_SUBMIT' as DSpace 
Object (Handle='hdl:capes/224578') does not exist.

-- 
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] Re: Database migration DSpace-3.6 to DSpace-5.5

2018-03-08 Thread Tim Donohue
Hello,

While I'm not certain this is the case, it *sounds* like the behavior you
are seeing is related to a full reindex of the site.

After any database upgrade (via `dspace database migrate`), DSpace will
trigger a full reindex of your site the next time you start up Tomcat (or
whatever servlet container you are using). This full reindex may take some
time (minutes or even hours, depending on the amount of content), but it
runs in the backend. A reindex is required for major upgrades, as often the
database structure changes, and your search/browse indexes then need to be
updated based on those changes.

You may wish to check your DSpace log files to see if you are seeing
messages related to individual Items being "indexed".  If so, this is the
reindex processing each file, and once it is complete all your records
should reappear in the search/browse.  While it is reindexing you still can
use the site, but not all records may appear (they each will appear as they
are reindexed).

And just to clarify, you no longer need to upgrade from one major version
to the next.  So, you should not need to upgrade from DSpace 3 to 5 to 6.
You can now *directly* upgrade from any prior release to DSpace 6 (even
from DSpace 1.0 -> 6.0 would work).  The only requirement is that you need
to make sure your database backend is upgraded first, to a compatible
release.  So, for example, if you are running a very old version of
Postgres or Oracle, you'd want to upgrade that database backend to a recent
version (as required by DSpace 6), and then you should be able to upgrade
directly to DSpace 6 per the upgrade instructions at:
https://wiki.duraspace.org/display/DSDOC6x/Upgrading+DSpace

Hopefully that helps! If you have further questions, feel free to ask them
on this list.

Tim

On Thu, Mar 8, 2018 at 12:04 PM  wrote:

> Interesting... It looks like the number of records has updated itself
> since yesterday.
> Perhaps the automatic database migration is working, just slowly. I'll
> watch it.
>
>
> On Wednesday, March 7, 2018 at 3:17:03 PM UTC-9, wlruth...@alaska.edu
> wrote:
>>
>>
>> While upgrading our repository we initially built DSpace-6.0 but it was
>> unable to fully ingest
>> the legacy postgres database used by the older DSpace-3.1 system. We were
>> told we'd need
>> to first install DSpace-3.x, upgrade that to DSpace-5.x, then upgrade to
>> DSpace-6.0.
>>
>> So we built a DSpace-3.6 system and it was able to read the DSpace-3.1
>> database. We then
>> built a DSpace-5.5 system with a copy of the entire database. All seemed
>> well at first but on
>> closer inspection it's doing the same thing as our original DSpace-6.0
>> system - ignoring most
>> of the database. The manual says DSpace will automatically fix the
>> database or that the
>> 'dspace database migrate' command will accomplish this. Neither seems to
>> have had any
>> effect. I'm scanning through logfiles to see if it silently told me that
>> something went wrong.
>>
>> I know other DSpace users have successfully upgraded from DSpace-3.x to
>> DSpace-6.0 so
>> that's encouraging. Am I missing a step? Do I have install DSpace-4.x
>> before DSpace-5.x?
>>
>> Thank you for any help you can provide.
>>
>>
>>
>> --
> 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.
>
-- 
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

-- 
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.


[dspace-tech] Re: Database migration DSpace-3.6 to DSpace-5.5

2018-03-08 Thread wlrutherford
Interesting... It looks like the number of records has updated itself since 
yesterday.
Perhaps the automatic database migration is working, just slowly. I'll 
watch it.


On Wednesday, March 7, 2018 at 3:17:03 PM UTC-9, wlruth...@alaska.edu wrote:
>
>
> While upgrading our repository we initially built DSpace-6.0 but it was 
> unable to fully ingest
> the legacy postgres database used by the older DSpace-3.1 system. We were 
> told we'd need
> to first install DSpace-3.x, upgrade that to DSpace-5.x, then upgrade to 
> DSpace-6.0.
>
> So we built a DSpace-3.6 system and it was able to read the DSpace-3.1 
> database. We then
> built a DSpace-5.5 system with a copy of the entire database. All seemed 
> well at first but on
> closer inspection it's doing the same thing as our original DSpace-6.0 
> system - ignoring most
> of the database. The manual says DSpace will automatically fix the 
> database or that the
> 'dspace database migrate' command will accomplish this. Neither seems to 
> have had any
> effect. I'm scanning through logfiles to see if it silently told me that 
> something went wrong.
>
> I know other DSpace users have successfully upgraded from DSpace-3.x to 
> DSpace-6.0 so
> that's encouraging. Am I missing a step? Do I have install DSpace-4.x 
> before DSpace-5.x?
>
> Thank you for any help you can provide.
>
>
>
>

-- 
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] DSpace java.lang.NullPointerException on DescribeStep.readText()

2018-03-08 Thread Leonardo Piccioni de Almeida
I've solved it. It was caused by a kind of typo: one of the fields had two 
 tags, instead of one  and one , 
as noted in metadata registry.

Em quinta-feira, 8 de março de 2018 12:06:42 UTC-3, Michael Plate escreveu:
>
> Am 08.03.2018 um 15:48 schrieb Leonardo Piccioni de Almeida: 
> > I'm configuring a DSpace XMLUI installation, adding some metadata 
> > (custom namespace) and editing the input form (adding and removing 
> fields). 
> […] 
>
> looks like some fields are not in the metadata registry. 
>
> CU 
>
> Michael 
>
>
>

-- 
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.


[dspace-tech] Re: 8080

2018-03-08 Thread Facundo Adorno
Querras decir www.ejemplo.cl:8080? Si es así, habría que configurar la 
propiedad *dspace.baseUrl *del archivo local.cfg (si estas usando alguna 
version 6_x de DSpace) o en el archivo  build.properties (si estas usando 
alguna versión 5_x), y luego actualizar haciendo un `ant update` si 
instalaste DSpace utilizando el código fuente. 

En cuanto a las publicaciones ya creadas creo que no tendría que afectar, 
excepto si alguien quiere acceder utilizando un link viejo de una 
publicacion que tiene incluido el :8080.

Saludos

El miércoles, 7 de marzo de 2018, 17:56:08 (UTC-3), LinKeRo GM escribió:
>
> buenas tardes, como puedo quitar el 8080 en la url??? www.ejemplo.cl/8080 
> que quede así -> www.ejemplo.cl
>
> , ¿si le quito el 8080 afectara en las publicaciones ya creadas 
> anteriormente?
>

-- 
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] DSpace java.lang.NullPointerException on DescribeStep.readText()

2018-03-08 Thread Michael Plate
Am 08.03.2018 um 15:48 schrieb Leonardo Piccioni de Almeida:
> I'm configuring a DSpace XMLUI installation, adding some metadata
> (custom namespace) and editing the input form (adding and removing fields).
[…]

looks like some fields are not in the metadata registry.

CU

Michael


-- 
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.


smime.p7s
Description: S/MIME Cryptographic Signature


[dspace-tech] DSpace java.lang.NullPointerException on DescribeStep.readText()

2018-03-08 Thread Leonardo Piccioni de Almeida
I'm configuring a DSpace XMLUI installation, adding some metadata (custom 
namespace) and editing the input form (adding and removing fields).

When I try to save an item, the following exception is raised (edited, 
since actual stacktrace is 220 lines long):

Java stacktrace: java.lang.NullPointerException
at org.dspace.submit.step.DescribeStep.readText(DescribeStep.java:691)
at 
org.dspace.submit.step.DescribeStep.doProcessing(DescribeStep.java:285)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
at 
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
at 
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2394)
at 
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
at 
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at 
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at 
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:160)

Please notice that I haven't modified any Java class directly.

More info:

DSpace version: 6.2
SCM revision: e5cb62997adf56ef5235418cd0856f1f8724afc7
SCM branch: UNKNOWN
OS: Linux(amd64) version 4.13.0-36-generic
Discovery: enabled.
JRE: Oracle Corporation version 1.8.0_151
Tomcat version: 9.0.5.0
Ant version: Apache Ant(TM) version 1.9.6 compiled on July 8 2015
Maven version: 3.3.3

-- 
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.


[dspace-tech] Solr doesn't show all values in author facet

2018-03-08 Thread Fabrizio Mirenghi
Hi,
I'm using DSpace 4.x and have created a new facet for Authors, combining 6 
metadata as follows (extract from discovery.xml):




dim.autoreArch
dim.facetAuthorImg
dim.facetAuthorDoc
dim.facetAuthorVideo
dim.facetAuthorAudio
dim.facetAuthorInter
dim.autoreBeneNaturalistico






>From a couple of days the system doesn't show all the values for 
dim.autoreArch (btw it's the metadata with most items, at least 1400+ items 
and few authors).

>From the log it seems all correct. I rebuilded the index but nothing 
happened. What can I do to have all the Authors back?

Thanks in advance 

-- 
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.


[dspace-tech] Export Issue

2018-03-08 Thread Raed Ayyad
Dears, 

I'm trying to export the items from DSpace and migrate it to the latest 
release of DSpace but I'm facing an issue, the bitstream path is not found 
(Command Prompt Export ) but in JSPUI, it's looking fine and I can view the 
files. 

any idea? 







-- 
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.


[dspace-tech] Re: Mirage2: How to change navigation sidebar menu order?

2018-03-08 Thread Anis
I think the relevant parts are at 
dspace-xmlui-mirage2/src/main/webapp/xsl/core/navigation.xsl and 
dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/browseArtifacts/Navigation.java


- Anis

On Wednesday, March 7, 2018 at 1:57:37 PM UTC+2, Christian Loeschen wrote:
>
> Dear all, 
>
> can someone please point me to the code where the navigation sidebar at 
> the right handside of xmlui-mirage2 is assembled? I'd like to change the 
> order of the sidebar menus for authenticated users (default: Search, 
> Browse, My Account, (Context,) RSS) to "My Account" and "Context" on top 
> of the sidebar. 
>
> I think it improves usability for users to have the personal and 
> contextual menus more in focus instead of the search menu on top. In the 
> default layout the personal and contextual menus are imho way too far 
> down, which makes an intuitive use of the website unnecessarily difficult. 
>
> Thanks for help and/or opinions. :) 
> Christian 
>
>
> - 
> Christian Loeschen, Dipl.-Ing. (FH) 
> Wiss. Mitarbeiter/Research Associate 
>
> Technische Universität Dresden 
> Center for Information Services and HPC (ZIH) 
> Distributed and Data Intensive Computing 
>
> 01062 Dresden (Germany) 
> Phone: +49 351 463-42330 
> Fax :+49 351 463-37773 
> E-Mail: christian...@tu-dresden.de  
> - 
>
>

-- 
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.


[dspace-tech] SOLR doesn't show all values in Author facet

2018-03-08 Thread Fabrizio Mirenghi
Hi,
I use DSpace 4.x and I have created a customized facet for the authors 
using the values of 6 metadata (following is the extract from my 
discovery.xml)





dim.autoreArch
dim.facetAuthorImg
dim.facetAuthorDoc
dim.facetAuthorVideo
dim.facetAuthorAudio
dim.facetAuthorInter
dim.autoreBeneNaturalistico






It all went well till a couple of days ago when DSpace stopped showing the 
values for dim.autoreArch. Btw this metadata contains few authors but with 
lots of items (1400+).

I did a rebuild of the index but nothing has changed. Is there a way to 
solve the problem and have all the authors again?

Thanks

-- 
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.


[dspace-tech] Re: Byte range requests in DSpace5

2018-03-08 Thread Anis
Quick follow up.

I want to clarify that this is concerning xmlui, if somebody is searching 
for a solution to this. I found out that byte-range requests were disabled 
in DSpace5 in 
here 
https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java#L646

Uncommenting didn't make it work, but after a bit of digging I got it to 
work by modifying the code to this

response.setHeader("Accept-Ranges", "bytes");
String ranges = request.getHeader("Range");
if (ranges != null)
{
try
{
ranges = ranges.substring(ranges.indexOf('=') + 1);
byteRange = new ByteRange(ranges);
}
catch (NumberFormatException e)
{
byteRange = null;
if (response instanceof HttpResponse)
{
// Respond with status 416 (Request range not
// satisfiable)
response.setStatus(416);
}
}
}

try
{
if (byteRange != null)
{
ByteRange actualByteRange = byteRange;
String entityLength;
String entityRange;
if (this.bitstreamSize != -1)
{
if(ranges.equals("0-")){
entityLength = "" + this.bitstreamSize;
actualByteRange = byteRange.intersection(new ByteRange(0, 
99));
entityRange = actualByteRange.toString();
} else {
entityLength = "" + this.bitstreamSize;
actualByteRange = byteRange.intersection(new ByteRange(0, 
this.bitstreamSize - 1));
entityRange = actualByteRange.toString();
}
}
else
{
entityLength = "*";
entityRange = byteRange.toString();
}

response.setHeader("Content-Range", "bytes " + entityRange + "/" + 
entityLength);
if(actualByteRange.length() != -1) {
response.setHeader("Content-Length", 
String.valueOf(actualByteRange.length()));
}

if (response instanceof HttpResponse)
{
// Response with status 206 (Partial content)
response.setStatus(206);
}


- Anis

On Wednesday, March 7, 2018 at 9:20:27 AM UTC+2, Anis wrote:
>
> Thank you! I'll look into this and test for possible side effects.
>
>
> On Tuesday, March 6, 2018 at 4:28:06 PM UTC+2, Mark H. Wood wrote:
>>
>> On Tuesday, March 6, 2018 at 3:16:37 AM UTC-5, Anis wrote:
>>>
>>> We're planning to add very simple video streaming support to our UI, by 
>>> basically adding a video tag if the file format is right. Now this simple 
>>> change has hit a pretty annoying wall, as the streaming works neatly in 
>>> every browser except Safari, because it requires byte range requests from 
>>> the server.
>>>
>>> I noticed that this is implemented in DSpace7 (
>>> https://github.com/DSpace/DSpace/pull/1884), but the architectural 
>>> changes are so big, that I'm not quite sure where the relevant parts would 
>>> be in the DSpace5 source. So quite simply I'm asking, where should I start 
>>> looking into, in the source, to backport this to 5?
>>>
>>
>>
>> In XMLUI byte ranges are explicitly disabled in 
>> dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/ConcatenationReader.java
>>  
>> around line 68.
>>
>> I vaguely recall that DSpace did support byte-range requests at one time 
>> but that it was taken out to fix some other problem.  But my memory may be 
>> faulty. 
>>
>

-- 
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] Browsing behaviour

2018-03-08 Thread Claudia Jürgen

Hello Stefan,

this is normal behavior, it jumps to the point in the index not listing
all the authors with a certain letter.
So if there are no entries in the index for a letter you just see the next.

Sunny greetings

Claudia



Am 08.03.2018 um 10:54 schrieb Stefan Fritzsche:

Dear Members,

i would like to ask some questions about the browsing functionality
and its behaviour on this list.
My main concern is whether certain behavior of the browsing
functionality has been consciously implemented in this way or whether
it is rather a bug.

I expected the following behavior:
When I click on a letter I want to see only authors that begin with
that letter.
If no author exists with this letter, I expect an empty list.

My DevVM uses the following software versions:
- DSpace 6.3 Snapshot
- SLES 12
- Tomcat 7.0.85
- Postgres 9.6.4

In my test instances there are submissions with the authors
- Funke, Hans
- Hoch, Lutz
- Insel, Gustav
- Roller, Thomas
- Römer, Bernd

"Hoch, Lutz" and "Insel, Gustav" are authors of a submission.
"Roller, Thomas" and "Funke, Hans" are also authors of a submission.

1) When a user clicks on Browse by author, he or she will first see
all authors in alphabetical order. If the user then chooses the list
of authors starting with 0-9, the same list will continue to be
displayed. Shouldn't an empty list be displayed here?

2)  If the user then clicks on the letter "H" the list will be displayed.
- Hoch, Lutz [1]
- Insel, Gustav [1]
- Roller, Thomas [1]
- Römer, Bernd [1]
Here I would expect only the author "Hoch, Lutz" as a result.

3) If the user clicks on the letter "M", the list will appear.
- Roller, Thomas [1]
- Römer, Bernd [1]
I'd expect an empty list here, too.

4) Then the letter "D" was selected and the list appears.
- Funke, Hans [1]
- Hoch, Lutz [1]
- Insel, Gustav [1]
- Roller, Thomas [1]
- Römer, Bernd [1]
I would expect an empty list.

5) The user then clicks on the letter "I" to get the list
- Insel, Gustav [1]
- Roller, Thomas [1]
- Römer, Bernd [1]
I was expecting the list
- Insel, Gustav [1]
here

This game can be continued as you wish. Usually I rarely get the
expected result.
Is this behavior correct or are these rather bugs in the browser
classes (api+xmlui)?

I look forward to your answers.

Regards,
Stefan



--
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.

--
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.


[dspace-tech] Browsing behaviour

2018-03-08 Thread Stefan Fritzsche

Dear Members,

i would like to ask some questions about the browsing functionality and 
its behaviour on this list.
My main concern is whether certain behavior of the browsing 
functionality has been consciously implemented in this way or whether it 
is rather a bug.


I expected the following behavior:
When I click on a letter I want to see only authors that begin with that 
letter.

If no author exists with this letter, I expect an empty list.

My DevVM uses the following software versions:
- DSpace 6.3 Snapshot
- SLES 12
- Tomcat 7.0.85
- Postgres 9.6.4

In my test instances there are submissions with the authors
- Funke, Hans
- Hoch, Lutz
- Insel, Gustav
- Roller, Thomas
- Römer, Bernd

"Hoch, Lutz" and "Insel, Gustav" are authors of a submission.
"Roller, Thomas" and "Funke, Hans" are also authors of a submission.

1) When a user clicks on Browse by author, he or she will first see all 
authors in alphabetical order. If the user then chooses the list of 
authors starting with 0-9, the same list will continue to be displayed. 
Shouldn't an empty list be displayed here?


2)  If the user then clicks on the letter "H" the list will be displayed.
- Hoch, Lutz [1]
- Insel, Gustav [1]
- Roller, Thomas [1]
- Römer, Bernd [1]
Here I would expect only the author "Hoch, Lutz" as a result.

3) If the user clicks on the letter "M", the list will appear.
- Roller, Thomas [1]
- Römer, Bernd [1]
I'd expect an empty list here, too.

4) Then the letter "D" was selected and the list appears.
- Funke, Hans [1]
- Hoch, Lutz [1]
- Insel, Gustav [1]
- Roller, Thomas [1]
- Römer, Bernd [1]
I would expect an empty list.

5) The user then clicks on the letter "I" to get the list
- Insel, Gustav [1]
- Roller, Thomas [1]
- Römer, Bernd [1]
I was expecting the list
- Insel, Gustav [1]
here

This game can be continued as you wish. Usually I rarely get the 
expected result.
Is this behavior correct or are these rather bugs in the browser classes 
(api+xmlui)?


I look forward to your answers.

Regards,
Stefan

--
Stefan Fritzsche
Fachinformatiker/digitale Archivierung

Technische Universität Dresden
Zentrum für Informationsdienste und Hochleistungsrechnen
Abt: Operative Prozesse und Systeme
01062 Dresden

Tel.: +49 351 463-33212
E-Mail: stefan.fritzs...@tu-dresden.de

--
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.