[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/authorities... [rel_2_2]
From: |
Owen Leonard |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/authorities... [rel_2_2] |
Date: |
Wed, 04 Jan 2006 18:20:37 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Owen Leonard <address@hidden> 06/01/04 18:20:36
Modified files:
koha-tmpl/intranet-tmpl/npl/en/authorities: authorities.tmpl
blinddetail-biblio-search.tmpl
searchresultlist.tmpl
Log message:
Synching with default template
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/koha-tmpl/intranet-tmpl/npl/en/authorities/authorities.tmpl.diff?only_with_tag=rel_2_2&tr1=1.1.2.3&tr2=1.1.2.4&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/koha/koha/koha-tmpl/intranet-tmpl/npl/en/authorities/blinddetail-biblio-search.tmpl.diff?only_with_tag=rel_2_2&tr1=1.1&tr2=1.1.2.1&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/koha/koha/koha-tmpl/intranet-tmpl/npl/en/authorities/searchresultlist.tmpl.diff?only_with_tag=rel_2_2&tr1=1.1.2.1&tr2=1.1.2.2&r1=text&r2=text
Patches:
Index: koha/koha-tmpl/intranet-tmpl/npl/en/authorities/authorities.tmpl
diff -u
koha/koha-tmpl/intranet-tmpl/npl/en/authorities/authorities.tmpl:1.1.2.3
koha/koha-tmpl/intranet-tmpl/npl/en/authorities/authorities.tmpl:1.1.2.4
--- koha/koha-tmpl/intranet-tmpl/npl/en/authorities/authorities.tmpl:1.1.2.3
Thu Aug 25 18:00:15 2005
+++ koha/koha-tmpl/intranet-tmpl/npl/en/authorities/authorities.tmpl Wed Jan
4 18:20:36 2006
@@ -53,7 +53,12 @@
<!-- TMPL_LOOP NAME="subfield_loop" -->
<p>
<label class="labelsubfield">
- <b><!-- TMPL_VAR NAME="subfield" --></b>
+ <!-- TMPL_UNLESS name="hide_marc" -->
+ <a href="#" onclick="upSubfield('<!--
TMPL_VAR name="index" -->'); return false;">Previous</a>
+ <input type="text"
name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->" size="1"
maxlength="1">
+ <!-- TMPL_ELSE -->
+ <input type="hidden"
name="subfield" value="<!-- TMPL_VAR NAME="subfield" -->">
+ <!-- /TMPL_UNLESS -->
<!-- TMPL_IF name="mandatory" --><b><!--
/TMPL_IF -->
<!-- TMPL_VAR NAME="marc_lib" -->
<!-- TMPL_IF name="mandatory" --> *</b><!--
/TMPL_IF -->
@@ -188,5 +193,21 @@
document.forms[1].addfield_field.value=field;
document.f.submit();
}
+
+function upSubfield(index) {
+ temp = document.forms['f'].field_value[index-1].value;
+
document.forms['f'].field_value[index-1].value=document.forms['f'].field_value[index].value;
+ document.forms['f'].field_value[index].value= temp;
+ temp = document.forms['f'].subfield[index-1].value;
+
document.forms['f'].subfield[index-1].value=document.forms['f'].subfield[index].value;
+ document.forms['f'].subfield[index].value = temp;
+ temp = document.forms['f'].mandatory[index-1].value;
+
document.forms['f'].mandatory[index-1].value=document.forms['f'].mandatory[index].value;
+ document.forms['f'].mandatory[index].value = temp;
+ temp = document.forms['f'].kohafield[index-1].value;
+
document.forms['f'].kohafield[index-1].value=document.forms['f'].kohafield[index].value;
+ document.forms['f'].kohafield[index].value = temp;
+}
+
</script>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
\ No newline at end of file
Index:
koha/koha-tmpl/intranet-tmpl/npl/en/authorities/blinddetail-biblio-search.tmpl
diff -u /dev/null
koha/koha-tmpl/intranet-tmpl/npl/en/authorities/blinddetail-biblio-search.tmpl:1.1.2.1
--- /dev/null Wed Jan 4 18:20:37 2006
+++
koha/koha-tmpl/intranet-tmpl/npl/en/authorities/blinddetail-biblio-search.tmpl
Wed Jan 4 18:20:36 2006
@@ -0,0 +1,59 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<body>
+<script language="JavaScript" type="text/javascript">
+
+function go()
+{
+var index_start = <!-- TMPL_VAR NAME="index" -->;
+var whichfield = opener.opener.document.f.tag[index_start].value;
+i=index_start
+// go forward, until reaching the end of the field.
+while (i<opener.opener.document.f.field_value.length) {
+ if (opener.opener.document.f.tag[i].value == whichfield &&
opener.opener.document.f.subfield[i].value == '9') {
+ opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR
NAME="authid">";
+ }
+ <!-- TMPL_LOOP NAME="0XX" -->
+ <!-- TMPL_LOOP NAME="subfield" -->
+ if (opener.opener.document.f.tag[i].value == whichfield
&& opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR
NAME="marc_subfield" -->')
+ {
+ opener.opener.document.f.field_value[i].value =
"<!-- TMPL_VAR NAME="marc_value" -->";
+ }
+ <!-- /TMPL_LOOP -->
+ <!-- /TMPL_LOOP -->
+ if (opener.opener.document.f.tag[i].value != whichfield) {
+ i=opener.opener.document.f.field_value.length;
+ }
+ i++;
+}
+// go backward until the beginning of the field
+i=index_start
+while (i>=0) {
+ if (opener.opener.document.f.tag[i].value == whichfield &&
opener.opener.document.f.subfield[i].value == '9') {
+ opener.opener.document.f.field_value[i].value = "<!-- TMPL_VAR
NAME="authid">";
+ }
+ <!-- TMPL_LOOP NAME="0XX" -->
+ <!-- TMPL_LOOP NAME="subfield" -->
+ if (opener.opener.document.f.tag[i].value == whichfield
&& opener.opener.document.f.subfield[i].value == '<!-- TMPL_VAR
NAME="marc_subfield" -->')
+ {
+ opener.opener.document.f.field_value[i].value =
"<!-- TMPL_VAR NAME="marc_value" -->";
+ }
+ <!-- /TMPL_LOOP -->
+ <!-- /TMPL_LOOP -->
+ if (opener.opener.document.f.tag[i].value != whichfield) {
+ i=0;
+ }
+ i--;
+}
+ opener.close();
+ self.close();
+ return false;
+
+
+}
+</script>
+<script language="javascript" type="text/javascript">
+window.onload = go();
+</script>
+</body>
+</html>
Index: koha/koha-tmpl/intranet-tmpl/npl/en/authorities/searchresultlist.tmpl
diff -u
koha/koha-tmpl/intranet-tmpl/npl/en/authorities/searchresultlist.tmpl:1.1.2.1
koha/koha-tmpl/intranet-tmpl/npl/en/authorities/searchresultlist.tmpl:1.1.2.2
---
koha/koha-tmpl/intranet-tmpl/npl/en/authorities/searchresultlist.tmpl:1.1.2.1
Tue Apr 19 19:13:34 2005
+++ koha/koha-tmpl/intranet-tmpl/npl/en/authorities/searchresultlist.tmpl
Wed Jan 4 18:20:36 2006
@@ -5,7 +5,7 @@
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
<div id="main">
- <h1 class="authority">Authority search results</h1>
+ <h1>Authority search results</h1>
<div id="resultnumber">
<p>
<!-- TMPL_IF name="displayprev" -->
@@ -39,15 +39,19 @@
<div id="resultlist">
<table>
<tr>
- <th class="authority">Summary</th>
- <th class="authority">Used in</th>
- <th class="authority">View</th>
- <th class="authority">Delete</th>
+ <th>Summary</th>
+ <!-- TMPL_UNLESS name="isEDITORS" --><th>Used
in</th><!-- /TMPL_UNLESS -->
+ <th>View</th>
+ <th>Delete</th>
</tr>
<!-- TMPL_LOOP NAME="result" -->
<tr>
<td><!-- TMPL_VAR NAME="summary"
--></td>
- <td><a
href="../search.marc/search.pl?type=intranet&op=do_search&marclist=<!--
TMPL_VAR NAME="biblio_fields" -->&operator==&value=<!-- TMPL_VAR
NAME="authid" -->&and_or=and&excluding=" class="button authority"><!--
TMPL_VAR NAME="used" --> biblio(s)</a></td>
+ <!-- TMPL_UNLESS
name="isEDITORS" -->
+ <td>
+ <a
href="../search.marc/search.pl?type=intranet&op=do_search&marclist=<!--
TMPL_VAR NAME="biblio_fields" -->&operator==&value=<!-- TMPL_VAR
NAME="authid" -->&and_or=and&excluding="><!-- TMPL_VAR NAME="used" -->
biblio(s)</a>
+ </td>
+ <!-- /TMPL_UNLESS -->
<td>
<a href="detail.pl?authid=<!--
TMPL_VAR NAME="authid" -->">Edit</a>
</td>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/authorities... [rel_2_2],
Owen Leonard <=