Re: [dspace-tech] Dspace 5.1 Adding Static Pages

2016-09-27 Thread Alan Orth
You'll have to add the links to the sidebar. I haven't done exactly
this, but I have re-ordered the sidebar links in Mirage 2 before[0].
We're not using stock Mirage 2 but the concept is the same: create an
XSL template, include it in your theme's `xsl/core/navigation.xsl`.
See our commit here for some context of where you'd need to include
your template:

https://github.com/ilri/DSpace/commit/dae2e77f4ce654b8c41cddf90de9b5d8a0efea86

That should get you started,

On Sun, Sep 25, 2016 at 9:50 PM, ally bitebo  wrote:
> Hello Alan,
>
> Based on your help I managed to create those pages and I can access them
> through
> localhost8080/xmlui/page/about but my biggest challenge now is to create
> side bar menu to link with this page.
>
> Any help on how to add side bar menu?
>
> All
>
>
> On Sunday, September 25, 2016 at 1:14:49 PM UTC+3, Alan Orth wrote:
>>
>> Hi, Ally.
>>
>> We added a static about page to our repository by modifying our custom
>> Mirage 2 theme in XMLUI. You can see the code in this pull request on
>> GitHub:
>>
>>
>> https://github.com/ilri/DSpace/pull/256/commits/665dfa9ad55d7a1aa885e76a7df69c825bb78960
>>
>> Assuming you're using XMLUI that should get you started with the page
>> itself. I can't remember exactly, but I think the static pages are
>> automatically added to the footer. Our Mirage 2 theme is customized so
>> it might be different, but you can see "About" in the footer here:
>>
>> https://cgspace.cgiar.org/
>>
>> Alan
>>
>> On Sat, Sep 24, 2016 at 12:55 AM, ally bitebo  wrote:
>> > Hello All,
>> >
>> > I am requesting help to add static pages for FAQ, help page,About page
>> > and
>> > its menu at side bar menu above my account side bar box.
>> >
>> > Regards
>> >
>> > Ally
>> >
>> > --
>> > 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...@googlegroups.com.
>> > To post to this group, send email to dspac...@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...@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.



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


[dspace-tech] External authentication

2016-09-27 Thread Evgeni Dimitrov
I need some users to be authenticated by an external system. If they are
authenticated, they should become users of a certain group (e.g. "G4"),
which gives them read access to a certain collection.

Assuming that there is an user "u...@g4.xx" in group G4, I am wondering
will it work to have an AuthenticationMethod with such an authenticate
method:

public int authenticate(
Context context, String username, String password, String realm,
HttpServletRequest request)
throws Exception {
if (validUser(username, password)) {
EPerson eperson = EPerson.findByEmail(context, "u...@g4.xx");
context.setCurrentUser(eperson);
return SUCCESS;
}
else {
return BAD_CREDENTIALS;
}
}

I don't know is it acceptable to have several users logged in
simultaneously as one and the same "u...@g4.xx"?
Or can I make the "externally authenticated" users "anonymous" but
belonging to group G4?

-- 
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] embed piwik iframe into page-structure.xsl

2016-09-27 Thread Mesut Güngör
I am trying to embed piwik realtime visitor map into dspace home page 
(page-structure.xsl)
First i get the iframe embed link from piwik and paste it into the 
http://www.html2xsl.com/index.php site to convert the 
html code into xsl structure. i get the following.

*The IFRAME embed code i get from PIWIK*

http://openaccess.iyte.edu.tr/piwik/index.php?module=Widgetize&action=iframe&widget=1&moduleToWidgetize=UserCountryMap&actionToWidgetize=realtimeMap&idSite=1&period=day&date=yesterday&disableLink=1&widget=1";
 
scrolling="no" frameborder="0" marginheight="0" 
marginwidth="0">

converted to xsl and give it a template name and call it in 
page-structure.xsl as below


 


 


widgetIframe

100%
350

*http://openaccess.iyte.edu.tr/piwik/index.php?module=Widgetize&action=iframe&widget=1&moduleToWidgetize=UserCountryMap&actionToWidgetize=realtimeMap&idSite=1&period=day&date=yesterday&disableLink=1&widget=1*

no
0
0
0



 


if i visit the page it gives the following error

org.xml.sax.SAXParseException: The reference to entity "*action*" must end 
with the ';' delimiter.


This action word is in the IFRAME URL. 
How should i write this src url not to get error ? I have also tried to 
encode the url with url encoder but not luck it also did not work. 

Thanks. 




-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Re: External authentication

2016-09-27 Thread Evgeni Dimitrov
Is it possible to have such an authenticate method:

public int authenticate(
Context context, String username, String password, String realm, 
HttpServletRequest request)
throws Exception {
if (validUser(username, password)) {
context.setSpecialGroup(G4);
}
else {
return BAD_CREDENTIALS;
}
}

And if it is possible, then do I need such an getSpecialGroups method?

public int[] getSpecialGroups(Context context, HttpServletRequest request) {
for (Group group: context.getSpecialGroups()) {
. . .
}
return groups;
}


>

-- 
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] full item record view abstract unexpected display

2016-09-27 Thread Courtney Matthews
Hello all,

Words in the full item view record abstract are being split between lines 
when using Firefox and Internet Explorer. Example 
- https://uwspace.uwaterloo.ca/handle/10012/10323?show=full.

Using the Firefox inspect tool we removed the word-break class and this 
resulted in the expected display.

Which scss file should we edit in dspace-source to prevent this from 
happening?

As a caveat the abstract displays as expected in Chrome.

Thanks for your help.

Best,

Courtney


Courtney Earl Matthews 

Digital Repository Librarian 

University of Waterloo Library 

(519) 888-4567 ext. 30185 

courtney.e.matth...@uwaterloo.ca

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

2016-09-27 Thread Thomas Adeyinka
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.