OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Is the PKP ohs database a Z39.50/SRU/SRW compliant database

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Re: Is the PKP ohs database a Z39.50/SRU/SRW compliant data

Postby asmecher » Mon Apr 07, 2014 9:26 am

Hi Vijay,

i. Our developers use a variety of IDEs; some use Eclipse, for example. I use vim under Linux. I don't have any experience with Netbeans for PHP, but I don't know any reason why it wouldn't be appropriate.

ii. There is already email functionality built into OHS, as part of the pkp-lib shared library in the lib/pkp subdirectory, which OJS, OCS, and OMP also use. See e.g. http://your-site.com/index.php/user/email (with your domain etc. in place of your-site.com).

iii. See docs/README for system requirements.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Is the PKP ohs database a Z39.50/SRU/SRW compliant data

Postby singhkarki » Tue May 06, 2014 10:35 pm

hello Sir,
In my instance of pkp ohs i have added a link, send email for every record , and when i click on that it redirects me to : http://192.168.8.150/index.php/user/email
Now what happens when i type an e-mail message and send it to any email id , it forwards me to the page :
http://192.168.8.150/index.php/user/user

and the 404 Not Found error message gets displayed.

I have written a test class to check the mail() function provided by php as follows:

<!DOCTYPE html PUBLIC"-//W3C/DTD XHTML 1.0 Transitional/EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Email</title>
</head>
<body>
<?php
$to="singhkarki@yahoo.com";
$subj="Test mail";
$message= "This is a test mail";
$result=mail($to,$subj,$message);
var_dump($result);
?>

</body>
</html>


and when i run this in the browser at :

http://192.168.8.150/vmail.php

it gives me :

bool(true)

Could you please elaborate what steps do i need to perform so that the email can be sent for every record (book).

thanks,

Vijay
singhkarki
 
Posts: 51
Joined: Fri Nov 29, 2013 3:28 pm

Re: Is the PKP ohs database a Z39.50/SRU/SRW compliant data

Postby asmecher » Wed May 07, 2014 7:27 am

Hi Vijay,

Do you want this email link to be available to anyone, e.g. even if they aren't logged in? In that case, it won't work -- the feature is intended only for logged-in users, and will be spammed heavily if you disable the login requirement. Have you considered just using mailto: URLs rather than having the email sent server-side?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Is the PKP ohs database a Z39.50/SRU/SRW compliant data

Postby singhkarki » Thu May 08, 2014 5:18 am

hello Sir,
Thanks for your reply,
I have created a user(with no role) and i log in to ohs system with this newly created user, browse for a record(book) and click on the link: send email (to loan this particular book).
The message ohs gives me is as follows:
The message you are attempting to send has too many recipients.
Now i click on the send email link beside the above message, and when i check my inbox , there is no mail.

So, how can a logged in user make use of the email functionality?
I haven't yet considered the mailto option.Currently i am working on implementing Z39.50 functionality in ohs.

thanks and best regards.

Vijay
singhkarki
 
Posts: 51
Joined: Fri Nov 29, 2013 3:28 pm

Re: Is the PKP ohs database a Z39.50/SRU/SRW compliant data

Postby asmecher » Thu May 08, 2014 8:24 am

Hi Vijay,

In the [email] section of your config.inc.php file, make sure you have the following configuration directives:
Code: Select all
[email]
max_recipients = 5
time_between_emails = 3600
This is important to prevent your system from being used as a spam relay.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Previous

Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: Bing [Bot] and 2 guests