# MARC::Record built => now, record in DB
warn "IN ADD : ".$record->as_formatted();
if ($is_a_modif) {
- AUTHmodauthority($dbh,$record,$authid,$authtypecode);
+ AUTHmodauthority($dbh,$authid,$record,$authtypecode);
} else {
($authid) = AUTHaddauthority($dbh,$record,$authid,$authtypecode);
}
selected => $selected,
authtypetext => $authtypes->{$thisauthtype}{'authtypetext'},
);
- warn "X = $authtypes->{$thisauthtype}{'authtypetext'}";
push @authtypesloop, \%row;
}
<input type="hidden" name="op" value="add">
<input type="hidden" name="addfield_field">
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="authtypecode" -->">
+ <input type="hidden" name="authid" value="<!-- TMPL_VAR name="authid" -->">
<!-- TMPL_IF name="authid" -->
<input type="button" value="Save" onClick='Check(this.form)' accesskey="w" class="button authority">
<!-- TMPL_ELSE -->
- <input type="button" value="Add biblio" onClick='Check(this.form)' accesskey="w" class="button authority">
+ <input type="button" value="Add authority" onClick='Check(this.form)' accesskey="w" class="button authority">
<!-- /TMPL_IF -->
<!-- <a href="javascript:PopupZ3950()" class="button authority">z3950 search</a> -->
</p>
<div id="resultlist">
<table>
<tr>
- <th class="authority">Authority #</th>
- <th class="authority">Author</th>
+ <th class="authority">Summary</th>
+ <th class="authority">Used</th>
+ <th class="authority">View</th>
+ <th class="authority">Delete</th>
</tr>
<!-- TMPL_LOOP name="result" -->
<tr>
- <td><a href="detail.pl?authid=<!-- TMPL_VAR name="authid" -->"><!-- TMPL_VAR name="authid" --></a></td>
<td><!-- TMPL_VAR name="summary" --></td>
+ <td><!-- TMPL_VAR name="used" --> <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=&excluding=">...</a></td>
+ <td>
+ <a href="detail.pl?authid=<!-- TMPL_VAR name="authid" -->">
+ <img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR name="theme" -->/images/fileopen.png" width="32" hspace="0" vspace="0" border="0" alt="Authority number <!-- TMPL_VAR name="authid" -->" title="Authority number<!-- TMPL_VAR name="authid" -->">
+ </a>
+ </td>
+ <td>
+ <!-- TMPL_UNLESS name="used" -->
+ <a href="authorities-home.pl?op=delete&authid=<!-- TMPL_VAR name="authid" -->">
+ <img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR name="theme" -->/images/edittrash.png" width="32" hspace="0" vspace="0" border="0">
+ </a>
+ <!-- /TMPL_UNLESS -->
+ </td>
</tr>
<!-- /TMPL_LOOP -->
</table>