• Resolved Anne89

    (@anne89)


    I am trying to use the Web Librarian plugin for our wordpress website.
    And my first question is, after I have loaded some books into the database without their cover image, there is a “no image” sign showed for each book on the webpage. We don’t want to upload cover image for each book. So is there any way that I can delete that sign?
    Also, is there a way that I can list all the subjects of each book under the title on the webpage?
    Thanks!

    https://wordpress.org/plugins/weblibrarian/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Robert Heller

    (@robertpheller)

    And my first question is, after I have loaded some books into the database without their cover image, there is a “no image” sign showed for each book on the webpage. We don’t want to upload cover image for each book. So is there any way that I can delete that sign?

    You can add a style sheet (CSS) code like this:

    .weblib-item-thumb img {
       display: none;
    }

    Also, is there a way that I can list all the subjects of each book under the title on the webpage?

    I am not sure what you mean by this question. Are you talking about the long display book pages or something else?

    Thread Starter Anne89

    (@anne89)

    Thank you so much!
    For the second question, I mean how can I list the subjects under the “call number” for each book? For example, now people can see the title, authors and call number for each book on the webpage. So I just wonder can I also display the subjects? Thanks!

    Plugin Author Robert Heller

    (@robertpheller)

    Ok, you mean in the ‘brief’ item detail. The subject is listed in the ‘long’ form. Normally, the item_list short code lists the current page worth of items using a ‘brief’ level of detail: the item thumb, the title, the author, the call number, and the checkout/hold status, with a request button (if a user with a parton id is logged in). The title is a link to a page with just that item, displayed with a ‘long’ level of detail — basically everything about the item.

    To change what is displayed as ‘brief’ you would have to change the item_detail short code.

    Thread Starter Anne89

    (@anne89)

    Thank you very much!

    MonsieurW

    (@monsieurw)

    I am also trying to get the item list to show more detail than just the title, the author, the call number, and the checkout/hold status. I have been trying to use the info in your user guide, but no matter what I try, I cannot seem to get the detaillevel short code to set to ‘long’. Could you maybe give me an example of how to write that code so it works?

    Thanks!

    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.

    I also want to delete the “No Image” sign in our collection. Where do I put the CSS code you mentioned in #2? When I copy and paste the code in my HTML view, it just shows the code, not what the code is suppose to do.

    Thanks.

    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.

    Thread Starter Anne89

    (@anne89)

    If you go to “appearance” and then “Editor”, you will find (style.css) file on your right. Then, you can add the code into that file. I just added the code at the end. Hope that helps.

    Yes! That did the trick – thanks for much!

    I struggled with this and decided to pull missing covers from Open Library. I’m also considering downloading the cover from Open Library and updating the actual circulation record, but haven’t tried that yet. Anybody else done that?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘can I delete the "no image" sign?’ is closed to new replies.