[Koha-bugs] [Bug 26246] Create a display area to show pending requests

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Aug 23 18:43:09 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26246

--- Comment #2 from Alvaro Cornejo <cornejo.alvaro at gmail.com> ---
Hi still jiggling with this.

I didn´t found how to get a window for pendings similar to last-borrower so,
for testing purposes, I´ve added pending codes to last-borrower.inc as:

 <div id="lastborrower-window">
     <div id="lastborrower-ref" class="lastborrower"><a id="lastborrowerlink"
href="" title="">Last Patron</a>
         <a href="/cgi-bin/koha/circ/article-requests.pl">&nbsp Article
Resquests</a>:<font color=004daf> [% pending_article_requests %] </font>
         <a href="/cgi-bin/koha/suggestion/suggestion.pl#ASKED">Suggestions
pending approval</a>:<font color=004daf>  [% pendingsuggestions | html %]
</font>
         <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments pending
approval</a>:<font color=004daf> [% pendingcomments | html %]  </font>
         <a href="/cgi-bin/koha/tags/review.pl">Tags pending approval</a>:<font
color=004daf>  [% pendingtags | html %]</font>
      </div>
 <!--    <div id="lastborrower-remove" class="lastborrower"><i class="fa
fa-remove"></i></div> -->
 </div>

You can see the result on the attached capture.

For now, those are fixed; however, an if(PendingVar) can be added to display
each pending if there are any.

This still require to add, to each page where we want to display the pending,
the correspoding code to get the pendings qty.

I´m still unable to know/understand how to handle user permissions.

BTW, does a feature like this might be accepted? Haven´t receive any comment
yet

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list