[dspace-tech] Re: How to use External Links instead of Bitstreams? (Just like OAI with metadata-only option)

2019-10-04 Thread Bruno Nocera Zanette
Re-Posting my answer on dspace-commuity forum here just to give my final 
solution.

Based on your answers i've discovered that ORE is nothing more than a 
special XML bitstream, that define bitstreams as links. So i decided to 
write a Python class to create a "Simple Format Archive" packager using 
OAI. The packager receives a base URL and a handle and then make requests 
to OAI to gather item's metadata (DIM) and item's ORE information (ORE) and 
create a ZipFile with those infos. This ZipFile is ready to be uploaded to 
a repository using "Batch Import (ZIP)" option.

The code is in very early-development stage but it already does the job. 
Later it can become a real python extension, to accept a list of handles 
and different base url at once.

I've deployed it on heroku free plan just to test it. It can be accessed at:
https://dcorepackager.herokuapp.com/

And the source-code is stored at:
https://github.com/BrunoNZ/dc-ore-packager

Feel free to test it, and please let me know of any bug or suggestions.


Em sexta-feira, 20 de setembro de 2019 20:57:04 UTC-3, Bruno Nocera Zanette 
escreveu:
>
> Hey, também sou brasileiro!
> Eu ajudo na manutenção do repositório digital da UFPR.
> Só vou responder em inglês para respeitar as regras da comunidade.
>
> Thanks for the answer!
> I'm trying to find a way to that without changing the theme, because it's 
> necessary only for one small community in our repository. But if i can't 
> find how to do that i'll study your modifications to do the same. It seems 
> to work pretty well!! 
>
> Em quinta-feira, 19 de setembro de 2019 23:12:22 UTC-3, Fabricio Costa 
> escreveu:
>>
>> Hi, Bruno.
>>
>> We did that in JusLaboris (Brazil) by adding a new condition to Mirage2 
>> theme, item-view.xsl
>>
>> For example, if an item doesn't have a bitstream, the thumbnail gets its 
>> link from a given metadata. In our case, first "dc.relation.uri". 
>> Additionally, a message with the same link appears below thumbnail, where 
>> bitstream link usually is:
>>
>> https://hdl.handle.net/20.500.12178/32260
>>
>> Fabricio Costa
>>
>>

-- 
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/d017c259-e71c-4d1e-a33b-3799e26f77e8%40googlegroups.com.


[dspace-tech] Re: How to use External Links instead of Bitstreams? (Just like OAI with metadata-only option)

2019-09-20 Thread Bruno Nocera Zanette
Hey, também sou brasileiro!
Eu ajudo na manutenção do repositório digital da UFPR.
Só vou responder em inglês para respeitar as regras da comunidade.

Thanks for the answer!
I'm trying to find a way to that without changing the theme, because it's 
necessary only for one small community in our repository. But if i can't 
find how to do that i'll study your modifications to do the same. It seems 
to work pretty well!! 

Em quinta-feira, 19 de setembro de 2019 23:12:22 UTC-3, Fabricio Costa 
escreveu:
>
> Hi, Bruno.
>
> We did that in JusLaboris (Brazil) by adding a new condition to Mirage2 
> theme, item-view.xsl
>
> For example, if an item doesn't have a bitstream, the thumbnail gets its 
> link from a given metadata. In our case, first "dc.relation.uri". 
> Additionally, a message with the same link appears below thumbnail, where 
> bitstream link usually is:
>
> https://hdl.handle.net/20.500.12178/32260
>
> Fabricio Costa
>
>

-- 
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/67e1b5fb-f43b-4955-91e3-6a132606cf3f%40googlegroups.com.


[dspace-tech] How to use External Links instead of Bitstreams? (Just like OAI with metadata-only option)

2019-09-18 Thread Bruno Nocera Zanette
Hello, folks!

How can i manually add external links instead of uploading files?
I want to add some itens to an existing collection that only have metadata 
and to use external links instead of uploading a new bitstream. Most of 
these are links to bitstreams of other instances of Dspace.
It is the exact same thing that happens when using OAI Harvester with 
metadata-only option activated, but without having to configure an entire 
collection with OAI.

I've found in another post of "Dspace Community" 
 how 
to configure Dspace to not require to upload a bitstream, but it doesn't 
fully solve my question.

Is it possible to do it?

Thanks!

-- 
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/54c1ef1b-1637-4670-b109-403a2e4c2397%40googlegroups.com.


Re: [dspace-tech] Show and tell: DSpace Statistics API

2018-11-05 Thread Bruno Nocera Zanette
Nice job, Alan!
It may be very handy for our research group and the systems we mantain.
Thanks!
Em qui, 1 de nov de 2018 às 11:40, Alan Orth  escreveu:
>
> Dear list,
>
> We have recently been doing some integration with our DSpace repository using 
> the REST API. Eventually we realized that it would be nice to be able to use 
> the item views and downloads from the Solr statistics core, but those are not 
> exposed by any externally accessible APIs. I wrote a small, lightweight 
> Python-based tool that runs locally on the DSpace server to periodically 
> index the Solr statistics core and expose the statistics via a simple API. 
> And it's fast!
>
> The tool is called "dspace-statistics-api" and you can find the source code, 
> documentation, and deployment instructions on GitHub:
>
> https://github.com/ilri/dspace-statistics-api
>
> You can see it in running on the public development instance of our DSpace 
> repository:
>
> https://dspacetest.cgiar.org/rest/statistics
>
> I hope this is useful to some people and I would be very happy for comments, 
> suggestions, and pull requests (see my list of TODOs in the project).
>
> Thank you!
>
> --
> Alan Orth
> alan.o...@gmail.com
> https://picturingjordan.com
> https://englishbulgaria.net
> https://mjanja.ch
> "In heaven all the interesting people are missing." ―Friedrich Nietzsche
>
> --
> 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.



-- 
Bruno Nocera Zanette
+55 41 2-2508

-- 
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] DSpace Deployment Survey

2016-11-24 Thread Bruno Nocera Zanette
Very nice indeed!!!

Surprisingly a high number of REST interfaces in use.

Em qui, 24 de nov de 2016 às 10:03, Alan Orth 
escreveu:

> I'm very happy with the results so far. We have twenty nine (29)
> responses, and the results are already very informative. First off, most
> respondents are running DSpace 5.x with the XMLUI. There are some
> stragglers running older versions, as well as a handful of early adopters
> of version 6.x.
>
> Infrastructure wise, an overwhelming percent of the responses so far are
> running:
> - Linux (Ubuntu, Debian, RedHat-based distributions, in that order of
> popularity)
> - PostgreSQL (9.x and 8.x)
> - Tomcat (7.x and a few 5.x, 6.x, and 8.0.x)
> - As for Java, there is a pretty even split between Oracle and
> OpenJDK, mostly version 7 and 8
>
> The comments section is also quite informative. Thanks to the people who
> left links to their institutional repositories, as well as their respective
> GitHub repositories. Keep the responses coming! Eventually I will send the
> raw results to the mailing list, then someone can do some proper data
> cleanup / analysis.
>
> Cheers,
>
> On Wed, Nov 23, 2016 at 12:02 PM Hilton Gibson 
> wrote:
>
> The results so far support:
> http://wiki.lib.sun.ac.za/index.php/SUNScholar/Reference_Architecture
>
>
> *Hilton Gibson*
> Stellenbosch University Library
> *http://orcid.org/-0002-2992-208X
> <http://orcid.org/-0002-2992-208X>*
>
>
> On 20 November 2016 at 09:27, Alan Orth  wrote:
>
> Hello, DSpace users!
>
> In an effort to understand the diverse range of environments that people
> run DSpace in, some dspace-tech community members and I put together a
> small survey and would like to ask you to please consider taking a few
> minutes to fill it out. The questions aim to capture technical details like
> the DSpace version, operating system, Java version, etc of your deployments.
>
> The survey is anonymous and the results will be shared publicly to this
> list so we can all get better insights about the DSpace ecosystem.
>
>
> https://docs.google.com/forms/d/e/1FAIpQLSf92oeigO05VIm3OzS8fjGX3JUF54LHjmLIyLoOMUPnZqgxBA/viewform
>
> Please answer the questions based on your primary, production DSpace
> instance. If you have multiple instances, you can either take the survey
> twice, or adjust your answers—where possible—to indicate both instances.
>
> Thank you for your time,
>
> --
>
> Alan Orth
> alan.o...@gmail.com
> https://englishbulgaria.net
> https://alaninkenya.org
> https://mjanja.ch
>
> --
> 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.
>
> --
>
> Alan Orth
> alan.o...@gmail.com
> https://englishbulgaria.net
> https://alaninkenya.org
> https://mjanja.ch
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] dspace6 xmlui Error - 404

