[dspace-tech] Customizing Statistics Usage Page

2016-11-11 Thread Donald Bynum
I am running DSpace 5.5 with XMLUI and Mirage.  I am customizing (or at 
least trying to) content in the Usage Statistics pages.  Specifically, I 
want to remove the Country Views and the City Views and replace them with a 
section that has "Feedback" as the header and a custom URL for the content 
below.  I have been pushed in the right direction (thank you Terry), but am 
stumbling on something which I am sure is trivial (I just don't know what 
it is).

I can successfully modify existing header strings by changing them in the 
C:\dspace-5.5-release\dspace\modules\xmlui\src\main\webapp\i18n\messages.xml 
code file.  I wanted to add a new header string.  So, in 
C:\dspace-5.5-release\dspace\modules\xmlui\src\main\webapp\i18n\messages.xml 
I added my new string:

Top cities views
File 
Downloads  Note - this is one of the header string I have updated 
and it renders just fine
Feedback   
Note - this is the new one I added

I updated 
C:\dspace-5.5-release\dspace\modules\xmlui\src\main\java\org\dspace\app\xmlui\aspect\statistics\StatisticsTransformer.java
 
as follows:

1. I added my new header string to the list at the start of the class 
definition as follows:
 private static final String T_head_visits_cities = 
"xmlui.statistics.visits.cities";
private static final String T_head_visits_bitstream = 
"xmlui.statistics.visits.bitstreams";  -- Note this corresponds to the 
header string which I updated in messages.xml 
private static final String T_head_visits_setcstats = 
"xmlui.statistics.visits.setcstats"; -- This is the new header string that 
I added to messages.xml

2. I commented out the original City and Country sections and added my new 
(modified from the original Country section) section to the renderViewer 
method as follows:

