Robert Heller
Forum Replies Created
-
Forum: Plugins
In reply to: [WebLibrarian] Collection items adding then disappearingOK, it *sounds* like there is something about some of the items that are failing to be added — some fields are being passed the sanity checks, but the low-level database insert code is failing for some reason.
There is some debugging code in the low-level database insert code (includes/database.php starting at line 831 — function store() in class WEBLIB_ItemInCollection). The code is commented out — the lines start line this: “//file_put_contents(“, you can edit this file and remove the “//”s. Debugging messages will go to the Apache error log file (you might need to talk to your server admin about getting access to that file). This might tell us what is going on.
Forum: Plugins
In reply to: [WebLibrarian] Collection items adding then disappearingThe plugin does do some ‘sanity checks’, making sure there is correct information in certain fields — maybe something is screwy there. Maybe there is a field that is wrong and it is not reporting the error, but not inserting the item either. You can try setting the Debug Database flag to ON, maybe that will show what is happening.
Forum: Plugins
In reply to: [WebLibrarian] Collection items adding then disappearingThe only thing I can think of that cause this is that somehow there are duplicate barcodes, and a new item is overwriting an old one, thus making the old one ‘disappear’. There was an old bug with the bar code incrementer that was recycling barcodes that was causing problems, but that bug has long been fixed.
Is there any sort of pattern to the ‘disappearing’ items? Are you able to create a 43rd item? Or when you create the 43rd item does one of the other items disappear? Or does the 43rd item disappear?
Forum: Plugins
In reply to: [WebLibrarian] Collection items adding then disappearingWhat are you using for barcodes? Are you using the auto generated barcodes?
Forum: Plugins
In reply to: [WebLibrarian] Availability of booksIt is part of the front-side short-codes to include information about the number of holds (if any) and if the book is checked out when it is due (or if it is overdue). This information is also shown on the circulation page (back side) listing as well.
Forum: Plugins
In reply to: [WebLibrarian] Can patrons have Postal Code rather than Zip Code?You’ll have to modify the code. Look in includes/WEBLIB_Patrons_Admin.php,
function checkiteminform() and change this code:$newzip = $_REQUEST['zip']; if (!($newzip != '' && (strlen($newzip) == 5 || strlen($newzip) == 10) && preg_match('/\d+(-\d+)?/',$newzip) )) { $result .= '<br /><span id="error">'.__('Zip is invalid','web-librarian') . '</span>'; }You should change the match pattern passed to preg_match to match Canadian
postal code formats.and in the function display_one_item_form() there is this code fragment:
<tr valign="top"> <th scope="row"><label for="zip" style="width:20%;"><?php _e('Zip:','web-librarian'); ?></label></th> <td><input id="zip" name="zip" style="width:75%;" maxlength="10" value="<?php echo $this->viewitem->zip(); ?>"<?php echo $ro; ?> /></td></tr>You want to change the label for the field.
I also fixed this and made a new minor release.
Forum: Plugins
In reply to: [WebLibrarian] How to contribute functionality to this pluginHmm… The plugin is coded to get the E-Mail from the WordPress login — there are a number of places where that is done — did you replace all of those pieces of code? And why did you do that?
I don’t really have a way to handle code check ins. And at this point I don’t have the time, etc. to deal with new features.
Your best option would be to fork the code — basically create a new plugin based on this plugin with your changes.
Forum: Plugins
In reply to: [WebLibrarian] Remove a patron's hold?There isn’t a way for a librarian to release a patron’s hold. The hold will eventually expire.
The *patron* can release the hold.
I guess there is a functional hole in the plugin — a librarian probably should be able to release a hold.
You *could* just check the item out to the patron and then check it back in.
Forum: Plugins
In reply to: [WebLibrarian] can I delete the "no image" sign?The CSS code goes into a stylesheet file (.css), or contained in a
<style>tag:<style> .weblib-item-thumb img { display: none; } </style>Some themes allow for adding ‘extra’ CSS (Style) code somewhere on one of their seting pages.
Forum: Plugins
In reply to: [WebLibrarian] How a patron will select books from front-end?There is no direct link between the media library and the thumbURL, but once you have uploaded images to the media library, you always copy the URL of the image(s) in the media library and then paste them into the collection update page (thumburl’s entry).
Forum: Plugins
In reply to: [WebLibrarian] How a patron will select books from front-end?Have you read the documentation (http://plugins.svn.ww.wp.xz.cn/weblibrarian/assets/user_manual/user_manual.pdf)? A patron needs to create a WordPress login and his/her WordPress username needs to be associated with a Patron ID (either the user can claim the patron it or the librarian can set it). Once this has been done and assuming you have set up a page or post with the search and list short codes (make sure the permalink setting is set right), the patron/user does a search for the book and the result list will have Request buttons. When the patron clicks on the button next to the book he/she would like, the system places a ‘Hold’ on the book. This will inform the librarian that the book is wanted and the librarian can then set it aside (eg on a Holds shelf) and when the patron next visits the library (in person), the patron can then check out the book.
Forum: Plugins
In reply to: [WebLibrarian] Ajax error : ForbiddenOK, there is probably something wrong with the owner/permissions of the directory or files under wp-content/plugins/weblibrarian or there is something in the webserver setup or something weird going on with .htaccess file(s). Probably some misconfiguration due to over zealious security reasons.
What operating system is the *server* running? What version of Apache?
What is the owner and permissions under wp-content/plugins/ (eg what does ‘ls -lR wp-content/plugins/’ look like)?
Are there any .htaccess files? What is in them? What does the Apache configuration for the website look like?
(These are mostly going to be questions you need sit down with your server admin and ask and then figure out what is wrong based on the answers — you don’t need to send the answers to me.)
Forum: Plugins
In reply to: [WebLibrarian] Ajax error : ForbiddenWhat happens when you go to the URL (be sure to be logged in first):
http://scrime.labri.fr/wp-content/plugins/weblibrarian/PlaceHoldOnItem.php
Forum: Plugins
In reply to: [WebLibrarian] Ajax error : ForbiddenIt looks like a problem with the theme you are using. My code does not call a function named ot_register_meta_box…