Merge remote branch 'kc/new/enh/bug_5530' into kcmaster

This commit is contained in:
Chris Cormack 2010-12-22 11:37:09 +13:00
commit 28d9f9a398
29 changed files with 448 additions and 70 deletions

View file

@ -46,6 +46,7 @@ BEGIN {
&DelBranch
&DelBranchCategory
&CheckCategoryUnique
&mybranch
);
@EXPORT_OK = qw( &onlymine &mybranch get_branch_code_from_name );
}

View file

@ -39,7 +39,7 @@ my $offset = $input->param('offset') || 0;
my $op = $input->param('op') || '';
$searchfield =~ s/\,//g;
my $pagesize = 20;
my $script_name = "/cgi-bin/koha/admin/auth_tag_structure.pl";
my $dbh = C4::Context->dbh;
@ -221,7 +221,7 @@ if ($op eq 'add_form') {
}
my ($count,$results)=StringSearch($searchfield,$authtypecode);
my @loop_data = ();
for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
for ( my $i = $offset ; $i < $count ; $i++ ) {
my %row_data; # get a fresh hash for the row data
$row_data{tagfield} = $results->[$i]{'tagfield'};
$row_data{liblibrarian} = $results->[$i]{'liblibrarian'};
@ -237,15 +237,12 @@ if ($op eq 'add_form') {
authtypecode => $authtypecode,
);
if ($offset>0) {
my $prevpage = $offset-$pagesize;
$template->param(isprevpage => $offset,
prevpage=> $prevpage,
searchfield => $searchfield,
);
}
if ($offset+$pagesize<$count) {
my $nextpage =$offset+$pagesize;
$template->param(nextpage =>$nextpage,
if ( $offset < $count ) {
$template->param(
searchfield => $searchfield,
);
}

View file

@ -39,8 +39,16 @@ my ($template, $loggedinuser, $cookie)
});
my $dbh = C4::Context->dbh;
my $branchcode;
if((!defined($input->param('branchcode'))) & mybranch() ne '')
{
$branchcode = mybranch();
}
else
{
$branchcode = $input->param('branchcode');
}
my $branchcode = $input->param('branchcode');
my $branchname = GetBranchName($branchcode);
# Getting the branches for user selection

View file

@ -239,7 +239,7 @@ sub _get_brief_messaging_prefs {
PREF: foreach my $option ( @$messaging_options ) {
my $pref = C4::Members::Messaging::GetMessagingPreferences( { categorycode => $categorycode,
message_name => $option->{'message_name'} } );
next unless @{$pref->{'transports'}};
next unless $pref->{'transports'};
my $brief_pref = { message_attribute_id => $option->{'message_attribute_id'},
message_name => $option->{'message_name'},
};

View file

@ -255,7 +255,7 @@ if ($op eq 'add_form') {
my @loop_data = ();
my $j=1;
my $i=$offset;
while ($i < ($offset+$pagesize<$cnt?$offset+$pagesize:$cnt)) {
while ( $i < $cnt ) {
my %row_data; # get a fresh hash for the row data
$row_data{tagfield} = $results[$i]->{'mts_tagfield'};
$row_data{liblibrarian} = $results[$i]->{'mts_liblibrarian'};
@ -267,7 +267,7 @@ if ($op eq 'add_form') {
$row_data{delete} = "$script_name?op=delete_confirm&amp;searchfield=" .$results[$i]->{'mts_tagfield'}."&amp;frameworkcode=".$frameworkcode;
$j=$i;
my @internal_loop = ();
while (($results[$i]->{'tagfield'}==$results[$j]->{'tagfield'}) and ($j< ($offset+$pagesize<$cnt?$offset+$pagesize:$cnt))) {
while ( ( $results[$i]->{'tagfield'} == $results[$j]->{'tagfield'} ) and ( $j < $cnt ) ) {
my %subfield_data;
$subfield_data{tagsubfield} = $results[$j]->{'tagsubfield'};
$subfield_data{liblibrarian} = $results[$j]->{'liblibrarian'};
@ -294,7 +294,7 @@ if ($op eq 'add_form') {
my ($count,$results)=StringSearch($searchfield,$frameworkcode);
$cnt = $count;
my @loop_data = ();
for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
for ( my $i = $offset ; $i < $count ; $i++ ) {
my %row_data; # get a fresh hash for the row data
$row_data{tagfield} = $results->[$i]{'tagfield'};
$row_data{liblibrarian} = $results->[$i]{'liblibrarian'};

View file

@ -3,7 +3,7 @@
<div id="header_search">
<div id="syspref_search" class="residentsearch">
<p class="tip">System preference search:</p>
<form action="/cgi-bin/koha/admin/systempreferences.pl" method="post">
<form action="/cgi-bin/koha/admin/preferences.pl" method="post">
<input type="text" size="40" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<input type="hidden" value="all" name="tab" />
<input type="submit" name="ok" class="submit" value="Search" />

View file

@ -0,0 +1,184 @@
(function($) {
$.extend({
tablesorterPager: new function() {
function updatePageDisplay(c) {
var s = $(c.cssPageDisplay,c.container).val((c.page+1) + c.seperator + c.totalPages);
}
function setPageSize(table,size) {
var c = table.config;
c.size = size;
c.totalPages = Math.ceil(c.totalRows / c.size);
c.pagerPositionSet = false;
moveToPage(table);
fixPosition(table);
}
function fixPosition(table) {
var c = table.config;
if(!c.pagerPositionSet && c.positionFixed) {
var c = table.config, o = $(table);
if(o.offset) {
c.container.css({
top: o.offset().top + o.height() + 'px',
position: 'absolute'
});
}
c.pagerPositionSet = true;
}
}
function moveToFirstPage(table) {
var c = table.config;
c.page = 0;
moveToPage(table);
}
function moveToLastPage(table) {
var c = table.config;
c.page = (c.totalPages-1);
moveToPage(table);
}
function moveToNextPage(table) {
var c = table.config;
c.page++;
if(c.page >= (c.totalPages-1)) {
c.page = (c.totalPages-1);
}
moveToPage(table);
}
function moveToPrevPage(table) {
var c = table.config;
c.page--;
if(c.page <= 0) {
c.page = 0;
}
moveToPage(table);
}
function moveToPage(table) {
var c = table.config;
if(c.page < 0 || c.page > (c.totalPages-1)) {
c.page = 0;
}
renderTable(table,c.rowsCopy);
}
function renderTable(table,rows) {
var c = table.config;
var l = rows.length;
var s = (c.page * c.size);
var e = (s + c.size);
if(e > rows.length ) {
e = rows.length;
}
var tableBody = $(table.tBodies[0]);
// clear the table body
$.tablesorter.clearTableBody(table);
for(var i = s; i < e; i++) {
//tableBody.append(rows[i]);
var o = rows[i];
var l = o.length;
for(var j=0; j < l; j++) {
tableBody[0].appendChild(o[j]);
}
}
fixPosition(table,tableBody);
$(table).trigger("applyWidgets");
if( c.page >= c.totalPages ) {
moveToLastPage(table);
}
updatePageDisplay(c);
}
this.appender = function(table,rows) {
var c = table.config;
c.rowsCopy = rows;
c.totalRows = rows.length;
c.totalPages = Math.ceil(c.totalRows / c.size);
renderTable(table,rows);
};
this.defaults = {
size: 10,
offset: 0,
page: 0,
totalRows: 0,
totalPages: 0,
container: null,
cssNext: '.next',
cssPrev: '.prev',
cssFirst: '.first',
cssLast: '.last',
cssPageDisplay: '.pagedisplay',
cssPageSize: '.pagesize',
seperator: "/",
positionFixed: true,
appender: this.appender
};
this.construct = function(settings) {
return this.each(function() {
config = $.extend(this.config, $.tablesorterPager.defaults, settings);
var table = this, pager = config.container;
$(this).trigger("appendCache");
config.size = parseInt($(".pagesize",pager).val());
$(config.cssFirst,pager).click(function() {
moveToFirstPage(table);
return false;
});
$(config.cssNext,pager).click(function() {
moveToNextPage(table);
return false;
});
$(config.cssPrev,pager).click(function() {
moveToPrevPage(table);
return false;
});
$(config.cssLast,pager).click(function() {
moveToLastPage(table);
return false;
});
$(config.cssPageSize,pager).change(function() {
setPageSize(table,parseInt($(this).val()));
return false;
});
});
};
}
});
// extend plugin scope
$.fn.extend({
tablesorterPager: $.tablesorterPager.construct
});
})(jQuery);

View file

@ -25,7 +25,6 @@ function displayMoreConstraint(numlayer){
<body>
<!-- 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/admin/admin-home.pl">Administration</a> &rsaquo;
<!-- TMPL_IF NAME="else" -->Authority MARC subfield structure
<!-- TMPL_ELSE --><a href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=<!-- TMPL_VAR NAME="tagfield" -->&amp;tagsubfield=<!-- TMPL_VAR NAME="tagsubfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->">Authority MARC subfield structure</a> &rsaquo;
@ -54,7 +53,7 @@ function displayMoreConstraint(numlayer){
<input type="hidden" name="op" value="add_validate" />
<input type="hidden" name="tagfield" value="<!-- TMPL_VAR name="tagfield" -->" />
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
<fieldset class="action"><input type="submit" class="submit" value="Save Changes" /> <a class="cancel" href="/cgi-bin/koha/admin/auth_subfields_structure.pl?authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->">Cancel</a></fieldset>
<fieldset class="action"><input type="submit" class="submit" value="Save Changes" /> <a class="cancel" href="/cgi-bin/koha/admin/auth_subfields_structure.pl?tagfield=<!-- TMPL_VAR NAME="tagfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->">Cancel</a></fieldset>
<div id="subfieldtabs" class="toptabs numbered">
<ul>
<!-- TMPL_LOOP NAME="loop" -->

View file

@ -4,6 +4,14 @@
<!-- TMPL_IF NAME="heading-add-tag-p" -->&rsaquo; <!-- TMPL_IF NAME="authtypecode" --><!-- TMPL_VAR NAME="authtypecode" --> Framework<!-- TMPL_ELSE -->Default Framework<!-- /TMPL_IF --> &rsaquo; New tag<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->&rsaquo; <!-- TMPL_VAR NAME="action" --><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_confirm" -->&rsaquo; <!-- TMPL_IF NAME="authtypecode" --><!-- TMPL_VAR NAME="authtypecode" --> Framework<!-- TMPL_ELSE -->Default Framework<!-- /TMPL_IF --> &rsaquo; Confirm Deletion<!-- /TMPL_IF --><!-- TMPL_IF NAME="delete_confirmed" -->&rsaquo; <!-- TMPL_IF NAME="authtypecode" --><!-- TMPL_VAR NAME="authtypecode" --> Framework<!-- TMPL_ELSE -->Default Framework<!-- /TMPL_IF --> &rsaquo; Data Deleted<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" id="js">$(document).ready(function() {
$("#table_authtagstructure").tablesorter({
sortList: [[0,0]],
headers: { 5: { sorter: false},6: { sorter: false},7: { sorter: false}}
}).tablesorterPager({container: $("#pagertable_authtagstructure"),positionFixed: false,size: 20});
}); </script>
<script type="text/javascript">
//<![CDATA[
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@ -199,9 +207,27 @@ return false;
</select>
<input type="text" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<input type="submit" value="OK" class="submit" />
</form><br />
<span id="pagertable_authtagstructure" class="pager">
<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
, entries/page :
<select class="pagesize">
<option value="10">10</option>
<option selected="selected" value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</form>
<table>
<tr>
</span>
<table id="table_authtagstructure">
<thead>
<th>Tag</th>
<th>Lib</th>
<th>Repeatable</th>
@ -210,7 +236,7 @@ return false;
<th>Subfields</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<!-- TMPL_LOOP NAME="loop" -->
<!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">
@ -229,12 +255,6 @@ return false;
<!-- /TMPL_LOOP -->
</table>
<div class="pages"><!-- TMPL_IF NAME="isprevpage" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" --> ">&lt;&lt; Previous Page</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="nextpage" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" --> ">Next Page &gt;&gt;</a>
<!-- /TMPL_IF --></div>
<!-- /TMPL_IF -->
</div>

View file

@ -5,6 +5,17 @@
<!-- TMPL_IF name="delete_confirm" --> &rsaquo; Confirm Deletion<!-- /TMPL_IF -->
<!-- TMPL_IF name="else" -->Authorized values<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" id="js">$(document).ready(function() {
// call the tablesorter plugin
$("#table_authorized_values").tablesorter({
sortList: [[1,0]],
headers: { 4: { sorter: false}, 5: { sorter: false}}
}).tablesorterPager({container: $("#pagertable_authorized_values"),positionFixed: false,size: 50});
}); </script>
<script type="text/JavaScript" language="JavaScript">
//<![CDATA[
$(document).ready(function() {
@ -21,7 +32,6 @@
<body>
<!-- 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/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF name="add_form" --> <a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized Values</a> &rsaquo; <!-- TMPL_IF name="action_modify" -->Modify authorized value<!-- /TMPL_IF -->
<!-- TMPL_IF name="action_add_value" -->New authorized value<!-- /TMPL_IF -->
<!-- TMPL_IF name="action_add_category" -->New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
@ -211,9 +221,30 @@
<!-- TMPL_IF EXPR="category eq 'NOT_LOAN'" -->
<p>Statuses to describe why an item is not for loan</p>
<!-- /TMPL_IF -->
<table>
<caption>Authorized values for category <!-- TMPL_VAR name="category" --> :</caption>
<tr>
<h3>Authorized values for category <!-- TMPL_VAR name="category" --> :</h3>
<span id="pagertable_authorized_values" class="pager">
<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
, entries/page :
<select class="pagesize">
<option value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option selected="selected" value="50">50</option>
<option value="100">100</option>
<option value="200">200</option>
</select>
</form>
</span>
<table id="table_authorized_values" cellspacing="1" class="tablesorter">
<thead><tr>
<th>Authorized value</th>
<th>Description</th>
<th>Description (OPAC)</th>
@ -221,9 +252,10 @@
<th>Edit</th>
<th>Delete</th>
</tr>
</thead><tbody>
<!-- TMPL_LOOP name="loop" -->
<!-- TMPL_UNLESS name="__odd__" -->
<tr class="highlight">
<tr>
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_UNLESS -->
@ -235,7 +267,7 @@
<td><a href="<!-- TMPL_VAR name="delete" -->">Delete</a></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</tbody></table>
<!-- TMPL_IF NAME="isprevpage" -->
<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
@ -243,12 +275,6 @@
<input type="submit" value="&lt;&lt; Previous" /></form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="nextpage" -->
<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="hidden" name="offset" value="<!-- TMPL_VAR NAME="nextpage" -->" /><input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<input type="submit" value="Next Page &gt;&gt;" /></form>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</div>

View file

@ -1,6 +1,8 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Administration &rsaquo; Library Checkin and Transfer Policy</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
@ -90,6 +92,31 @@
<div id="<!-- TMPL_VAR NAME="code" -->set">
<h4>Policy for <!--TMPL_VAR NAME="limit_phrase" -->: <!-- TMPL_VAR NAME="code" --></h4>
<p><a id="CheckAll<!-- TMPL_VAR NAME="code" -->table" class="checkall" href="#">Check All</a> | <a id="UncheckAll<!-- TMPL_VAR NAME="code" -->table" class="uncheckall" href="#">Uncheck All</a></p>
<script type="text/javascript" id="js">$(document).ready(function() {
$("#<!-- TMPL_VAR NAME="code" -->table").tablesorter({
sortList: [[0,0]],
headers: { 1: { sorter: false}}
}).tablesorterPager({container: $("#pager<!-- TMPL_VAR NAME="code" -->table"),positionFixed: false,size: 10});
}); </script>
<span id="pager<!-- TMPL_VAR NAME="code" -->table" class="pager">
<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
, entries/page :
<select class="pagesize">
<option selected="selected" value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</form>
</span>
<table id="<!-- TMPL_VAR NAME="code" -->table">
<thead>
<tr>

View file

@ -12,6 +12,7 @@
</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
@ -50,9 +51,8 @@
$("#branchest").tablesorter({
sortList: [[0,0]],
headers: { 3:{sorter:false},4:{sorter:false},5:{sorter:false},6:{sorter:false}}
}).tablesorterPager({container: $("#pagerbranchest"),positionFixed: false,size: 10});
});
});
// YUI Toolbar Functions
function yuiToolbar() {
@ -162,6 +162,24 @@
<!-- TMPL_IF name="MESSAGE10" --><div class="dialog message">Library cannot be deleted because there are items held by that library</div><!-- /TMPL_IF -->
<!-- TMPL_IF name="MESSAGE11" --><div class="dialog message">Library cannot be deleted because there are patrons registered at that library</div><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="branches" -->
<span id="pagerbranchest" class="pager">
<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
, entries/page :
<select class="pagesize">
<option selected="selected" value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</form>
</span>
<table id="branchest">
<thead><tr>
<th>Name</th>

View file

@ -4,6 +4,14 @@
<!-- TMPL_IF NAME="delete_confirm" --><!-- TMPL_IF NAME="totalgtzero" -->Cannot Delete: Category <!-- TMPL_VAR NAME="categorycode" escape="html" --> in Use<!-- TMPL_ELSE -->Confirm Deletion of Category '<!-- TMPL_VAR NAME="categorycode" escape="html" -->'<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" -->Category Deleted<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" id="js">$(document).ready(function() {
$("#table_categorie").tablesorter({
sortList: [[0,0]],
headers: { 10: { sorter: false}}
}).tablesorterPager({container: $("#pagertable_categorie"),positionFixed: false,size: 20});
}); </script>
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
<script type="text/javascript">
//<![CDATA[
@ -242,9 +250,26 @@ Confirm Deletion of Category <!-- TMPL_VAR NAME="categorycode" escape="html" -->
<!-- TMPL_IF NAME="searchfield" -->
You Searched for <!-- TMPL_VAR NAME="searchfield" --></span>
<!-- /TMPL_IF -->
<table>
<tr>
<span id="pagertable_categorie" class="pager">
<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
, entries/page :
<select class="pagesize">
<option value="10">10</option>
<option selected="selected" value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</form>
</span>
<table id="table_categorie">
<thead>
<th scope="col">Code</th>
<th scope="col">Category name</th>
<th scope="col">Type</th>
@ -258,7 +283,7 @@ Confirm Deletion of Category <!-- TMPL_VAR NAME="categorycode" escape="html" -->
<th scope="col">Messaging</th>
<!-- /TMPL_IF -->
<th scope="col" colspan="2">&nbsp; </th>
</tr>
</thead>
<!-- TMPL_LOOP NAME="loop" -->
<!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">

View file

@ -1,6 +1,14 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Administration &rsaquo; <!-- TMPL_IF NAME="add_form" -->Cities &rsaquo; <!-- TMPL_IF NAME="cityid" --> Modify City<!-- TMPL_ELSE --> New City<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="delete_confirm" -->Cities &rsaquo; Confirm Deletion of City<!-- TMPL_ELSE --> Cities<!-- /TMPL_IF --><!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" id="js">$(document).ready(function() {
$("#table_cities").tablesorter({
sortList: [[1,0]],
headers: { 3: { sorter: false},4: { sorter: false}}
}).tablesorterPager({container: $("#pagertable_cities"),positionFixed: false,size: 20});
}); </script>
<script type="text/javascript">
//<![CDATA[
function Check(f) {
@ -105,14 +113,33 @@
Searching: <!-- TMPL_VAR NAME="searchfield" -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="loop" --> <table>
<tr>
<!-- TMPL_IF NAME="loop" -->
<span id="pagertable_cities" class="pager">
<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
, entries/page :
<select class="pagesize">
<option value="10">10</option>
<option selected="selected" value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</form>
</span>
<table id="table_cities">
<thead>
<th>City ID</th>
<th>City, State</th>
<th>Zip/Postal code</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr>
</thead>
<!-- TMPL_LOOP NAME="loop" -->
<!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">

View file

@ -17,7 +17,18 @@ Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'?
Data Deleted
<!-- /TMPL_IF -->
</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" --><script type="text/javascript">
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" id="js">$(document).ready(function() {
// call the tablesorter plugin
$("#table_item_type").tablesorter({
sortList: [[1,0]],
headers: { 0: { sorter: false},5: { sorter: false}}
}).tablesorterPager({container: $("#pagertable_item_type"),positionFixed: false,size: 10});
}); </script>
<script type="text/javascript">
//<![CDATA[
function isNotNull(f,noalert) {
@ -274,15 +285,33 @@ Item Types Administration
<!-- TMPL_IF name="else" -->
<h2>Item Types Administration</h2>
<table>
<tr>
<span id="pagertable_item_type" class="pager">
<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
, entries/page :
<select class="pagesize">
<option selected="selected" value="10">10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</form>
</span>
<table id="table_item_type">
<thead>
<!-- TMPL_UNLESS NAME="noItemTypeImages" --><th>Image</th><!-- /TMPL_UNLESS -->
<th>Code</th>
<th>Description</th>
<th>Not for loan</th>
<th>Charge</th>
<th>Actions</th>
</tr>
</thead>
<!-- TMPL_LOOP name="loop" -->
<!-- TMPL_UNLESS name="__odd__" -->
<tr class="highlight">

View file

@ -75,9 +75,7 @@
<ul>
<!-- TMPL_LOOP NAME="loop" -->
<!-- TMPL_IF NAME="new_subfield" -->
<!-- TMPL_IF EXPR="tagfield >=10" --><!-- display new only for > 10 fields -->
<li><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl#sub<!-- TMPL_VAR NAME="urisubfieldcode" -->field" title="<!-- TMPL_VAR NAME="liblibrarian" -->">New</a></li>
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<li><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl#sub<!-- TMPL_VAR NAME="urisubfieldcode" -->field" title="<!-- TMPL_VAR NAME="liblibrarian" -->">
<!-- TMPL_VAR NAME="subfieldcode" -->

View file

@ -5,6 +5,14 @@
<!-- TMPL_IF name="delete_confirmed" -->MARC Frameworks &rsaquo; Data Deleted<!-- /TMPL_IF -->
<!-- TMPL_IF name="else" -->MARC Frameworks<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
<script type="text/javascript" id="js">$(document).ready(function() {
$("#table_marctagstructure").tablesorter({
sortList: [[0,0]],
headers: { 5: { sorter: false},6: { sorter: false},7: { sorter: false}}
}).tablesorterPager({container: $("#pagertable_marctagstructure"),positionFixed: false,size: 20});
}); </script>
<script type="text/javascript">
//<![CDATA[
function Check(f) {
@ -153,9 +161,26 @@ $(document).ready(function() {
</p>
</form>
<p>NOTE : if you change the link between a MARC subfield and a non-MARC field, ask your administrator to run misc/batchRebuildBiblioTables.pl script.</p>
<table>
<tr>
<span id="pagertable_marctagstructure" class="pager">
<form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
<img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
, entries/page :
<select class="pagesize">
<option value="10">10</option>
<option selected="selected" value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</form>
</span>
<table id="table_marctagstructure">
<thead>
<th>Tag</th>
<th>Lib</th>
<th>Repeatable</th>
@ -164,7 +189,7 @@ $(document).ready(function() {
<th>Subfields</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<!-- TMPL_IF NAME="select_display" -->
<!-- TMPL_LOOP NAME="loop" -->
@ -205,13 +230,7 @@ $(document).ready(function() {
<!--/TMPL_IF -->
</table>
<!-- TMPL_IF NAME="isprevpage" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" --><!--TMPL_IF Name="select_display"-->&amp;select_display=True<!--/TMPL_IF -->">&lt;&lt; Previous</a>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="nextpage" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;frameworkcode=<!-- TMPL_VAR NAME="frameworkcode" --><!--TMPL_IF Name="select_display"-->&amp;select_display=True<!--/TMPL_IF -->">Next &gt;&gt;</a>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->

View file

@ -304,10 +304,10 @@
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="current" -->
<label for="<!-- TMPL_VAR NAME="rfc4646_subtag" -->"><!-- TMPL_VAR NAME="native_description" -->(<!-- TMPL_VAR NAME="rfc4646_subtag" -->)
<input value="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" name="value" id="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" type="checkbox" <!-- TMPL_IF NAME="group_enabled" -->checked="checked"<!-- /TMPL_IF --> /> </label>
<input value="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" name="value" id="opac<!-- TMPL_VAR NAME="rfc4646_subtag" -->" type="checkbox" <!-- TMPL_IF NAME="group_enabled" -->checked="checked"<!-- /TMPL_IF --> /> </label>
<!-- TMPL_ELSE -->
<label for="<!-- TMPL_VAR NAME="rfc4646_subtag" -->"><!-- TMPL_VAR NAME="native_description" -->(<!-- TMPL_VAR NAME="rfc4646_subtag" -->)
<input value="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" name="value" id="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" type="checkbox" <!-- TMPL_IF NAME="group_enabled" -->checked="checked"<!-- /TMPL_IF --> /> </label>
<input value="<!-- TMPL_VAR NAME="rfc4646_subtag" -->" name="value" id="opac<!-- TMPL_VAR NAME="rfc4646_subtag" -->" type="checkbox" <!-- TMPL_IF NAME="group_enabled" -->checked="checked"<!-- /TMPL_IF --> /> </label>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</td></tr>

View file

@ -84,7 +84,7 @@
<!-- TMPL_IF NAME="CAN_user_parameters" -->
<h3> <a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a></li>
<li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
</ul>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_tools" -->

View file

@ -84,7 +84,7 @@
<!-- TMPL_IF NAME="CAN_user_parameters" -->
<h3> <a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a></li>
<li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
</ul>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_tools" -->

View file

@ -84,7 +84,7 @@
<!-- TMPL_IF NAME="CAN_user_parameters" -->
<h3> <a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a></li>
<li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
</ul>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_tools" -->

View file

@ -84,7 +84,7 @@
<!-- TMPL_IF NAME="CAN_user_parameters" -->
<h3> <a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a></li>
<li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
</ul>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_tools" -->

View file

@ -84,7 +84,7 @@
<!-- TMPL_IF NAME="CAN_user_parameters" -->
<h3> <a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a></li>
<li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
</ul>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_tools" -->

View file

@ -84,7 +84,7 @@
<!-- TMPL_IF NAME="CAN_user_parameters" -->
<h3> <a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a></li>
<li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
</ul>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_tools" -->

View file

@ -84,7 +84,7 @@
<!-- TMPL_IF NAME="CAN_user_parameters" -->
<h3> <a href="/cgi-bin/koha/admin/admin-home.pl">Koha administration</a></h3>
<ul style="margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px solid #CCC;">
<li><a href="/cgi-bin/koha/admin/systempreferences.pl">System preferences</a></li>
<li><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></li>
</ul>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="CAN_user_tools" -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B