2016-11-21 Thread Bruno Nocera Zanette
Ahmed,
First of all, did you add "8080" to the address? If you didn't alter
tomcat's default options the correct address is something like:
http://[HOSTNAME]:8080/[INTERFACE]
(or https://[HOSTNAME]:8443/[INTERFACE] for REST-API)

So, if you're running it on localhost and you're trying to access xmlui
interface, the address is:
http://localhost:8080/xmlui

Besides that, it all depends on how you configured tomcat. If that's the
case, post your tomcat's config (remember to remove sensitive informations)
that we will try to figure it out.


Em seg, 21 de nov de 2016 às 12:15, Ahmed Maher 
escreveu:

> Hi All,
> i installed Dspace-6 on debian-8 jessi
> and xmlui didn't start or deployed , only /solr deployed sucessfully
> i using openjdk1.8 , tomcat8 , postgresql 9.4
>
> all installation steps successfully completed
> when browse to /xmlui  said 404 error
> the tomcat error file didn't contains error messages
>
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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 deployment environment survey?

2016-11-17 Thread Bruno Nocera Zanette
do is to make
> >>>>> them resilient against attacks, not to pretend they're not exposed.
> >>>>> Second, there must be an option for the administrator not to expose
> >>>>> this information (not all repositories are production and public
> >>>>> installations).
> >>>>
> >>>> Well,  I understood Alan´s proposal as exposing the software stack of
> the
> >>>> Dspace installations, not only Dspace interfaces  and telling the
> world
> >>>> that an installation has a operating system or a database some years
> old is
> >>>> quite sensible (IMHO), although a competent hacker could figure out a
> lot of
> >>>> things about an installation without our help :-)
> >>>>
> >>>> and of course our first priority has to be
> >>>>>
> >>>>> make them resilient against attacks
> >>>>
> >>>> But not every installation has the time or resources to keep its
> >>>> installation updated and safe. That is the reality...
> >>>> Regards
> >>>> Emilio
> >>>>
> >>>>
> >>>>
> >>>>> And finally, this is supposed to actually help security. You'll be
> >>>>> able to register your instance (just once) along with your email
> >>>>> address and then get a custom-tailored notification that your
> >>>>> particular installation is affected by a security bug because you're
> >>>>> using version X.Y with module Z.
> >>>>>
> >>>>>
> >>>>> Regards,
> >>>>> ~~helix84
> >>>>>
> >>>>> Compulsory reading: DSpace Mailing List Etiquette
> >>>>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >>>>>
> >>>>
> >>>> --
> >>>> 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.
> >>>
> >>>
> >>>
> >>> --
> >>> Alan Orth
> >>> alan.o...@gmail.com
> >>> https://englishbulgaria.net
> >>> https://alaninkenya.org
> >>> https://mjanja.ch
> >>> "In heaven all the interesting people are missing." ―Friedrich
> Nietzsche
> >>> GPG public key ID: 0x8cb0d0acb5cd81ec209c6cdfbd1a0e09c2f836c0
> >>>
> >>> --
> >>> 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.
> >>
> >
> >
> >
> > 
> > Monika Mevenkamp
> > mo.me...@gmail.com
> >
> > http://mo-meven.tumblr.com/
> > http://mcmprogramming.com/mo.meven/
> >
> >
> >
> > --
> > 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.
>
>
>
> --
> Alan Orth
> alan.o...@gmail.com
> https://englishbulgaria.net
> https://alaninkenya.org
> https://mjanja.ch
> "In heaven all the interesting people are missing." ―Friedrich Nietzsche
> GPG public key ID: 0x8cb0d0acb5cd81ec209c6cdfbd1a0e09c2f836c0
>
> --
> 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.
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] Need help in database migration from 5x to 6.0

2016-11-09 Thread Bruno Nocera Zanette
lyway migration error occurred
> at
> org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:666)
> at
> org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:574)
> at
> org.dspace.storage.rdbms.DatabaseUtils.main(DatabaseUtils.java:222)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
> at
> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
> Caused by: org.flywaydb.core.internal.dbsupport.FlywaySqlScriptException:
> Migration V6.0_2015.03.07__DS-2701_Hibernate_migration.sql failed
> -
> SQL State  : 23505
> Error Code : 0
> Message: ERROR: could not create unique index
> "epersongroup2eperson_pkey"
>   Detail: Key (eperson_group_id,
> eperson_id)=(550bb4c5-7f50-4db7-89ad-e7d6b11ab3c1,
> 505e83c3-1a4f-446e-9934-f5fcba38a76c) is duplicated.
> Location   :
> org/dspace/storage/rdbms/sqlmigration/postgres/V6.0_2015.03.07__DS-2701_Hibernate_migration.sql
> ([dspace]\lib\dspace-api-6.0.jar!\org\dspace\storage\rdbms\sqlmigration\postgres\V6.0_2015.03.07__DS-2701_Hibernate_migration.sql
> )
> Line   : 114
> Statement  : ALTER TABLE EPersonGroup2EPerson add primary key
> (eperson_group_id,eperson_id)
>
> at
> org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:117)
> at
> org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:71)
> at
> org.flywaydb.core.internal.command.DbMigrate.doMigrate(DbMigrate.java:352)
> at
> org.flywaydb.core.internal.command.DbMigrate.access$1100(DbMigrate.java:47)
> at
> org.flywaydb.core.internal.command.DbMigrate$4.doInTransaction(DbMigrate.java:308)
> at
> org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
> at
> org.flywaydb.core.internal.command.DbMigrate.applyMigration(DbMigrate.java:305)
> at
> org.flywaydb.core.internal.command.DbMigrate.access$1000(DbMigrate.java:47)
> at
> org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:230)
> at
> org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:173)
> at
> org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
> at
> org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:173)
> at org.flywaydb.core.Flyway$1.execute(Flyway.java:959)
> at org.flywaydb.core.Flyway$1.execute(Flyway.java:917)
> at org.flywaydb.core.Flyway.execute(Flyway.java:1373)
> at org.flywaydb.core.Flyway.migrate(Flyway.java:917)
> at
> org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:655)
> ... 8 more
> Caused by: org.postgresql.util.PSQLException: ERROR: could not create
> unique index "epersongroup2eperson_pkey"
>   Detail: Key (eperson_group_id,
> eperson_id)=(550bb4c5-7f50-4db7-89ad-e7d6b11ab3c1,
> 505e83c3-1a4f-446e-9934-f5fcba38a76c) is duplicated.
> at
> org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2458)
> at
> org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2158)
> at
> org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:291)
> at
> org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:432)
> at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:358)
> at
> org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:305)
> at
> org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:291)
> at
> org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:269)
> at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:265)
> at
> org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)
> at
> org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)
> at
> org.flywaydb.core.internal.dbsupport.JdbcTemplate.executeStatement(JdbcTemplate.java:238)
> at
> org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:114)
> ... 24 more
>
>
> Please help on how to resolve this error.
>
> Thanks in advance.
>
> euler
>
> -

Re: [dspace-tech] Cannot access SOLR remotely