try {
StatisticsListing statListing = new StatisticsListing(
   new StatisticsDataVisits(dso));
statListing.setTitle(T_head_visits_setcstats); -- Note this is 
the reference to my new header string
statListing.setId("list2");
//DatasetDSpaceObjectGenerator dsoAxis = new 
DatasetDSpaceObjectGenerator();
//dsoAxis.addDsoChild(dso.getType(), 10, false, -1);
DatasetTypeGenerator typeAxis = new DatasetTypeGenerator();
typeAxis.setType("countryCode");
typeAxis.setMax(10);
statListing.addDatasetGenerator(typeAxis);
addDisplayListing(division, statListing);

I have rebuilt XMLUI.  However, when the Usage Statistics page renders, the 
header string is displayed as: "xmlui.statistics.visits.setcstats" (without 
the quotes) instaed of the actual text of the string that I added to 
messages.xml (it should have rendered "Feedback".

Clearly something is not binding, I just don't know what.

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


[dspace-tech] What does the ID search operator do ?

2016-11-11 Thread Monika Mevenkamp
Demo DSpace (currently) has a document with the title 'Test PowerPoint Document’

So looking for something with a title  that contains ‘Title’ or is equal to 
'Test PowerPoint Document’ returns results
But searching with the ‘ID’ operator for ‘Title’ or ' 'Test PowerPoint 
Document’ returns nothing
see for example in jspui 
HERE>
 

What does the ID operator do ?

Monika

 
Monika Mevenkamp
Digital Repository Infrastructure Developer
Princeton University
Phone: 609-258-4161
Skype: 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.


Re: [dspace-tech] Implimentation of login

2016-11-11 Thread Alan Orth
Hi, Arjun.

I think it would be best if you use a central LDAP server for
authentication. Most organizations have one of these, as they need a single
login for many organizational services like email, intranet, etc. DSpace
has support for LDAP authentication and it works well. Users can log in,
but they cannot change their passwords through DSpace. They would only be
able to change their passwords somewhere else, via normal LDAP methods.
Restricting users from changing their passwords isn't a very good practice
anyways.

Those are my thoughts,

On Fri, Nov 11, 2016 at 12:37 PM arjun k  wrote:

> Dear sir,
>
>  My name is arjun I am workin in an engineering college and also i am
> using dspace version 5.4 xmlui platform as a digital repository.
>
> Now we are planning to implement the user login feature . What i need is a
> single user account (e-person) with password and *the password resetting
> need to be disabled for the same user which means,*
>
> USER  ACCOUNT/E-Person : student@vidyaacademy
>PASSWORD : student
>
> Here the password of the E-PERSON is given as  "student"This  password
>
> *cannot be resetted at anycost.ONLY ADMIN CAN DO THIS RESETTING.One
> resetting is done some others using same id and password cant reach to the
> contents in repository.*
> Due to numerous number of students it is very difficult to create user id
> for all students.
>
> can you anybody help me?
>
> --
> 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.


Re: [dspace-tech] Issues with REST find-by-metadata-field in DSpace 5

2016-11-11 Thread Alan Orth
Thanks, Terry. The code in this pull request actually merges cleanly into
DSpace 5.5. Now I *have* to try it. :)

https://github.com/DSpace/DSpace/pull/1532

Cheers,

On Thu, Nov 10, 2016 at 6:34 PM Terry Brady 
wrote:

> Alan,
>
> If you are interested in the new REST Query functionality that is a part
> of DSpace 6, I have some documentation on how to port that functionality
> into DSpace 5.
>
>
> https://wiki.duraspace.org/display/DSDOC6x/REST+Based+Quality+Control+Reports#RESTBasedQualityControlReports-InstallinginDSpace5
>
> Terry
>
> On Thu, Nov 10, 2016 at 7:26 AM, Alan Orth  wrote:
>
> Thanks, Ilja.
>
> Now that you mention permissions issues, I have seen some errors
> suggesting that in dspace.log after I do the REST query:
>
> ERROR org.dspace.rest.ItemsResource @ User(anonymous) has not permission
> to read item!
>
> But it's weird that in my case I see MORE items in the REST results than
> are actually in the database! Does REST query the database directly, or is
> there some cache somewhere I can clear, an index I can update, etc?
>
> Looking forward to getting our stack to DSpace 6, but it won't be until
> mid 2017 at this rate. :(
>
> Cheers,
>
> On Thu, Nov 10, 2016 at 3:01 PM Ilja Sidoroff 
> wrote:
>
> Hi,
>
> I tried to do something similar (all items with something in the field X),
> but it seems that find-by-metadata-field does not support wildcards, only
> exact matches. Helix84 suggested SOLR for me, There's also a new REST api
> for reports in 6.0 (Terry Brady suggested that to me). You can probably
> find the threads with my name & those mentioned.
>
> For the other question, are there differences in the item access
> permissions and/or if any of the items are in the workflow or in the
> collections. I think the SQL queries will give you all the items, but I
> think there is some filtering done with the REST - didn't look very deeply
> into that, though.
>
> Ilja
>
> 
> From: dspace-tech@googlegroups.com  on
> behalf of Alan Orth 
> Sent: Thursday, November 10, 2016 1:38:34 PM
> To: DSpace Technical Support
> Subject: [dspace-tech] Issues with REST find-by-metadata-field in DSpace 5
>
> Hi,
>
> We're trying to build an application that uses metadata from DSpace's REST
> API and I'm having some issues. We're testing on DSpace 5.5 with PostgreSQL.
>
> First, it seems there is no way to use a wildcard value with the
> find-by-metadata-field endpoint—I want all items where a field
> `cg.subject.ilri` exists. Second, for another query, I'm not sure that the
> API is returning the correct results. Taking into account the text_lang of
> the metadata, the following database queries and REST API results don't add
> up. Here are the database results for null, blank, and en_US text_lang
> values:
>
> dspace=# select count(text_value) from metadatavalue where
> resource_type_id=2 and metadata_field_id=203 and text_value='SEEDS' and
> text_lang is null;
>  count
> ---
> 15
> dspace=# select count(text_value) from metadatavalue where
> resource_type_id=2 and metadata_field_id=203 and text_value='SEEDS' and
> text_lang='';
>  count
> ---
>  4
> dspace=# select count(text_value) from metadatavalue where
> resource_type_id=2 and metadata_field_id=203 and text_value='SEEDS' and
> text_lang='en_US';
>  count
> ---
> 66
>
> Then the API results, in the order of null, blank, and en_US language:
>
> $ curl -s -H "accept: application/json" -H "Content-Type:
> application/json" -X POST "
> http://localhost:8080/rest/items/find-by-metadata-field; -d '{"key":
> "cg.subject.ilri","value": "SEEDS"}' | jq length
> 55
> $ curl -s -H "accept: application/json" -H "Content-Type:
> application/json" -X POST "
> http://localhost:8080/rest/items/find-by-metadata-field; -d '{"key":
> "cg.subject.ilri","value": "SEEDS", "language":""}' | jq length
> 34
> $ curl -s -H "accept: application/json" -H "Content-Type:
> application/json" -X POST "
> http://localhost:8080/rest/items/find-by-metadata-field; -d '{"key":
> "cg.subject.ilri","value": "SEEDS", "language":"en_US"}' | jq length
>
> The results don't even remotely match, and there are actually more results
> from the API than from the database (85 vs 89).
>
> Does anyone know what's up with either of these issues? Thanks,
> --
>
> 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 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 

[dspace-tech] Implimentation of login

2016-11-11 Thread arjun k
Dear sir,

 My name is arjun I am workin in an engineering college and also i am  
using dspace version 5.4 xmlui platform as a digital repository.

Now we are planning to implement the user login feature . What i need is a 
single user account (e-person) with password and *the password resetting 
need to be disabled for the same user which means,*

USER  ACCOUNT/E-Person : student@vidyaacademy
   PASSWORD : student

Here the password of the E-PERSON is given as  "student"This  password 

*cannot be resetted at anycost.ONLY ADMIN CAN DO THIS RESETTING.One 
resetting is done some others using same id and password cant reach to the 
contents in repository.*
Due to numerous number of students it is very difficult to create user id 
for all students.

