Forum Replies Created

Viewing 15 replies - 226 through 240 (of 476 total)
  • Plugin Author Robert Heller

    (@robertpheller)

    The request feature is only active if the user is logged in and has an associated patron id.

    The styling is all a function of your theme. I don’t know why your theme is set up that way, but it sets the width of all ‘<input …> tags to 100%, gives them 16px worth of padding (which is quite excessive by most standards), selects a large size for the font, etc. You really should ask the theme’s author why he or she did that and if there is a way of adjusting that (maybe there are theme settings you can change).

    As for the images, the style settings (in front.css) for the thumbnail images are:

    weblib-item-thumb This is the styling of the thumbnail image.
    From front.css:

    .weblib-item-thumb {
        padding: 0px 4px;
    
    }
    .weblib-item-thumb img {
        min-width: 48px;
        min-height: 72px;
    }

    Your image for the Meet the Orchestra book is 75 px wide by 61 px high. It is being ‘stretched’ a little bit to meet the min-height setting. Either you need a larger image or you need to override the style settings in front.css. I imagine something similar is happening with the other image.

    Plugin Author Robert Heller

    (@robertpheller)

    I’ve just released a new version that should fix this issue.

    Plugin Author Robert Heller

    (@robertpheller)

    Ok, I just looked at the code WP used for listing users in the admin pages and found out the problem. I have a fix in the works — I need to do some testing, but you should expect a new version in a few days.

    Plugin Author Robert Heller

    (@robertpheller)

    Whatever works for you.

    Plugin Author Robert Heller

    (@robertpheller)

    The code uses WP_User_Query():

    In includes/WEBLIB_Users_Admin.php (function prepare_items()):

    global $usersearch;
        $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
        // Deal with columns
        $columns = $this->get_columns();    // All of our columns
        $hidden  = array();         // Hidden columns [none]
        $sortable = $this->get_sortable_columns(); // Sortable columns
        $this->_column_headers = array($columns,$hidden,$sortable); // Set up columns
    
        $per_page = $this->get_per_page($option);
        $paged = $this->get_pagenum();
    
        $args = array(
                    'number' => $per_page,
                    'offset' => ( $paged-1 ) * $per_page,
                    'search' => $usersearch,
                    'fields' => array('id','user_login') );
    
        $wp_user_search = new WP_User_Query( $args );

    See http://codex.wordpress.org/Class_Reference/WP_User_Query for more information on WP_User_Query().

    Plugin Author Robert Heller

    (@robertpheller)

    Totally not tested and not *specificly* coded for such support. I guess it depends on whether *Word Press* itself supports Arabic and other Unicode right-to-left text…

    Plugin Author Robert Heller

    (@robertpheller)

    I am not presently planning any new features. At this point I am only fixing bugs.

    Holds and Checkouts are handled at a low-level in the includes/database_code.php file. There isn’t any sort of ‘count’ on how many holds or checkouts a partitular patron has (it could be computed with a suitable database query (eg count(*) … where patronid = id). Right now, the hold and checkout code in includes/database_code.php makes no checks on number of holds or checkouts. The low-level functions return a transaction id (an integer > 0) on success. Returning 0 or a negative value would indicate failure. A simple-minded approach would be to include a count() db lookup and return a failure status if the count is at the (hardcoded?) limit.

    The php file PlaceHoldOnItem.php actually manages placing holds — this is an AJAX target referenced from js/admin.js [admin side] or js/front.js [front side]. Checkouts are handled from the includes/WEBLIB_Circulation_Admin.php file. This code checks the result of the low-level hold and checkout functions in includes/database_code.php and if the transaction id (the result) is <= 0, report that the hold or checkout failed.

    Plugin Author Robert Heller

    (@robertpheller)

    OK, I just pushed an update that should fix the problem.

    Plugin Author Robert Heller

    (@robertpheller)

    OK, it is a real bug, can you please go to

    http://bugzilla.deepsoft.com/enter_bug.cgi?product=Web%20Librarian

    and file a bug report.

    And yes, the correct way to handle multiple copies is to enter each copy with its own barcode. Each barcode *always* uniquely refers to a single ‘physical’ copy. Even Evergreen / Open ILS does this — the difference is that Evergreen / Open ILS does ‘title’ level holds and effectively has a multi-tiered database: rather than a ‘flat’ collection database of barcode indexed records, the database has multiple levels, with a ‘title’ database containing generic title information, with ‘links’ to a list of barcode records which deal with each physical copy. The physical copies might be scatter across multiple libraries and might be in transit from one library to another or might be checked out to a patron, etc. The Web Librarian plugin is not that complex, which is fine for a small *single* library, which rarely has multiple copies of items.

    Plugin Author Robert Heller

    (@robertpheller)

    OK, it looks like the PHP code is doing what it is supposed to do. That leaves the web browser as the source of the problem. What web browser are you using? What happens if you use a *different* web browser? (I know that FireFox *works* — it is what *I* use.)

    Plugin Author Robert Heller

    (@robertpheller)

    Try this URL:

    http://pret-immobilierfacile.com/wp-content/plugins/weblibrarian/AWSXmlGet.php?Operation=ItemSearch&ResponseGroup=Small&SearchIndex=Books&Title=Roadside%20Picnic&ItemPage=1&nocache=148371.90017427094

    (that is ‘weblibrarian’ instead of ‘WebLibrarian’ — I forgot that the wordpress repo convert camel case to all lowercase).

    Plugin Author Robert Heller

    (@robertpheller)

    OK, you have to do some low-level debugging.

    First of all, do you know exactly what operating system your *server* is running?

    Secondly, do you have access to your server’s log files? Specificly the Apache error_log file? (The web server software is Apache, right?)

    The next step is to see what the Amazon AJAX php code is doing. In the location field of your web browser type this:

    http://yourhost.yourdomain/wp-content/plugins/WebLibrarian/AWSXmlGet.php?Operation=ItemSearch&ResponseGroup=Small&SearchIndex=Books&Title=Roadside%20Picnic&ItemPage=1&nocache=148371.90017427094

    Replace ‘yourhost.yourdomain’ with your actual server host name. This *should* result in either a proper XML response or an error message (in your case probably an error message of some sort). The error message will probably not be very informative and we will need to look at the server error log to find the problem. Somewhere near the end of the error log will be reference to AWSXmlGet.php and some PHP error messages. These error messages will tell us what is wrong. I suspect there is some server config error somewhere — *I* am not able to duplicate this error so I can’t debug it on my server — we have to debug it on your server.

    Note: if you get a proper XML response, then the problem is (somehow?) with your web browser.

    Plugin Author Robert Heller

    (@robertpheller)

    Please read this thread:

    https://wordpress.org/support/topic/ajax-500amazon-error-solved

    Basically, you need to ask your hosting provider to install php5-curl. This should make things work.

    Plugin Author Robert Heller

    (@robertpheller)

    The FAQ is on the Plugin Page (and in the readme.txt file).

    The reason for separating the librarian admin pages from the administrator dashboard is a combination of the principle of ‘privilege separation’ and because the original purpose for the plugin was as a intermediate library management system for my local library (which ended up not being necessary, because the regional library system got its act together in a more timely fashion than was originally thought). The librarian at my local library is NOT a computer geek and would have found the full admin dashboard a little overwhelming. I wanted to give her a more stripped down interface, with just the things she needed and not any extra stuff. I have since discovered that this is actually not a terribly odd situation: often with small organizations with libraries the librarian is not a techy, but has an ‘IT Person’ (either paid or volunteer) to deal with techy issues. This IT Person would set up the WP site, install the plugin, and create the user login(s) for the librarian and any library staff people and deal with things like the look of the site (eg the theme and any additional plugins) and such like.

    I have not bothered to update the version of WP in the readme.txt, since I have not had any reason to update the plugin. At this point the plugin is pretty much stable and I have other things I need to work on. I function on an ‘If it ain’t broke, don’t fix it’ principle in general.

    Plugin Author Robert Heller

    (@robertpheller)

    Yes it work with WP 4+

    Did you read the documentation (eg the User Manual). Please RTFM!

    From the FAQ:

    Where are the admin menus?

    You’ve successfully installed the Web Librarian, but none of the admin menus (Patrons, Collection, Circulation Types, Circulation Desk, or Circulation Stats) show up. Why is this? This is because you are probably logged in as the web site administrator (your user role is Administrator). You need to create at least a user with a user role of Librarian and then log in as this user. Optionally, you can also create users with roles of Senior Aid or Volunteer, who have lesser privileges — these latter users make sense if you are a large enough library that has additional staff (“Senior Aid”) or uses additional workers (“Volunteer”) who man the circulation desk(s). It is important to read the subsection titled “User Role Setup” in the “Installation and basic setup” section carefully and to be sure you understand it fully.

Viewing 15 replies - 226 through 240 (of 476 total)