2016-11-08 Thread Bruno Nocera Zanette
Hmm.. It's a long time since i last did it and i don't remember the details
anymore. But i remember that i've followed the wiki and i also struggled
with this config files, and that in the end was just some minor details.

Later today i'll give it a try on my local instance to see if i get any
luck.
For now, let's see if anyone have more knowledge about it.

Em ter, 8 de nov de 2016 às 13:29, Donald Bynum  escreveu:

> Sorry, I forgot to add...
>
> I have also tried putting the following into the
> conf/Catalina/localhost/solr.xml  file and restart Tomcat:
>
> 
>
> 
>  allow="127\.0\.0\.1" />
>
>  value="false" override="false" />
> 
>
> The result is the same, no access from anywhere (including localhost)
>
> Regards,
>
> Don.
>
> On Mon, Nov 7, 2016 at 2:31 PM, Bruno Nocera Zanette <
> brunonzane...@gmail.com> wrote:
>
> Donald,
> This is the expected behavior for SOLR, for security reasons.
>
> Take a look at this wiki to learn how to bypass this restriction:
>
> https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Bypassinglocalhostrestrictiontemporarily
>
> Em seg, 7 de nov de 2016 às 16:33, Donald Bynum 
> escreveu:
>
> I have DSpace 5.5 on Tomcat with Oracle as the DB.  I want to run some
> SOLR queries from a remote client, i.e. NOT running on the Tomcat server as
> localhost.  I need to do this in order to create some remote reporting
> functions.  Accessing SOLR on the Tomcat server as localhost is just fine:
> http://localhost:8080/solr/...
>
> When I try the same from a remote client:
> http://myserver.thing.org:8080/solr... I get a 403 error - "*Access to
> the specified resource has been forbidden."*
>
> Any guidance here would be much appreciated.
>
> Regards,
>
> Don.
>
>
> --
> 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.
>
> --
> Bruno Nocera Zanette
> +55 41 9992-2508
>
>
> --
>
>
> Donald E. Bynum
> byn...@gmail.com
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] Cannot access SOLR remotely

2016-11-07 Thread Bruno Nocera Zanette
Donald,
This is the expected behavior for SOLR, for security reasons.

Take a look at this wiki to learn how to bypass this restriction:
https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Bypassinglocalhostrestrictiontemporarily

Em seg, 7 de nov de 2016 às 16:33, Donald Bynum  escreveu:

> I have DSpace 5.5 on Tomcat with Oracle as the DB.  I want to run some
> SOLR queries from a remote client, i.e. NOT running on the Tomcat server as
> localhost.  I need to do this in order to create some remote reporting
> functions.  Accessing SOLR on the Tomcat server as localhost is just fine:
> http://localhost:8080/solr/...
>
> When I try the same from a remote client:
> http://myserver.thing.org:8080/solr... I get a 403 error - "*Access to
> the specified resource has been forbidden."*
>
> Any guidance here would be much appreciated.
>
> Regards,
>
> Don.
>
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] add new field on request form

2016-11-06 Thread Bruno Nocera Zanette
Have you tried this?
https://wiki.duraspace.org/plugins/servlet/mobile#content/view/19006029

It should work for jspui and xmlui (both mirage themes). You just need to
edit "input-forms.xml" and then restart Tomcat.

Also, please, don't use others threads with different subjects to make your
questions.

Em Dom, 6 de nov de 2016 06:51, NAUSS Repository 
escreveu:

> i need  to add new field on request form dspace 5.5 with Mirage2 
> please help
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] problem user dspace

2016-11-06 Thread Bruno Nocera Zanette
Yeah, you could do something like that as long as you set the right
permissions for DSpace's installation folder. The rule is that Tomcat
always has to able to write on DSpace installation folder. So, for
instance, If you give permission for dspace group tô write on it and add
Tomcat to dspace group, you may be good to go. However you may have to set
permission masks to the cases when Tomcat create a file and then it will
own it, and not DSpace. Also, there may securitity issues that you have to
analyse carefully. But yeah, there are tons of solutions for this problem.

Em Dom, 6 de nov de 2016 09:12,  escreveu:

> thanks for your reply and all the details you gave me.
>
> excuse me i have another question :
>
> can i just add the user dspace in the tomcat group and also add the user
> tomcat in dspace group because  I need to run others websapps under tomcat
>
> with what you said before; all webapps will run under dspace user and I
> don't want that.
>
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] problem user dspace

2016-11-05 Thread Bruno Nocera Zanette
Oh... I've forgot to say that this will only works if you really installed
DSpace inside "dspace" user. If not, i suggest you to change DSpace's
installation folder's owner to "dspace" user.

Lets say you installed it using "root" user on folder "/opt/dspace".
Everything that is created during installation process will then belong to
"root", and not "dspace". But it's not recommended that Dspace runs on root
user because security issues, and nor "tomcat". The correct way is that the
folder in which DSpace is installed belongs to a user other than "root"
(and other important services). That's why in the tutorial is suggested to
create a new user and to do all the installation steps using this new user,
so that everything created belongs to it.

If this is your case (installed everything using "root"), use "chown"
command to alter installation folder's owner to "dspace":
$ chown -R dspace:dspace /opt/dspace

Also, everything i said there is nothing to do with Database users. This is
a completely different thing, and it's not affected by none of the
suggested commands.

Em sáb, 5 de nov de 2016 às 20:54, Bruno Nocera Zanette <
brunonzane...@gmail.com> escreveu:

> Hoska,
> You need to edit the file: /etc/default/tomcat8, to specify that Tomcat
> will run from now on on the same user that DSpace is installed on. Eg: If
> you created an user called "dspace", you have to configure Tomcat to run on
> this user "dspace". This is necessary because otherwise tomcat wouldn't be
> able to write to files inside dspace's installation folder that are
> important for it to function correctly, like SOLR files and log files. All
> you have to do is to change the line "TOMCAT8_USER=...", save and restart
> tomcat.
>
> Also, if you already ran Tomcat on another user, lets say "root", you will
> need to change some folder's owner from "root" to the new Tomcat's user,
> for the same reason explained before. Some of these folder are:
>
> - /var/lib/tomcat8
>
> - /var/log/tomcat8
>
> - /var/cache/tomcat8
>
> (there may be others depending on the OS, tomcat's version,
> configurations, ...):
>
> To do it, use the command: "chown -R" (-R is to modify it recursively).
> Eg.: if it's set on the configuration file that tomcat will run on user
> "dspace" and group "tomcat8", the command would be:
>
> $ chown -R dspace:tomcat8 /var/lib/tomcat8
>
> After doing this, follow both dspace's and tomcat's logs to see if
> everything is going fine.
>
> Em Sáb, 5 de nov de 2016 07:23,  escreveu:
>
> Iam new with dspace
> I followed the tutorial
> https://wiki.duraspace.org/display/DSDOC5x/DSpace+5.x+Documentation
> Ihave installed dspace 5.2 on debian jessie 64bits. with tomcat8 maven
> 3.0.5 openjdk7 ant 1.9 apache2 postgresql9.4
> all prerequisite packages are installed with apt-get install
> tomcat run under user tomcat8
> in the tutorial  DSpace will need to run as the same user as Tomcat
> I do not understand is this that the building and installation of dspace
> in this case will be run as the user name tomcat8 or as the user dspace
> created above
> I think the user dspace( creates : useradd -m dspace) is just required for
> database of dspace
> is this right or no
>
> thanks for help
>
> excuse me i am bad in english
>
> --
> 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.
>
> --
> Bruno Nocera Zanette
> +55 41 9992-2508 <(41)%209992-2508>
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] problem user dspace

2016-11-05 Thread Bruno Nocera Zanette
Hoska,
You need to edit the file: /etc/default/tomcat8, to specify that Tomcat
will run from now on on the same user that DSpace is installed on. Eg: If
you created an user called "dspace", you have to configure Tomcat to run on
this user "dspace". This is necessary because otherwise tomcat wouldn't be
able to write to files inside dspace's installation folder that are
important for it to function correctly, like SOLR files and log files. All
you have to do is to change the line "TOMCAT8_USER=...", save and restart
tomcat.

