[dspace-tech] Quality control on authority controlled metadata

2019-02-19 Thread santit
Hi,

I am working on a quality control tool using a curation task that checks 
each authority controlled metadata, reports anomalies and optionally fix 
them.  
Basically, for each MetadataValue that is supposed to be connected with an 
authority (in dspace.cfg), it checks:

1) if a MetadataValue's authority is still known by the authority provider 
(ChoiceAuthority) or if it has been removed from the external authority 
source

2) if MetadataValue's text_value is equals to the value returned by the 
authority provider for a given authority key.

In order to check case 2) I need to retrieve the authority's value, however 
it seems that ChoiceAuthority interface is unable to return that, because 
getLabel() method doesn't return the real authority's value, but the 
"canonical user-visible label" as it says in the docs, which may or may not 
be equals to authority's value. Also getMatches() and getBestMatch() 
methods receive a String parameter and not an authority key.

So, how can I get the authority's value for a given authority key?
Perhaps ChoiceAuthority interface should have a new method, 
getAuthority(String key), which returns a Choice for a given authority key.

Thank you
Santi

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


[dspace-tech] How to invalidate community-list cache when modifying some element of the community tree?

2018-11-20 Thread santit
Hi!

I setted the community-list cache property to 12 hours, but i want to 
invalidate it when creating, deleting or editing any element of the 
community/collection tree.

Has anyone an idea of how can i do it??

I implemented a (poor) solution 
,
 
which includes some changes in the sitemap and administrative.js; if 
clearcache=true parameter is setted in certains urls, then a 
ClearCacheAction is executed.

Any help will be appreciated

Santi



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


[dspace-tech] Re: Problemas para ver archivos de un item

2018-11-07 Thread santit
Hola José,

El problema es que en la base de datos no están guardados los archivos, 
sino que solo los metadatos relacionados con ellos. Los Bitstreams se 
guardan efectivamente en la carpeta assetstore. 
Es por ello que el pg_dump/pgrestore no funciona para importar/exportar 
archivos, para ello se debe copiar el contenido de la carptea assetstore 
desde entorno de produccion al de desarrollo.

Espero que haya servido la ayuda
Santi

El viernes, 26 de octubre de 2018, 13:47:03 (UTC-3), Jose Miguel Ravasi 
escribió:
>
> Estimados
> Tengo una instalación de Dspace 6.2 en Debian.
> Como se trata de una instalación para desarrollo, importe los registros 
> mediante un pg_dump/pgrestore desde una instalación de producción que 
> funciona ok.
> El problema que tengo es que me muestra los archivos de algunos items si y 
> de otros no.
> No se que pasa o porque ocurre este problema
> Lo que me devuelve es 
> java.io.FileNotFoundException: 
> /home/dspace/assetstore/95/20/25/95202521001550446181969613383993908672 (No 
> existe el fichero o el directorio)
>
> Si alguno tiene una respuesta a este problema, se lo voy a agradecer.
> Saludos
>
> José M Ravasi
> Biblioteca FI UNMDP
> rinfi.fi.mdp.edu.ar
>
>

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


[dspace-tech] Re: CAPTCHA/reCAPTCHA for the Feedback form?

2018-11-07 Thread santit
Hi!

At http://digital.cic.gba.gob.ar/, we have implemented a simple math 
captcha on the users feedback form. If you are interested here is the commit 

.
We first used Google's reCAPTCHA but we really didn't need such big tool 
for this, so we implemented our own.
It's a simple javascript function which shows two numbers on the screen and 
ask the user to introduce the sum result.

I hope it helps
Santi


El viernes, 2 de noviembre de 2018, 14:33:07 (UTC-3), Darryl Friesen 
escribió:
>
>
> Has anyone implemented some form of CAPTCHA for use on the Feedback form?  
> We seem to be getting more and more spam this way.
>
> We've used Google's reCAPTCHA on a few other projects and if memory 
> serves, it requires some validation after submission.  So for use with 
> DSpace I assume that would mean changes to some Java classes somewhere, 
> correct?  Has anyone already implemented this, or have any other 
> suggestions on cutting down spam through the feedback mechanism?
>
> Thanks!
>
> - Darryl
>
>  
>
> --
>
> Darryl Friesen, B.Sc., Programmer/Analystdarryl@usask.ca 
> 
>
> Library Systems & Information Technology,http://library.usask.ca/
>
> University of Saskatchewan Library
>
> --
>
> "Go not to the Elves for counsel, for they will say both no and yes"
>
>  
>

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


[dspace-tech] Re: DSpace 6.2 authority key batch import broken?

2018-11-06 Thread santit
Hello Sean,

At our repo, https://digital.cic.gba.gob.ar/, we have the same issue as 
well. Metadata import fails to parse Authority keys.
I did some debugging and apparently the error is here: 
MetadataImport#isAuthorityControlledField() 


private static boolean isAuthorityControlledField(String md)
{
  String mdf = StringUtils.substringAfter(md, ":");
  mdf = StringUtils.substringBefore(mdf, "[");
  return authorityControlled.contains(mdf);
}


The problem is in the line 

  String mdf = StringUtils.substringAfter(md, ":");


That method always returns an empty String as there is no character ":"  in 
the metadata names (the CSV headers).

Has anyone an idea of the purpose of this line or the use of the character 
":" in the metadata names?

Many Thanks,
Santi

El viernes, 23 de febrero de 2018, 14:38:27 (UTC-3), Sean Aery escribió:
>
> Hello all,
>
> At Duke, we are working on bringing up DSpace 6.2 and have encountered 
> what appears to be a bug related to how batch metadata import handles 
> authority (key & confidence) data.
>
> Upon metadata export, we correctly see the following in a CSV for 
> dc.contributor.author 
> with authority:
> Jones, Sharon::333::600
>
> However, upon a CSV import using the same :: delimiters, the authority key 
> and confidence are seemingly being ignored.
>
>- adding authority key & confidence to an existing value that 
>previously had none: no changes detected
>- changing authority key or confidence on an existing value: no 
>changes detected
>- adding a new value with authority key & confidence: the string part 
>is detected and written but the authority data is discarded
>
> This happens whether using the web UI (xmlui) "Import Metadata" link or 
> the CLI metadata-import command. Has anyone else experienced this? Any 
> ideas for workarounds?
>
> Many thanks,
> Sean
>
> ~~
> Sean Aery
> Digital Projects Developer
> Software Development & Integration Services
> Duke University Libraries
> 030U Bostock Library Box 90198
> Durham, NC 27708
> sean...@duke.edu 
>
> ~~
>
>

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