From 46bd98ec447822fd7cca0feb6adec8101f7ca7fd Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 21 Jan 2008 14:20:46 -0600 Subject: [PATCH] fixed permissions for updateitem Per new bug 1783, it would be nice if editcatalogue would work as well, but a change to the public API of C4::Auth is needed for that to work. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- catalogue/updateitem.pl | 3 + .../prog/en/modules/catalogue/moredetail.tmpl | 118 +++++++++++------- 2 files changed, 75 insertions(+), 46 deletions(-) diff --git a/catalogue/updateitem.pl b/catalogue/updateitem.pl index 7afc55a46e..d48f845fdb 100755 --- a/catalogue/updateitem.pl +++ b/catalogue/updateitem.pl @@ -20,6 +20,7 @@ use strict; use warnings; use CGI; +use C4::Auth; use C4::Context; use C4::Biblio; use C4::Items; @@ -30,6 +31,8 @@ use C4::Reserves; my $cgi= new CGI; +my ($loggedinuser, $cookie, $sessionID) = checkauth($cgi, 0, {circulate => 1}, 'intranet'); + my $biblionumber=$cgi->param('biblionumber'); my $itemnumber=$cgi->param('itemnumber'); my $biblioitemnumber=$cgi->param('biblioitemnumber'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl index ea6d813a38..3304aade58 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl @@ -62,56 +62,76 @@
  • Current Location:  
  • Circulation Status: Checked out to ">, Due back on Not Checked out
  • Lost Status: -
    - " /> - " /> - " /> - - " /> - " /> -
    + +
    + " /> + " /> + " /> + + " /> + " /> +
    + + + + + + +   +
  • Damaged Status: -
    - " /> - " /> - " /> - - " /> - " /> -
    + +
    + " /> + " /> + " /> + + " /> + " /> +
    + + + + + + +   +
  • Withdrawn?:YesNo -
    - " /> - " /> - " /> - " /> - " /> + + + " /> + " /> + " /> + " /> + " /> - - - - - - -
    + + + + + + + +
  • History

    @@ -131,11 +151,17 @@
  • Previous Borrower: "> 
  • Paid for?:  
  • Public Note: +
    " /> " />" />
  • -
    + + + +   + + -- 2.39.5