Also, if you already ran Tomcat on another user, lets say "root", you will
need to change some folder's owner from "root" to the new Tomcat's user,
for the same reason explained before. Some of these folder are:

- /var/lib/tomcat8

- /var/log/tomcat8

- /var/cache/tomcat8

(there may be others depending on the OS, tomcat's version, configurations,
...):

To do it, use the command: "chown -R" (-R is to modify it recursively).
Eg.: if it's set on the configuration file that tomcat will run on user
"dspace" and group "tomcat8", the command would be:

$ chown -R dspace:tomcat8 /var/lib/tomcat8

After doing this, follow both dspace's and tomcat's logs to see if
everything is going fine.

Em Sáb, 5 de nov de 2016 07:23,  escreveu:

Iam new with dspace
I followed the tutorial
https://wiki.duraspace.org/display/DSDOC5x/DSpace+5.x+Documentation
Ihave installed dspace 5.2 on debian jessie 64bits. with tomcat8 maven
3.0.5 openjdk7 ant 1.9 apache2 postgresql9.4
all prerequisite packages are installed with apt-get install
tomcat run under user tomcat8
in the tutorial  DSpace will need to run as the same user as Tomcat
I do not understand is this that the building and installation of dspace in
this case will be run as the user name tomcat8 or as the user dspace
created above
I think the user dspace( creates : useradd -m dspace) is just required for
database of dspace
is this right or no

thanks for help

excuse me i am bad in english

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

-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] Fwd: [dspace-community] Authorization policy.

2016-10-26 Thread Bruno Nocera Zanette
Arjun,
If i understand correctly, you want to add authorization policies to each
Content (Community/Collection), right? Or those contents already had
policies and now they're not working properly?

If you just want to add policies, do the following:
1) Login with an admin user
2) Create groups of epersons that will be able to perform some action on
some content, accessing the option "Groups" on the right menu. (eg: Create
a group called "COMMUNITY_AuthorizationTest_READ" that will contain all the
people that will be able to read AuthorizationTest Community)
3) Access the option "Authorizations" on the right menu (right below
"Groups") and select the content that you desire to change authorizations.
4) Delete and Create the policies as you wish. (eg.: Delete the default
"READ action for Anonymous group" policy, that allows anyone to read the
content, and create a new READ action policy using the group created on the
step 2.)

I did these steps on "demo.dspace.org" instance (version 6.0), on the
community "Authorization Test Community", and it worked fine. You are not
allowed to read it unless you're logged into Submitter account. However, it
should also work on a Dspace 5.x instance, since this feature didn't
suffered any critical change on the update from 5 to 6 (afaik).

Em qua, 26 de out de 2016 às 11:18, Monika Mevenkamp 
escreveu:

> forwarding to dspace-tech
>
>
>
> Begin forwarded message:
>
> *From: *arjun k 
> *Subject: **Re: [dspace-community] Authorization policy.*
> *Date: *October 26, 2016 at 12:03:58 AM EDT
> *To: *Monika Mevenkamp 
>
> Dear sir/madam,
>
> we are using xmlui version,
> dspace 5.4
>
> Java Runtime Environment Version: 1.7.0_101 Java Runtime Environment
> Vendor: OpenJDK Server VM Operating System Name: Linux Operating System
> Architecture: i386 Operating System Version: 3.19.0-65-generic
>
>
> On Tue, Oct 25, 2016 at 10:16 PM, Monika Mevenkamp 
> wrote:
>
> Arjun
>
> these types of questions are best directed to the dspace-tech list
>
> When you do ask , please include the user interface of your instances as
> well as its version
> The JSPUI has a 'Wildcard Policy Admin Tool’   accessible to
> administrators under the ‘Access Control’  | ‘Authorization’ menu item.
>
> Monika
>
> 
> Monika Mevenkamp
> mo.me...@gmail.com
>
> http://mo-meven.tumblr.com/
> http://mcmprogramming.com/mo.meven/
>
>
>
> On Oct 25, 2016, at 3:35 AM, arjun k  wrote:
>
> Dear sir,
>
> My name is arjun. I need a support from your side on giving authorization
> policy.
>
> Since i have updated many contents on DSPACE without giving any
> restriction to any content.
>
>  NoW the contents added is visible to the world wide with out restriction.
>
> can we restrict it by giving any new policy. ( WHAT I NEED IS, TO GIVE
> ACESS CONTENTS TO SPECIFIC PEOPLE OR GROUP others not. )
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-community+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-commun...@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-community.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] Database Schema refresh

2016-10-07 Thread Bruno Nocera Zanette
Donald,

if i undertand correctly what you said, the commands bellow does what you
need:
$ ./bin/dspace database clean
$ ./bin/dspace database migrate

Take a look at this for more info:
https://wiki.duraspace.org/display/DSDOC5x/Database+Utilities

Basically it reset the database to the initial and re-create with
migrations. You will lose all bitstreams, metadatas, items/collections/

If there's anything to save you can export it with dspace's export options
and then import it after the reset:
https://wiki.duraspace.org/display/DSDOC5x/Exporting+Content+and+Metadata
https://wiki.duraspace.org/display/DSDOC5x/Ingesting+Content+and+Metadata


Em sex, 7 de out de 2016 às 16:04, Donald Bynum  escreveu:

> I am using Oracle as my database in an XMLUI implementation.  I'd like to
> wipe out the DB schema and start from scratch without having to literally
> start from the very beginning as far as installation is concerned.  How can
> I "refresh" my schema?  I'd be happy enough with creating a new schema and
> pointing my DSpace to that, but I'd still need to remove any unnecessary
> metadata.
>
> Regards,
>
> Don.
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] Can't create items through REST

2016-10-03 Thread Bruno Nocera Zanette
Ondrej,
The login method has changed on DSpace 6. Now, email and password must be
passed as a html queries, and it returns an JCOOKIE that must be passed
back to the server on every request. Also, the queries must be on HTML safe
format.

More info at:
https://wiki.duraspace.org/display/DSDOC6x/REST+API#RESTAPI-Index/Authentication

I've wrote an collection of bash scripts to test DSpace REST endpoints,
that you may take a look to understand it better:
Login: https://github.com/BrunoNZ/dspace-rest-requests/blob/master/login.sh
SendRequest:
https://github.com/BrunoNZ/dspace-rest-requests/blob/master/send_request.sh

I haven't tested what you've said yet, but if true, it is a big issue!

Em sex, 30 de set de 2016 às 12:14, Ondřej Košarko 
escreveu:

> Hi,
> I'm having an issue while creating an item as a non admin user through
> REST API.
> I've added the user to collection submit, but am still getting ERROR
> org.dspace.rest.CollectionsResource @ User(fake_em...@example.com) has
> not permission to write collection!
> I was going through the code and it seems to me that the permissions asked
> are wrong, e.g.
> https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/CollectionsResource.java#L349
>  asks
> for Constants.WRITE on collection when it is adding an item, while
> according to
> https://wiki.duraspace.org/display/DSDOC5x/Functional+Overview#FunctionalOverview-Authorization
> it should be Constants.ADD. This is probably not the only issue as deleting
> a collection would require DELETE on the owning community object not the
> collection itself (
> https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/CollectionsResource.java#L506
> )
>
> I hope I'm not the only one seeing this and hope that I'm reading the docs
> right, I was gonna test it on demo.dspace.org. But I couldn't log in. Can
> you spot any problems with the following cmd (i've ommited the real
> password)?
> curl -k -X POST -H "Content-Type: application/json" -d '{"email":"
> dspacedemo+ad...@gmail.com","password":"d."}'
> https://demo.dspace.org/rest/login
>
> Regards,
> Ondrej
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] 20 million item repository with dspace

