[Koha-patches] [PATCH] Adding anchor link to updateitem redirect; Markup corrections for cat_issues_top.tmpl

Owen Leonard oleonard at myacpl.org
Thu Apr 10 21:03:53 CEST 2008


---
 catalogue/updateitem.pl                            |    4 ++--
 .../prog/en/modules/catalogue/moredetail.tmpl      |    2 +-
 .../prog/en/modules/reports/cat_issues_top.tmpl    |    8 +++-----
 3 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/catalogue/updateitem.pl b/catalogue/updateitem.pl
index 24aef67..1c0906a 100755
--- a/catalogue/updateitem.pl
+++ b/catalogue/updateitem.pl
@@ -68,7 +68,7 @@ if (defined $itemnotes) { # i.e., itemnotes parameter passed from form
     $item_changes->{'damaged'} = $damaged;
 } else {
     #nothings changed, so do nothing.
-    print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber");
+    print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
 	exit;
 }
 
@@ -112,4 +112,4 @@ if ($itemlost==1) {
     $sth->finish;
 }
 
-print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber");
+print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
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 193e522..a912039 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl
@@ -39,7 +39,7 @@
     <br clear="all" />
     <!-- TMPL_LOOP NAME="ITEM_DATA" -->
     <div class="yui-g">
-        <h3 id="item<!-- TMPL_VAR NAME="barcode" -->" style="padding-top: 1em; border-top: 2px solid #CCCCCC;">Barcode <!-- TMPL_VAR NAME="barcode" -->  <!-- TMPL_IF name="notforloantext" --><!-- TMPL_VAR name="notforloantext" --> <!-- /TMPL_IF --></h3>
+        <h3 id="item<!-- TMPL_VAR NAME="itemnumber" -->" style="padding-top: 1em; border-top: 2px solid #CCCCCC;">Barcode <!-- TMPL_VAR NAME="barcode" -->  <!-- TMPL_IF name="notforloantext" --><!-- TMPL_VAR name="notforloantext" --> <!-- /TMPL_IF --></h3>
         <div class="listgroup"><h4>Item Information <!-- TMPL_IF NAME="CAN_user_editcatalogue" --><a href="/cgi-bin/koha/cataloguing/additem.pl?op=edititem&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->&amp;itemnumber=<!-- TMPL_VAR NAME="itemnumber" -->">[Edit Items]</a><!-- /TMPL_IF --></h4>
             <ol class="bibliodetails">
             <li><span class="label">Home Library:</span> <!-- TMPL_VAR NAME="homebranchname" -->&nbsp;</li>
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tmpl
index 568f286..682e16e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cat_issues_top.tmpl
@@ -1,5 +1,5 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha &rsaquo; Reports &rsaquo; Most-Circulated Items</title>
+<title>Koha &rsaquo; Reports &rsaquo; Most-Circulated Items<!-- TMPL_IF NAME="do_it" --> &rsaquo; Results<!-- /TMPL_IF --></title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
 <!-- TMPL_IF NAME="do_it" -->
@@ -14,7 +14,7 @@ function Dopop(link) {
 <!-- TMPL_INCLUDE NAME="header.inc" -->
 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
 
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; Most-Circulated Items</div>
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/reports/reports-home.pl">Reports</a> &rsaquo; <!-- TMPL_IF NAME="do_it" --><a href="/cgi-bin/koha/reports/cat_issues_top.pl">Most-Circulated Items</a> &rsaquo; Results<!-- TMPL_ELSE -->Most-Circulated Items<!-- /TMPL_IF --></div>
 
 <div id="doc3" class="yui-t2">
    
@@ -47,9 +47,7 @@ function Dopop(link) {
 			  </tr>
 				<!-- TMPL_LOOP NAME="looprow" -->
 <!-- TMPL_IF NAME="hilighted" --><tr class="highlighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
-			<td><!-- TMPL_VAR NAME="rowtitle" --></td>
-						<!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
-						<!-- TMPL_VAR NAME="rowtitle" --></td>
+						<td><!-- TMPL_VAR NAME="rowtitle" --></td>
 						<!-- TMPL_LOOP NAME="loopcell" -->
 							<td>
 
-- 
1.5.2.1




More information about the Koha-patches mailing list