Robert Heller
Forum Replies Created
-
Forum: Plugins
In reply to: [WebLibrarian] UTF support?Note: allowing a loan period of 0 won’t prevent circulation of the item, it will just make the item due right away and it will just be overdue upon checkout.
Forum: Plugins
In reply to: [WebLibrarian] UTF support?Well I don’t know what is going wrong. I don’t *think* I need to do anything special to get UTF-8. The code just outputs what is in the database and it is up to the browser to display things properly. WP itself presumably is sending a proper ‘Charset:’ heading, based on how WP is configured. The only possiblity I can think of is the database field types could be wrong. Most of the fields are set to varchar(n), maybe they need to be something else?
To allow a loan period of 0, you would need to edit database_code.php in the includes sub-directory, changing this method of class WEBLIB_Type:
function set_loanperiod($days) { //file_put_contents("php://stderr","*** Type->set_loanperiod($days)\n"); //file_put_contents("php://stderr","*** Type->set_loanperiod(): this->dirty = $this->dirty\n"); if ($days < 1) { trigger_error("Illegal loan period: $days\n", E_USER_ERROR); } $this->theloanperiod = $days; $this->dirty = true; //file_put_contents("php://stderr","*** Type->set_loanperiod(): this->dirty = $this->dirty\n"); }Change the test for the Illegal loan period error.
Forum: Plugins
In reply to: [WebLibrarian] WP 4.1 throws mistakeThe low-level insert methods for each of the DB classes (named ‘store’) return either a new (positive) ID on successful insertion or update and a negative value if the insert or update failed (for whatever reason). In this case, the Patron DB class’s store method is checking to be sure that the state field is on the proper size. Other checks include checking for non-empty fields, etc.
Forum: Plugins
In reply to: [WebLibrarian] WP 4.1 throws mistakeDid you deactivate and reactivate the plugin? You might need to delete the patron table to force its recreation. Also did you update line 74 of includes/database_code.php?
if (strlen($this->record['state']) != 2) return(-1);Forum: Plugins
In reply to: [WebLibrarian] WP 4.1 throws mistakeIf you changed the PHP code and this is causing problems, you will have to debug the PHP code. What *exactly* did you change?
Forum: Plugins
In reply to: [WebLibrarian] UTF support?The system should have UTF support. You probably need to be sure your web browser AND web server support UTF and in fact support the same UTF coding. Also, you need to be sure your Word Press install is also supporting UTF.
Forum: Plugins
In reply to: [WebLibrarian] WP 4.1 throws mistakeI don’t know what is causing problem #1.
For #2, you will need to hack the code:
includes/database_code.php — this is where the database fields are defined.
includes/WEBLIB_Patrons_Admin.php — this is where the form validation is implemented.
Forum: Plugins
In reply to: [WebLibrarian] result does not appearYou have the search page as some page or post other than the home page and you are using the default permalink (?p=nnn). Change the permalink setting to anything other than the default (?p=nnn).
Nevermind. I created a fresh set of keys and things are working now.
Forum: Plugins
In reply to: [WebLibrarian] The User Manual Won't OpenJust to be clear: The PDF downloaded from the URL in my previous reply opens just fine in all three of the PDF viewers I have: gv (GhostView), xpdf, and evince, all under CentOS 5 (Linux). It also works with the built-in PDF viewer in Firefox as well.
Forum: Plugins
In reply to: [WebLibrarian] The User Manual Won't OpenWhat platform are you on? What web browser did you use to download the PDF? What application are you using to open the PDF? The md5sum of the PDF file should be:
dfb599afb02690a472f126a637af4942 user_manual.pdfThe file should be 1548666 bytes long. The offical download link is http://plugins.svn.wordpress.org/weblibrarian/assets/user_manual/user_manual.pdf
Forum: Plugins
In reply to: [WebLibrarian] Circulation Stat is not getting correctThe Circulation Statistics code is somewhat broken and I haven’t had time to fix it. Basically, you can’t really use it at present.
Forum: Plugins
In reply to: [WebLibrarian] add a HELP note besides the search boxIt looks like you used to WYSIWYG editor and it put in extra <p> tags, etc. To get things right, you will probably have to turn off the WYSIWYG editor and directly hack on the HTML. It should be possible to get things looking better that way.
Forum: Plugins
In reply to: [WebLibrarian] add a HELP note besides the search boxWell the weblib_searchform short code creates a single <form>…</form> block.
I *guess* you could do something like:
<table><tbody><tr><td align="top">[weblib_searchform ...]</td><td align="top">Help</td></tr></tbody></table> [weblib_itemlist ...]Forum: Plugins
In reply to: [WebLibrarian] Added alert for hold, is it ok?I am not making new-feature type updates. I am only fixing bugs.