2016-09-28 Thread Bruno Nocera Zanette
That is a LOT of items! How many requests per day/hour/... do you expect to
have? Is it in the same proportion of items?

I believe that the real problem is the quantity of requests, once the items
will only be another row into the database. But to query over them will be
a real challenge for Dspace!! Specially because it's not build to be
distributed on the cloud.

Keep us up to date with this, plz!

Em qua, 28 de set de 2016 às 13:04, Terry Brady 
escreveu:

> I believe that 20 million items would be a record for a DSpace repository.
>
> At Georgetown, we have more than 500,000 items.  A majority of these items
> contain only metadata which may have simplified the issue for us.  We have
> found DSpace to scale very nicely so far.
>
> I believe that the University of Cincinnati also has a very large DSpace
> instance.
>
> You may want to cross-post this question to the dspace-general list to
> reach a wider audience.
>
> Terry
>
> On Tue, Sep 27, 2016 at 11:14 PM, Thomas Adeyinka 
> wrote:
>
>> Hi guys. I looking to setup a repository which will contain close to 20
>> million items.. mostly old news papers (scanned) images and videos. I am
>> considering using dspace for this project for my institution. Does dspace
>> have the capacity to take over 20 million items (all things equal) what
>> database and hardware configuration would be recommended for such a project.
>>
>> --
>> 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
> http://georgetown-university-libraries.github.io/
> <https://www.library.georgetown.edu/lit/code>
> 425-298-5498 (Seattle, WA)
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] REST Interface Sample App on Rails

2016-09-28 Thread Bruno Nocera Zanette
Hey folks,
I'm proud to announce that the interface is complete. Maybe there are some
few tweaks to be made, but overall it implements everything possible
(besides policies CRUD operations).

https://drcgem-sample-interface.herokuapp.com

Updates:
- Added a welcome page that shows an info and the site hierarchy;
- Added CRUD operations for Schemas and MetadataFields
- Fixed some bugs
- Fixed application style

Everything seems to be working very fine with Dspace6 Demo instance
(everything but Schema Creation/update because a REST API bug that have
been already fixed but not applied to demo instance).

This is not meant to be an official DSpace's REST interface but i think
it's a good example of what it can do and a good start point for other
projects, that is for me the greatest advantage of REST API. IMO, depending
on the situation, creating a simple app that implements a custom interface
is a better solution than customizing the whole interface. And to use the
default interface only internally to do admin stuff.

The 'dspace-rest-client' rubygem will be update in the next few days,
because we're still working to make both API verions 5 and 6 to work
alongside each other,  but for now you may use my repository's version (
https://gitlab.c3sl.ufpr.br/bnzanette/dspace-rest-client).

Cheers!


Em qua, 14 de set de 2016 às 20:05, Bruno Nocera Zanette <
brunonzane...@gmail.com> escreveu:

> I've updated the app with several fixes, including Item edit, Table style
> and adding buttons to create an object directly inside some other object.
> The only thing that is still missing is adding/removing metadata fields to
> item's form. For now there are only title and author fields for new items
> and all existing metadata fields for old items. I'll try to implement this
> feature this week.
>
> Besides that, everything else are working. This includes
> Create/Edit/Remove all kinds of objects, objects' table pagination,
> login/logout.
>
> If you find any bug, please let me know.
>
> Em ter, 13 de set de 2016 às 01:18, Bruno Nocera Zanette <
> brunonzane...@gmail.com> escreveu:
>
>> Today i've fixed the authentication problem and i took the oportunity to
>> also implement a login form. It seems to be working fine. I had to make
>> some changes to the Gem and removed some code of Dspace5 auth, but later
>> i'll try to merge them into a single version.
>>
>> Em seg, 12 de set de 2016 às 12:16, Bruno Nocera Zanette <
>> brunonzane...@gmail.com> escreveu:
>>
>>> Thanks, Ilja!
>>> I took a look at the doc before but i didn't notice this change. I've
>>> already updated the bash scripts to the new method and i'll update the Gem
>>> later this week.
>>>
>>> Em qua, 7 de set de 2016 às 02:36, Ilja Sidoroff 
>>> escreveu:
>>>
>>>> The /rest/login api changed a bit in version 6, but now the docs are
>>>> updated: https://wiki.duraspace.org/display/DSDOC6x/REST+API
>>>>
>>>> br,
>>>>
>>>> Ilja Sidoroff
>>>> University of Eastern Finland
>>>> 
>>>> From: dspace-tech@googlegroups.com  on
>>>> behalf of Bruno Nocera Zanette 
>>>> Sent: Tuesday, September 6, 2016 8:12:45 PM
>>>> To: DSpace Technical Support
>>>> Subject: [dspace-tech] REST Interface Sample App on Rails
>>>>
>>>> Hey all!!
>>>>
>>>> I've been writting, on my spare time, a REST interface sample app on
>>>> Ruby on Rails and it finally got to a point where i can show it to you. It
>>>> is fully based on "dspace-rest-client" ruby gem:
>>>>
>>>> The link to the app is:
>>>> https://drcgem-sample-interface.herokuapp.com/
>>>>
>>>> The code can be found here:
>>>> https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
>>>> (P.s.: I plan to move it to github, but for now this is the only
>>>> source. It's completely safe and hosted by a research group on the
>>>> University where i study.).
>>>>
>>>> I decided to keep it as simple as possible so that other people can use
>>>> it as basis for other apps. Like a "live documentation".
>>>>
>>>> There are somethings that i still have to do to make it more usable,
>>>> like adding links to add collections/items/bitstreams on a
>>>> community/collection/item page, so that you don't need to always choose a
>>>> parent object when creating a new object. I also need to ad

Re: [dspace-tech] Move logins from one machine to another

2016-09-23 Thread Bruno Nocera Zanette
Sakssham,
Since it's just a reinstall of an existent repo, you may achieve it by
pg_dump'ing the whole db and then restoring it on the new machine.
But there are some catches. You have to first install the exact same
version that you're actually running, then restoring the DB, copy the
installation folder, and test it. Then, you update the source code to
whatever version you want, compile it and update the installed
packages. It has to be like this because there may be some DB
migrations between the two versions that if ignored can crash your
system.

It's complicated to do a step-by-step guide. But it will be something
along the following lines:

[ON THE OLD MACHINE]
1) pg_dump -U [database-user] -f [backup-file-location] [database-name]
2) copy the installation folder to new machine (you can use "scp",
"rsync",  Or compress with "tar" and copy using a usb stick,..
however you like)
3) copy the source code folder to new machine

[ON THE NEW MACHINE]
1) create an user and a database
(https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-Installation)
1.1) restore the data using pg_restore
(https://www.postgresql.org/docs/9.2/static/app-pgrestore.html)
2) Verify the source code/installation folder and their location
2.1) You may have to recompile and update the installation folder,
specially if the folder path has changed
3) Install and configure the webserver
4) test it
5) Upgrade the system to new version
(https://wiki.duraspace.org/display/DSDOC5x/Upgrading+DSpace#UpgradingDSpace-BackupyourDSpace)
6) Test it

Done!


2016-09-23 14:59 GMT-03:00 Alan Orth :
> Hi,
>
> You should just dump the PostgreSQL database (using pg_dump) from the old
> server and import it on the new server (using pg_restore). I do this all the
> time to set up new test environments from my production server.
>
> Regards,
>
>
> On Tue, Sep 20, 2016, 13:17 Saksham Agarwal  wrote:
>>
>> Hi,
>>
>> I have a dspace 5.0 instance installed and running on centos-6 since a
>> long time and many users have their login accounts on it.
>> I now have done a fresh install of dspace-5.5 on ubuntu-14.04. I want to
>> move all the logins to the new machine. I am using postgresql on both.
>> Please provide a step by step guide on how to do this.
>>
>> Thanks and Regards
>> Saksham
>>
>> --
>> 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.
>
> --
>
> Alan Orth
> alan.o...@gmail.com
> https://englishbulgaria.net
> https://alaninkenya.org
> https://mjanja.ch
>
> --
> 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.



