Forum Replies Created

Viewing 15 replies - 196 through 210 (of 476 total)
  • Plugin Author Robert Heller

    (@robertpheller)

    What are you using for barcodes? Are you using the auto generated barcodes?

    Plugin Author Robert Heller

    (@robertpheller)

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

    Plugin Author Robert Heller

    (@robertpheller)

    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.

    Plugin Author Robert Heller

    (@robertpheller)

    I also fixed this and made a new minor release.

    Plugin Author Robert Heller

    (@robertpheller)

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

    Plugin Author Robert Heller

    (@robertpheller)

    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.

    Plugin Author Robert Heller

    (@robertpheller)

    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.

    Plugin Author Robert Heller

    (@robertpheller)

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

    Plugin Author Robert Heller

    (@robertpheller)

    Have you read the documentation (http://plugins.svn.wordpress.org/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.

    Plugin Author Robert Heller

    (@robertpheller)

    OK, 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.)

    Plugin Author Robert Heller

    (@robertpheller)

    What happens when you go to the URL (be sure to be logged in first):

    http://scrime.labri.fr/wp-content/plugins/weblibrarian/PlaceHoldOnItem.php

    Plugin Author Robert Heller

    (@robertpheller)

    It looks like a problem with the theme you are using. My code does not call a function named ot_register_meta_box…

    Forum: Plugins
    In reply to: [WebLibrarian] Add Tyoe
    Plugin Author Robert Heller

    (@robertpheller)

    On the Librarian’s dashboard is a admin menu titled “Circulation Types”. You add new ones there. It just associates a ‘name’ with a lending period. For example you can lend books or 3 weeks (21 days) and videos or 1 week (7 days).

    Plugin Author Robert Heller

    (@robertpheller)

    This is *possibly* a server configuration issue or a browser problem. I don’t know which. It *could* be a bug, but I am unable to reproduce it with my test site.

    Is this on a public facing site? If so can you give me a user login and a patron id, so that I can test it using Firebug and see what is going on?

    In the meanwhile, what browser(s) have you tried? And do you know what operating system your server is running?

    Plugin Author Robert Heller

    (@robertpheller)

    For a specific item:

    [weblib_itemdetail detaillevel='long' barcode='the barcode']

    (Replace ‘the barcode’ with the actual barcode, in quotes)

    Note the ‘standard’ short codes for a search page:

    [weblib_searchform] [weblib_itemlist holdbutton=1 inlinemoreinfo=1]

    Will display the search *results* using a ‘brief’ detail level, and will provide links in the search results to get a long detail display of the selected item. The weblib_itemlist short code will only display items in the result list at a ‘brief’ detail level — it is not possible to make it list search results at a ‘long’ detail level, unless you modify the PHP code that expands the short codes. That PHP code is in the file includes/short_codes.php — if you are confortable with hacking the PHP you can modify the code, either to make the weblib_itemlist short code display a long detail level or modify what the weblib_itemdetail short code displays at a ‘brief’ detail level.

Viewing 15 replies - 196 through 210 (of 476 total)