@@ -, +, @@ is automatically populated with the relationship type. --- authorities/auth_finder.pl | 4 ++ authorities/blinddetail-biblio-search.pl | 3 + .../prog/en/includes/auth-finder-search.inc | 40 ++++++++++++++++--- .../en/includes/authorities-search-results.inc | 2 +- .../intranet-tmpl/prog/en/includes/form-blocks.inc | 5 ++ .../prog/en/modules/authorities/authorities.tt | 2 +- .../modules/authorities/searchresultlist-auth.tt | 16 +++++++- 7 files changed, 61 insertions(+), 11 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/form-blocks.inc --- a/authorities/auth_finder.pl +++ a/authorities/auth_finder.pl @@ -35,6 +35,7 @@ my $authtypecode = $query->param('authtypecode'); my $index = $query->param('index'); my $tagid = $query->param('tagid'); my $resultstring = $query->param('result'); +my $relationship = $query->param('relationship'); my $dbh = C4::Context->dbh; my $startfrom = $query->param('startfrom'); @@ -192,6 +193,9 @@ $template->param( authtypecode => $authtypecode, ); +$template->{VARS}->{source} = $query->param('source') || ''; +$template->{VARS}->{relationship} = $query->param('relationship') || ''; + # Print the page output_html_with_http_headers $query, $cookie, $template->output; --- a/authorities/blinddetail-biblio-search.pl +++ a/authorities/blinddetail-biblio-search.pl @@ -54,6 +54,7 @@ my $dbh = C4::Context->dbh; my $authid = $query->param('authid'); my $index = $query->param('index'); my $tagid = $query->param('tagid'); +my $relationship = $query->param('relationship'); my $authtypecode = &GetAuthTypeCode($authid); my $tagslib = &GetTagsLabels( 1, $authtypecode ); @@ -95,6 +96,8 @@ if ($authid) { my $letter = $_ || '@'; push( @subfield_loop, {marc_subfield => $letter, marc_values => $subfields{$_}} ); } + + push( @subfield_loop, { marc_subfield => 'w', marc_values => $relationship } ) if ( $relationship ); } else { # authid is empty => the user want to empty the entry. --- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc @@ -1,3 +1,4 @@ +[% PROCESS 'form-blocks.inc' %] @@ -63,10 +75,10 @@ function jumpfull(page) [% IF resul.repets %] [% FOREACH repet IN resul.repets %] - [% repet.repet %] + [% repet.repet %] [% END %] [% ELSE %] - Choose + choose [% END %] Edit authority --