-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] change the query

2016-09-21 Thread Bruno Nocera Zanette
Well remembered, Luiz!
Specially the second point if you're dealing with a Git repository, because
it allows you to pull new versions of code without having to deal with code
conflicts. I've already used this method to do some customisation on xmlui
interface and it worked like a charm.


Em qua, 21 de set de 2016 às 17:29, Luiz dos Santos 
escreveu:

> Hi Dante,
>
>  The code of Bruno makes senses to me, just return a HaspMap instead
> the array thing, as Bruno said it will not compile at all, I have two
> advices for you:
>   1- Instead change the findItemsMetadataField, create a new method.
>   2- Create a new class to overload ItemResources, as it is explained
> in (https://wiki.duraspace.org/display/DSDOC5x/Advanced+Customisation),
> the basic idea here is if you put a class in the folder
> module/dspace-rest/... it will replace to original one, I never tested it
> in the rest-api, but it should work, and it will save you headache in the
> future.
>
> Best regards
> Luiz
>
> On Wed, Sep 21, 2016 at 3:48 PM, Bruno Nocera Zanette <
> brunonzane...@gmail.com> wrote:
>
>> Dante,
>> Even if the query returns more than you need, i wouldn't change it in the
>> first moment.
>> What you really have to change now is the returning line, because this is
>> the line that will create the response for your request.
>> For now it is returning an array of items. You have to change it to
>> return an array of {id,title,...} (hash or map). You may implement it by
>> creating a custom array and adding only the attributes of interest of each
>> item of items variable to it, and then returning this array. You will also
>> have to change the returning type of this function and verify what the
>> calling function does with it.
>>
>> Something like this (custom language):
>> public Array findItemsByMetadata 
>> {
>> ...
>> id_array = Array.new()
>> for (Item i : items){
>> id_array.add()
>> }
>> return id_array;
>> }
>>
>> I know there are several syntax errors in this code, but my ideia is this.
>> You should also take a look at other code snippets, specially on the
>> function that implement hierarchy endpoing on Dspace 6, to verify how it's
>> being done by others.
>>
>>
>>
>> Em qua, 21 de set de 2016 às 10:36, Dante Valencia <
>> dante.valenci...@gmail.com> escreveu:
>>
>>> Thank you Bruno,
>>> I was trying changing  the code of dspace 5.2 and its diferent.
>>>
>>>> @POST
>>>> @Path("/find-by-metadata-field")
>>>> @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
>>>> public Item[] findItemsByMetadataField(MetadataEntry metadataEntry, 
>>>> @QueryParam("expand") String expand,
>>>> @QueryParam("userIP") String user_ip, @QueryParam("userAgent") 
>>>> String user_agent,
>>>> @QueryParam("xforwardedfor") String xforwardedfor, @Context 
>>>> HttpHeaders headers, @Context HttpServletRequest request)
>>>> throws WebApplicationException
>>>> {
>>>>
>>>> log.info("Looking for item with metadata(key=" + 
>>>> metadataEntry.getKey() + ",value=" + metadataEntry.getValue()
>>>> + ", language=" + metadataEntry.getLanguage() + ").");
>>>> org.dspace.core.Context context = null;
>>>>
>>>> List items = new ArrayList();
>>>> String[] metadata = mySplit(metadataEntry.getKey());
>>>>
>>>> try
>>>> {
>>>> context = createContext(getUser(headers));
>>>>
>>>> // Must used own style.
>>>> if ((metadata.length < 2) || (metadata.length > 3))
>>>> {
>>>> context.abort();
>>>> log.error("Finding failed, bad metadata key.");
>>>> throw new WebApplicationException(Response.Status.NOT_FOUND);
>>>> }
>>>>
>>>> String sql = "SELECT RESOURCE_ID, TEXT_VALUE, TEXT_LANG, SHORT_ID, 
>>>> ELEMENT, QUALIFIER " +
>>>> "FROM METADATAVALUE " +
>>>> "JOIN METADATAFIELDREGISTRY ON 
>>>> METADATAVALUE.METADATA_FIELD_ID = METADATAFIELDREGISTRY.METADATA_FIELD_ID 
>>>> " +
>>>> "JOI

Re: [dspace-tech] change the query

2016-09-21 Thread Bruno Nocera Zanette
; writeStats(dspaceItem, UsageEvent.Action.VIEW, user_ip, 
>> user_agent, xforwardedfor, headers,
>> request, context);
>> items.add(item);
>> }
>>
>> context.complete();
>>
>> }
>> catch (SQLException e)
>> {
>> processException("Something went wrong while finding item. 
>> SQLException, Message: " + e, context);
>> }
>> catch (ContextException e)
>> {
>> processException("Context error:" + e.getMessage(), context);
>> }
>> finally
>> {
>> processFinally(context);
>> }
>>
>> if (items.size() == 0)
>> {
>> log.info("Items not found.");
>> }
>> else
>> {
>> log.info("Items were found.");
>> }
>>
>> return items.toArray(new Item[0]);
>> }
>>
>>
>
>  The query has what I want, but I dont know how to obtain the results.
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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: Solr Query of download and view.

2016-09-19 Thread Bruno Nocera Zanette
Hey! Glad it helped!!

As a said, you will have to parse the response to get this info. The field
of interest for you is "numFound".

For example, when i execute the query that i cited in the first message i
get the following response:

{
  "responseHeader":{
"status":0,
"QTime":2,
"params":{
  "q":"type:2 AND (id:68056753-e460-4f80-a08a-f8febfbd07f7)",
  "indent":"true",
  "fq":"statistics_type:[* TO *] AND statistics_type:view",
  "wt":"json"}},
  "response":{"numFound":4,"start":0,"docs":[
  {
"ip":"127.0.0.1",
"referrer":"http://localhost:8080/xmlui/";,
"dns":"localhost.",
"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0)
Gecko/20100101 Firefox/48.0",
"isBot":false,
"id":"68056753-e460-4f80-a08a-f8febfbd07f7",
"type":2,
"owningColl":["88c16bca-e689-4a71-b8f3-112191758c9a"],
"owningComm":["bc362b91-eb6d-4c95-bf2c-77dc2aeb20d4"],
"time":"2016-09-18T13:16:47.936Z",
"epersonid":"041c27dd-7c00-49c4-9192-55a3aed42994",
"statistics_type":"view",
"uid":"6d845ff5-2a9d-441f-a081-8190485f231c",
"_version_":1545826895597142016},
  {...}
}

In the beggining of the response there are the params that were used.
Then it comes the important part, that is the response itself. As any
other query, it says how many results were found and then the results
itself. So, if you are looking for some kind of statistic, the result
will be how many statistics were found.

How you will do it depends on the language you are using, but almost
definitely will be something like this (written on Ruby):
parsedResponse = JSON.parse(response)  # Parse the result
numFounds = parsedResponse["response"]["numFound"] # Access the
response field and then the attribute numFound.

And then you can iterate through the results if you want:
parsed_response["response"]["docs"].each do |r|
 puts r["ip"]
end

If the number of found results isn't the same as it appears on the
xmlui interface you have to revise the query, because it should be.


Em seg, 19 de set de 2016 às 08:59, Faiyaz Ahmed 
escreveu:

> Thank you so much Bruno for response and now I understand to run Solr
> Query.
>
> Below query I got from solr.log file :
>
> 2016-09-19 15:57:44,851 INFO  org.apache.solr.core.SolrCore @ [statistics]
> webapp=/solr path=/select
> params={facet=true&shards=localhost:8080/solr/statistics-2015,localhost:8080/solr/statistics&facet.mincount=1&q=type:+2+AND++id:64&facet.limit=10&facet.field=id&wt=javabin&fq=-isBot:true&fq=-(bundleName:[*+TO+*]-bundleName:ORIGINAL)&fq=-(statistics_type:[*+TO+*]+AND+-statistics_type:view)&version=2&rows=0}
> hits=23 status=0 QTime=4
>
> *I run *:
> facet=true&shards=localhost:8080/solr/statistics-2015,localhost:8080/solr/statistics&facet.mincount=1&q=type:+2+AND++id:64&facet.limit=10&facet.field=id&wt=javabin&fq=-isBot:true&fq=-(bundleName:[*+TO+*]-bundleName:ORIGINAL)&fq=-(statistics_type:[*+TO+*]+AND+-statistics_type:view)&version=2&rows=0
>
> at http://localhost:8080/solr/#/statistics/query.
>
> Got response but not able see total hits / view which I see at solr logs
> that is "hits=23".
>
> Where I can get only "hits=23" response from solr query?
>
> Hope you understand what I'm looking for :)
>
> Many Thanks ...
>
> Faiyaz Ahmed
>
> On Sun, Sep 18, 2016 at 10:02 PM, Bruno Nocera Zanette <
> brunonzane...@gmail.com> wrote:
>
>> Faiyaz,
>> There are some important details that need to be addressed here.
>>
>> First, by default, solr is only accessible on localhost. This means that
>> you won't be able to query demo.dspace.org statistics. You'll need to
>> install a dspace instance on some of your servers and access it from the
>> same network. I recommend you to take a look at this:
>> https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Bypassinglocalhostrestrictiontemporarily
>>
>> The query itself is made using SOLR query syntax (
>> https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Solrqueries). I
>> don't fully understand it to be able to explain it to you, but there's a
>> nice trick you can use to get the right queries. That trick is to use the
>> solr.log file ([install-dir]/log/sol

Re: [dspace-tech] change the query

2016-09-18 Thread Bruno Nocera Zanette
Dante,
You'll have to alter ItemResource's code on REST api:
https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java#L903
Specially the line 967. As i'm not a Java specialist i can't help you
besides that, but the idea is to return a hash like object (id,name) or an
array of ids, intead of an array of items.


Em sex, 16 de set de 2016 às 13:13, Dante Valencia <
dante.valenci...@gmail.com> escreveu:

> Hi friends,
> I was researching and testing, how to change the query of
> http://localhost:8080/rest/items/find-by-metadata-field
> I just want to get the internal id and a specific field of metadata, for
> example just want the key: dc.identifier
>
> I trying this because I have a lot of result and the other metadata
> results it doesn't relevant for me.
>
> Any suggestion?
>
> Thank you
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] how to use find-by-metadata?

2016-09-14 Thread Bruno Nocera Zanette
Dante and Luiz,
The request must be in the format:
{"key":"dc.XXX.YYY", "value":"Query"}

Example:
curl -k -4  -H "accept: application/json" -H "Content-Type:
application/json" -X POST "
https://demo.dspace.org/rest/items/find-by-metadata-field"; -d
"{"key":"dc.title","value":"Test"}"

Hope this helps!

Em qua, 14 de set de 2016 às 17:01, Luiz dos Santos 
escreveu:

> need help + 1
>
> On Wed, Sep 14, 2016 at 3:57 PM, Dante Valencia <
> dante.valenci...@gmail.com> wrote:
>
>> Hi friends
>> I need help with understanding how to use (find-vy-metadata) with Rest
>> For example, I do this in  loggout
>>  try {
>>
>>
>> DefaultHttpClient httpClient = new DefaultHttpClient();
>> HttpPost postRequest = new HttpPost("
>> http://10.3.11.134:8080/rest/logout";);
>> postRequest.addHeader("rest-dspace-token", jLabel1.getText
>> ());
>> HttpResponse response = httpClient.execute(postRequest);
>>
>>
>> if (response.getStatusLine().getStatusCode() != 200) {
>> throw new RuntimeException("Failed : HTTP error code : "
>> + response.getStatusLine().getStatusCode());
>> }
>>
>>
>> BufferedReader br = new BufferedReader(
>> new InputStreamReader((response.getEntity().
>> getContent(;
>>
>>
>> String output, sout = "";
>> while ((output = br.readLine()) != null) {
>> sout += output;
>> }
>> jLabel1.setText("Logout");
>> httpClient.getConnectionManager().shutdown();
>>
>>
>>
>> } catch (MalformedURLException e) {
>>
>> e.printStackTrace();
>>
>> } catch (IOException e) {
>>
>> e.printStackTrace();
>>
>> }
>>
>> or if i want the items of a collection I do this
>> try {
>> // TODO add your handling code here:
>> HttpClient client = new DefaultHttpClient();
>> HttpGet request = new HttpGet("
>> http://10.3.11.134:8080/rest/collections/3/items";);
>> request.addHeader("Content-Type", "application/json");
>> request.addHeader("Accept", "application/json");
>> request.addHeader("rest-dspace-token", jLabel1.getText());
>>
>>
>> HttpResponse response = client.execute(request);
>> BufferedReader rd = new BufferedReader(new InputStreamReader(
>> response.getEntity().getContent()));
>> String line = "";
>> while ((line = rd.readLine()) != null) {
>> System.out.println(line);
>> }
>> } catch (Exception ex) {
>> System.out.println(ex);
>> }
>>
>>
>> but I dont understand how i have to send the metadata i am looking for.
>>
>> Please I need help
>>
>> --
>> 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.
>>
>
> --
> 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] REST Interface Sample App on Rails

2016-09-14 Thread Bruno Nocera Zanette
I've updated the app with several fixes, including Item edit, Table style
and adding buttons to create an object directly inside some other object.
The only thing that is still missing is adding/removing metadata fields to
item's form. For now there are only title and author fields for new items
and all existing metadata fields for old items. I'll try to implement this
feature this week.

Besides that, everything else are working. This includes Create/Edit/Remove
all kinds of objects, objects' table pagination, login/logout.

If you find any bug, please let me know.

Em ter, 13 de set de 2016 às 01:18, Bruno Nocera Zanette <
brunonzane...@gmail.com> escreveu:

> Today i've fixed the authentication problem and i took the oportunity to
> also implement a login form. It seems to be working fine. I had to make
> some changes to the Gem and removed some code of Dspace5 auth, but later
> i'll try to merge them into a single version.
>
> Em seg, 12 de set de 2016 às 12:16, Bruno Nocera Zanette <
> brunonzane...@gmail.com> escreveu:
>
>> Thanks, Ilja!
>> I took a look at the doc before but i didn't notice this change. I've
>> already updated the bash scripts to the new method and i'll update the Gem
>> later this week.
>>
>> Em qua, 7 de set de 2016 às 02:36, Ilja Sidoroff 
>> escreveu:
>>
>>> The /rest/login api changed a bit in version 6, but now the docs are
>>> updated: https://wiki.duraspace.org/display/DSDOC6x/REST+API
>>>
>>> br,
>>>
>>> Ilja Sidoroff
>>> University of Eastern Finland
>>> 
>>> From: dspace-tech@googlegroups.com  on
>>> behalf of Bruno Nocera Zanette 
>>> Sent: Tuesday, September 6, 2016 8:12:45 PM
>>> To: DSpace Technical Support
>>> Subject: [dspace-tech] REST Interface Sample App on Rails
>>>
>>> Hey all!!
>>>
>>> I've been writting, on my spare time, a REST interface sample app on
>>> Ruby on Rails and it finally got to a point where i can show it to you. It
>>> is fully based on "dspace-rest-client" ruby gem:
>>>
>>> The link to the app is:
>>> https://drcgem-sample-interface.herokuapp.com/
>>>
>>> The code can be found here:
>>> https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
>>> (P.s.: I plan to move it to github, but for now this is the only source.
>>> It's completely safe and hosted by a research group on the University where
>>> i study.).
>>>
>>> I decided to keep it as simple as possible so that other people can use
>>> it as basis for other apps. Like a "live documentation".
>>>
>>> There are somethings that i still have to do to make it more usable,
>>> like adding links to add collections/items/bitstreams on a
>>> community/collection/item page, so that you don't need to always choose a
>>> parent object when creating a new object. I also need to add a footer and
>>> an "about page" to add "powered by..." infos and stuff like that.
>>>
>>> However, for some reason, Dspace's REST login isn't working on
>>> demo.dspace.org<http://demo.dspace.org>, so the app crashes everytime
>>> the buttons to save/edit are clicked. On my tests on a 5.x version
>>> everything works fine.
>>>
>>> Feel free to do whatever you want with it!! Hope you like it and find
>>> some utility for it.
>>> Cheers!!
>>> --
>>> Bruno Nocera Zanette
>>> +55 41 9992-2508
>>>
>>> --
>>> 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>> dspace-tech+unsubscr...@googlegroups.com>.
>>> To post to this group, send email to dspace-tech@googlegroups.com
>>> <mailto: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.
>>>
>> --
>> Bruno Nocera Zanette
>> +55 41 9992-2508
>>
> --
> Bruno Nocera Zanette
> +55 41 9992-2508
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] REST Interface Sample App on Rails

2016-09-12 Thread Bruno Nocera Zanette
Today i've fixed the authentication problem and i took the oportunity to
also implement a login form. It seems to be working fine. I had to make
some changes to the Gem and removed some code of Dspace5 auth, but later
i'll try to merge them into a single version.

Em seg, 12 de set de 2016 às 12:16, Bruno Nocera Zanette <
brunonzane...@gmail.com> escreveu:

> Thanks, Ilja!
> I took a look at the doc before but i didn't notice this change. I've
> already updated the bash scripts to the new method and i'll update the Gem
> later this week.
>
> Em qua, 7 de set de 2016 às 02:36, Ilja Sidoroff 
> escreveu:
>
>> The /rest/login api changed a bit in version 6, but now the docs are
>> updated: https://wiki.duraspace.org/display/DSDOC6x/REST+API
>>
>> br,
>>
>> Ilja Sidoroff
>> University of Eastern Finland
>> ________
>> From: dspace-tech@googlegroups.com  on
>> behalf of Bruno Nocera Zanette 
>> Sent: Tuesday, September 6, 2016 8:12:45 PM
>> To: DSpace Technical Support
>> Subject: [dspace-tech] REST Interface Sample App on Rails
>>
>> Hey all!!
>>
>> I've been writting, on my spare time, a REST interface sample app on Ruby
>> on Rails and it finally got to a point where i can show it to you. It is
>> fully based on "dspace-rest-client" ruby gem:
>>
>> The link to the app is:
>> https://drcgem-sample-interface.herokuapp.com/
>>
>> The code can be found here:
>> https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
>> (P.s.: I plan to move it to github, but for now this is the only source.
>> It's completely safe and hosted by a research group on the University where
>> i study.).
>>
>> I decided to keep it as simple as possible so that other people can use
>> it as basis for other apps. Like a "live documentation".
>>
>> There are somethings that i still have to do to make it more usable, like
>> adding links to add collections/items/bitstreams on a
>> community/collection/item page, so that you don't need to always choose a
>> parent object when creating a new object. I also need to add a footer and
>> an "about page" to add "powered by..." infos and stuff like that.
>>
>> However, for some reason, Dspace's REST login isn't working on
>> demo.dspace.org<http://demo.dspace.org>, so the app crashes everytime
>> the buttons to save/edit are clicked. On my tests on a 5.x version
>> everything works fine.
>>
>> Feel free to do whatever you want with it!! Hope you like it and find
>> some utility for it.
>> Cheers!!
>> --
>> Bruno Nocera Zanette
>> +55 41 9992-2508
>>
>> --
>> 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> dspace-tech+unsubscr...@googlegroups.com>.
>> To post to this group, send email to dspace-tech@googlegroups.com> 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.
>>
> --
> Bruno Nocera Zanette
> +55 41 9992-2508
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] REST Interface Sample App on Rails

2016-09-12 Thread Bruno Nocera Zanette
Thanks, Ilja!
I took a look at the doc before but i didn't notice this change. I've
already updated the bash scripts to the new method and i'll update the Gem
later this week.

Em qua, 7 de set de 2016 às 02:36, Ilja Sidoroff 
escreveu:

> The /rest/login api changed a bit in version 6, but now the docs are
> updated: https://wiki.duraspace.org/display/DSDOC6x/REST+API
>
> br,
>
> Ilja Sidoroff
> University of Eastern Finland
> 
> From: dspace-tech@googlegroups.com  on
> behalf of Bruno Nocera Zanette 
> Sent: Tuesday, September 6, 2016 8:12:45 PM
> To: DSpace Technical Support
> Subject: [dspace-tech] REST Interface Sample App on Rails
>
> Hey all!!
>
> I've been writting, on my spare time, a REST interface sample app on Ruby
> on Rails and it finally got to a point where i can show it to you. It is
> fully based on "dspace-rest-client" ruby gem:
>
> The link to the app is:
> https://drcgem-sample-interface.herokuapp.com/
>
> The code can be found here:
> https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
> (P.s.: I plan to move it to github, but for now this is the only source.
> It's completely safe and hosted by a research group on the University where
> i study.).
>
> I decided to keep it as simple as possible so that other people can use it
> as basis for other apps. Like a "live documentation".
>
> There are somethings that i still have to do to make it more usable, like
> adding links to add collections/items/bitstreams on a
> community/collection/item page, so that you don't need to always choose a
> parent object when creating a new object. I also need to add a footer and
> an "about page" to add "powered by..." infos and stuff like that.
>
> However, for some reason, Dspace's REST login isn't working on
> demo.dspace.org<http://demo.dspace.org>, so the app crashes everytime the
> buttons to save/edit are clicked. On my tests on a 5.x version everything
> works fine.
>
> Feel free to do whatever you want with it!! Hope you like it and find some
> utility for it.
> Cheers!!
> --
> Bruno Nocera Zanette
> +55 41 9992-2508
>
> --
> 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 dspace-tech+unsubscr...@googlegroups.com>.
> To post to this group, send email to dspace-tech@googlegroups.com 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.
>
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] REST Interface Sample App on Rails

2016-09-06 Thread Bruno Nocera Zanette
Hey all!!

I've been writting, on my spare time, a REST interface sample app on Ruby
on Rails and it finally got to a point where i can show it to you. It is
fully based on "dspace-rest-client" ruby gem:

The link to the app is:
https://drcgem-sample-interface.herokuapp.com/

The code can be found here:
https://gitlab.c3sl.ufpr.br/bnzanette/DspaceRestSample
(P.s.: I plan to move it to github, but for now this is the only source.
It's completely safe and hosted by a research group on the University where
i study.).

I decided to keep it as simple as possible so that other people can use it
as basis for other apps. Like a "live documentation".

There are somethings that i still have to do to make it more usable, like
adding links to add collections/items/bitstreams on a
community/collection/item page, so that you don't need to always choose a
parent object when creating a new object. I also need to add a footer and
an "about page" to add "powered by..." infos and stuff like that.

However, for some reason, Dspace's REST login isn't working on
demo.dspace.org, so the app crashes everytime the buttons to save/edit are
clicked. On my tests on a 5.x version everything works fine.

Feel free to do whatever you want with it!! Hope you like it and find some
utility for it.
Cheers!!
-- 
Bruno Nocera Zanette
+55 41 9992-2508

-- 
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] Problem with login on REST API

2016-06-24 Thread Bruno Nocera Zanette
Hey!!

I'm trying to login on Dspace's REST API (v6/master) to test some things
but i can't. I've done it several times before and i can login on others
instances of Dspace (all v5.x), but it doesn't work on Dspace6. I've tried
on Demo DSpace and on a local instance (fresh install).

Something changed on login's request, on dspace 6? Or is it some bug or
system misconfig? Is it something about the new types of auth?

Thx!!
-- 
Bruno Nocera Zanette
+55 41 9992-2508

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