Title: fgabbiani's Replies | WordPress.org

---

# fgabbiani

  [  ](https://wordpress.org/support/users/fgabbiani/)

 *   [Profile](https://wordpress.org/support/users/fgabbiani/)
 *   [Topics Started](https://wordpress.org/support/users/fgabbiani/topics/)
 *   [Replies Created](https://wordpress.org/support/users/fgabbiani/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/fgabbiani/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/fgabbiani/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/fgabbiani/engagements/)
 *   [Favorites](https://wordpress.org/support/users/fgabbiani/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Zotpress] displaying call numbers after search](https://wordpress.org/support/topic/displaying-call-numbers-after-search/)
 *  Thread Starter [fgabbiani](https://wordpress.org/support/users/fgabbiani/)
 * (@fgabbiani)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/displaying-call-numbers-after-search/#post-8273195)
 * Hi Katie,
 * I found a fix for the issue. In js/zotpress.lib.searchbar.js comment out the 
   following line:
 * zpSearchBarParams += “&style=”+jQuery(“#ZP_STYLE”).text();
 * I am not sure what it does, but it looks like it might set the style of the query
   to some value different from the one defined in the admin window.
 * In addition, I suggest the following change to your CSS, which makes the search
   box look nicer. In css/zotpress.shortcode.css add the following two “float-right”
   lines.
 * #zp-Zotpress-SearchBox input[type=”radio”] {
    cursor: pointer; margin: 0.5em 
   0.25em 0.5em 0.5em; vertical-align: middle; float: right; }
 * #zp-Zotpress-SearchBox label {
    cursor: pointer; float: right; }
 * Yours, Fabrizio
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Zotpress] displaying call numbers after search](https://wordpress.org/support/topic/displaying-call-numbers-after-search/)
 *  Thread Starter [fgabbiani](https://wordpress.org/support/users/fgabbiani/)
 * (@fgabbiani)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/displaying-call-numbers-after-search/#post-8263413)
 * Hi Katie,
 * I think I may have found how to fix the issue, but because my understanding of
   the code is rather limited, I wanted to run the idea by you first. I compared
   the code in zotpress.lib.dropdown.js, which I assume is the code used to display
   the library and the code in zotpress.lib.searchbar.js, which I assume is the 
   code used to display the results of a search. I also assume that the formatting
   of the entries is through CSS and that this is set in a <div > directive. I see
   that in the dropdown code you have the line:
 * tempItem += “<div id=’zp-ID-“+item.library.id+”-“+item.key+”‘ class=’zp-Entry
   zpSearchResultsItem hidden”;
 * whereas in zotpress.lib.searchbar.js you use
 * var temp = “<div id=’zp-Entry-“+item.key+”‘ class=’zp-Entry zpSearchResultsItem
   hidden’>\n”;
 * So I was thinking that changing this line to
 * var temp= “<div id=’zp-ID-“+item.library.id+”-“+item.key+”‘ class=’zp-Entry zpSearchResultsItem
   hidden’>\n”;
 * may do the trick. Does this seem right to you?
 * Thanks, Fabrizio
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Zotpress] displaying call numbers after search](https://wordpress.org/support/topic/displaying-call-numbers-after-search/)
 *  Thread Starter [fgabbiani](https://wordpress.org/support/users/fgabbiani/)
 * (@fgabbiani)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/displaying-call-numbers-after-search/#post-8259527)
 * Hi Katie,
 * would you be able to give me some hints on how to fix this issue? I might be 
   able to do it myself and get back to you with the solution, but I would need 
   some pointers as to where to look for the problem.
 * Thanks and best wishes, Fabrizio
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Zotpress] displaying call numbers after search](https://wordpress.org/support/topic/displaying-call-numbers-after-search/)
 *  Thread Starter [fgabbiani](https://wordpress.org/support/users/fgabbiani/)
 * (@fgabbiani)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/displaying-call-numbers-after-search/#post-7661089)
 * Thanks in advance. It looks like it has to require only a very minor change given
   that it works in one case. Best, Fabrizio
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Zotpress] displaying call numbers after search](https://wordpress.org/support/topic/displaying-call-numbers-after-search/)
 *  Thread Starter [fgabbiani](https://wordpress.org/support/users/fgabbiani/)
 * (@fgabbiani)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/displaying-call-numbers-after-search/#post-7660948)
 * Hi Katie,
 * I was not entirely clear. If I use
 * [zotpressLib userid=”myarticles”]
 * the call numbers display fine on the web page. However, if I use
 * [zotpressLib userid=”myarticles” type=”searchbar” searchby=”items,tags”]
 * and search for one article, then when the search returns the article, the call
   number does not display. So I don’t think it is an issue with the style, but 
   rather with the code that does returns the search, although I know too little
   to understand where the issue lies exactly.
 * Thanks again for your help, Fabrizio

Viewing 5 replies - 1 through 5 (of 5 total)