[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha authorities/blinddetail-biblio-search.pl k... [rel_3_0]
From: |
Henri-Damien LAURENT |
Subject: |
[Koha-cvs] koha authorities/blinddetail-biblio-search.pl k... [rel_3_0] |
Date: |
Fri, 24 Nov 2006 13:27:42 +0000 |
CVSROOT: /cvsroot/koha
Module name: koha
Branch: rel_3_0
Changes by: Henri-Damien LAURENT <hdl> 06/11/24 13:27:42
Modified files:
authorities : blinddetail-biblio-search.pl
koha-tmpl/intranet-tmpl/prog/en/authorities: auth_finder.tmpl
searchresultlist-auth.tmpl
Added files:
koha-tmpl/intranet-tmpl/prog/en/authorities:
blinddetail-biblio-search.tmpl
Log message:
BugFixing :
Authorities would not get reported into biblios.
(blinddetail-biblio-search.tmpl was lost.)
Some improvements :
- When no arrow.gif, alternate text.
- using doc-head-open.inc doc-head-close.inc
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/authorities/blinddetail-biblio-search.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.7.2.1&r2=1.7.2.2
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.1&r2=1.1.2.2
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/blinddetail-biblio-search.tmpl?cvsroot=koha&only_with_tag=rel_3_0&rev=1.1.2.1
Patches:
Index: authorities/blinddetail-biblio-search.pl
===================================================================
RCS file: /cvsroot/koha/koha/authorities/blinddetail-biblio-search.pl,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -u -b -r1.7.2.1 -r1.7.2.2
--- authorities/blinddetail-biblio-search.pl 21 Nov 2006 10:45:54 -0000
1.7.2.1
+++ authorities/blinddetail-biblio-search.pl 24 Nov 2006 13:27:42 -0000
1.7.2.2
@@ -62,9 +62,10 @@
my $tagslib = &AUTHgettagslib($dbh,1,$authtypecode);
my $auth_type = AUTHgetauth_type($authtypecode);
-# warn "XX = ".$auth_type->{auth_tag_to_report};
+ warn "XX = ".$auth_type->{auth_tag_to_report};
my $record =AUTHgetauthority($dbh,$authid);
+ warn "record auth :".$record->as_formatted;
# open template
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name =>
"authorities/blinddetail-biblio-search.tmpl",
Index: koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl 20 Sep
2006 08:55:21 -0000 1.1.2.1
+++ koha-tmpl/intranet-tmpl/prog/en/authorities/auth_finder.tmpl 24 Nov
2006 13:27:42 -0000 1.1.2.2
@@ -1,4 +1,6 @@
-<!-- TMPL_INCLUDE NAME="auth-search-top.inc" -->
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
+Cataloguing_Authority Report
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<div id="mainbloc">
<h1 class="authority">Authority search</h1>
Index: koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl
20 Sep 2006 08:55:21 -0000 1.1.2.1
+++ koha-tmpl/intranet-tmpl/prog/en/authorities/searchresultlist-auth.tmpl
24 Nov 2006 13:27:42 -0000 1.1.2.2
@@ -1,4 +1,6 @@
-<!-- TMPL_INCLUDE NAME="auth-search-top.inc" -->
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
+ Cataloguing_Authority_choose
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<div id="mainbloc">
<h1 class="authority">Authority search results</h1>
<div id="bloc25">
@@ -90,7 +92,7 @@
<td><!-- TMPL_VAR
NAME="summary" --></td>
<td><!-- TMPL_VAR NAME="used"
--> times</td>
<td>
- <a
href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=<!-- TMPL_VAR
NAME="authid" -->&index=<!-- TMPL_VAR NAME="index" -->')"><img src="<!--
TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/arrow.gif"
width="32" hspace="0" vspace="0" border="0"></a>
+ <a
href="javascript:jumpfull('blinddetail-biblio-search.pl?authid=<!-- TMPL_VAR
NAME="authid" -->&index=<!-- TMPL_VAR NAME="index" -->')"><img src="<!--
TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/arrow.gif"
width="32" alt="choose" hspace="0" vspace="0" border="0"></a>
</td>
</tr>
<!-- /TMPL_LOOP -->
Index:
koha-tmpl/intranet-tmpl/prog/en/authorities/blinddetail-biblio-search.tmpl
===================================================================
RCS file:
koha-tmpl/intranet-tmpl/prog/en/authorities/blinddetail-biblio-search.tmpl
diff -N
koha-tmpl/intranet-tmpl/prog/en/authorities/blinddetail-biblio-search.tmpl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ koha-tmpl/intranet-tmpl/prog/en/authorities/blinddetail-biblio-search.tmpl
24 Nov 2006 13:27:42 -0000 1.1.2.1
@@ -0,0 +1,61 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<!-- TMPL_IF NAME="TemplateEncoding" --><meta http-equiv="Content-Type"
content="text/html; charset=<!-- TMPL_VAR NAME="TemplateEncoding" -->"><!--
TMPL_ELSE --><meta http-equiv="Content-Type" content="text/html;
charset=utf-8"><!-- /TMPL_IF -->
+
+<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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha authorities/blinddetail-biblio-search.pl k... [rel_3_0],
Henri-Damien LAURENT <=