can you anybody help me?

-- 
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] OAI harvesting

2016-11-11 Thread Luiz dos Santos
Hi,

   Actually is the another way around, you should say which collections do
you want harvest in the oai verb, but if you want to hide collections in
the oai, by default DSpace doesn't have this functionality.

Best

On Friday, November 11, 2016, Róbert Bodnár  wrote:

> Hi all!
> May I ask if it is possible to exclude communities and collections from
> being harvested by the OAI?
> More exactly I want to find a way to exclude some collection when
> transmitting data through OAI to other parties.
> Any ideas are welcome!
> Thank you very much!
> B. Róbert
>
> --
> 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.
>


-- 
Luiz Claudio Santos
http://luizclaudiosantos.me/

-- 
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-tech] How to enable Author Profile (new V5 feature)?

2016-11-11 Thread Too Anuchit
How to apply this "database_schema 
"
 
path to dspace-src 5.6?  The  build.xml 

 is 
also different. 

On Thursday, August 27, 2015 at 1:26:23 AM UTC+7, Bram Luyten wrote:
>
> Hello,
>
> the code changes are here:
> https://github.com/DSpace/DSpace/pull/668/files
>
> Specific documentation on how to checkout pull request branches can be 
> found here:
> https://wiki.duraspace.org/display/DSPACE/Development+with+Git
>
> hope this helps,
>
> Bram
>
> -- 
> [image: logo] 
> *Bram Luyten* 
> *2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
> *Esperantolaan 4, Heverlee 3001, Belgium*
> www.atmire.com 
> 
>  
>
> On 21 April 2015 at 16:50, Oscar Sanchez Gomez  > wrote:
>
>> Hi,
>>
>>  
>>
>> No matter if the option is integrated with ORCID functionality or by 
>> custom database tables. Once the database tables are created, how and where 
>> can I modify the Dspace code to include the author profile functionality? 
>> Can you provide the code files and the modifications to activate this 
>> functionality?
>>
>>  
>>
>> Cheers,
>>
>>  
>>
>> Ing. Oscar Sánchez G., MAE
>>
>> *Profesional en TI*
>>
>> *Biblioteca José Figueres Ferrer*
>>
>> *Instituto Tecnológico de Costa Rica*
>>
>> *(*  *Tel: 2550-2135*
>>
>> *7*   *Fax: 2591-4820*
>>
>> *+*  *Apdo Postal:  159-7050*
>>
>>  
>>
>> *De:* Bram Luyten [mailto:br...@atmire.com ] 
>> *Enviado el:* miércoles, 15 de abril de 2015 08:25 a.m.
>> *Para:* bibli...@us.es 
>> *CC:* Dspace Tech
>> *Asunto:* Re: [Dspace-tech] How to enable Author Profile (new V5 
>> feature)?
>>
>>  
>>
>> Hi,
>>
>>  
>>
>> thank you for your interest in this work. Te feature did not make it into 
>> DSpace 5 in its current form. You can read the specific context here:
>>
>> https://jira.duraspace.org/browse/DS-2169
>>
>>  
>>
>> However, you can still get the contributed code from:
>>
>> https://github.com/DSpace/DSpace/pull/668
>>
>>  
>>
>> One of the challenges with the existing implementation is that it is not 
>> integrated with the DSpace 5 ORCID functionality. 
>>
>> My personal 2 cents are that it would be nice to have an author profile 
>> page that reads from the ORCID related authority cache, instead of custom 
>> database tables.
>>
>>  
>>
>> best regards,
>>
>>  
>>
>> Bram
>>
>>
>> -- 
>>
>> [image: logo] 
>>
>> *Bram Luyten* 
>> *2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
>> *Esperantolaan 4, Heverlee 3001, Belgium*
>> www.atmire.com 
>> 
>>  
>>
>>  
>>
>> On 14 April 2015 at 11:21,  wrote:
>>
>> Hi
>>
>> I have seen that one of the new features on version 5 is the Author 
>> Profile. I'm running DSpace v5.1 on XMLUI but I can't see how to enable 
>> this functionality.
>>
>>
>> https://wiki.duraspace.org/display/DSPACE/Author+Profiles+XMLUI#AuthorProfilesXMLUI-Installation
>>
>>  
>>
>> In he DSpace wiki it says that it is enable by default, but I don't have 
>> any new link or option.
>>
>>  
>>
>> How can I enable it?
>>
>>  
>>
>> Thank you
>>
>>  
>>
>>
>>
>> --
>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
>> Develop your own process in accordance with the BPMN 2 standard
>> Learn Process modeling best practices with Bonita BPM through live 
>> exercises
>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- 
>> event?utm_
>> source=Sourceforge_BPM_Camp_5_6_15_medium=email_campaign=VA_SF
>> ___
>> DSpace-tech mailing list
>> dspac...@lists.sourceforge.net 
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> 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.