Bug 42874: Fix missing index param on z3950_auth_search
This patch will enable the forwarding of index param in all z3950_auth_search forms to keep the reference which auth field to fill in addbiblio.
Testplan:
a) edit f.e. 262: /cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=262
b) go to tab 7 and create a new 700 field (icon next to ADDED ENTRY--PERSONAL NAME)
c) click on the icon next to Personal name input field to open Authority search *
d) click create new authority (Adding authority Personal Name) *
e) click Z39.50/SRU search *
f) search an author f.e. Name (any): Dalei
g) on the result list every 'Import' button still has index (via hovering the import button) - but do not click import yet.
h) click on 'Go' to page 1 - see result list again. The 'Import' buttons do not have index param anymore
i) close that search window and go back to page 'Adding authority Personal Name'
j) click Z39.50/SRU search again *
k) search again for an author f.e. Name (any): Dalei
l) click 'Try another search'
m) check that new URL does not have index param anymore
n) search again - the results will not have an index param
Any imported authority will not be set/linked in the biblio that was initially edited.
p) apply patch and redo steps a) - n)
q) Import an author either via a 'Try another search' or via a result on a different page ('Go' button)
r) save authority
s) check that authority is added in your biblio in field 700.
* check that the URL in the popup window has a param like &index=tag_700_subfield_a_13631_9534947903 as this is the reference to the authority you want to add in the biblio.
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
f979fbde3c
commit
56dffe1640
|
|
@ -186,7 +186,7 @@
|
|||
<input type="hidden" id="srchany" name="srchany" value="[% srchany | html %]" />
|
||||
<input type="hidden" id="controlnumber" name="controlnumber" value="[% controlnumber | html %]" />
|
||||
<input type="hidden" name="authid" value="[% authid | html %]" />
|
||||
|
||||
<input type="hidden" name="index" value="[% index | html %]" />
|
||||
[% FOREACH server IN servers %]
|
||||
<input type="hidden" name="id" id="z3950_[% server.id | html %]" value="[% server.id | html %]" />
|
||||
[% END %]
|
||||
|
|
@ -216,6 +216,7 @@
|
|||
<input type="hidden" id="srchany" name="srchany" value="[% srchany | html %]" />
|
||||
<input type="hidden" id="controlnumber" name="controlnumber" value="[% controlnumber | html %]" />
|
||||
<input type="hidden" name="authid" value="[% authid | html %]" />
|
||||
<input type="hidden" name="index" value="[% index | html %]" />
|
||||
<input type="submit" class="btn btn-primary" value="Try another search" />
|
||||
</form>
|
||||
</div>
|
||||
|
|
@ -249,6 +250,7 @@
|
|||
<input type="hidden" id="srchany" name="srchany" value="[% srchany | html %]" />
|
||||
<input type="hidden" id="controlnumber" name="controlnumber" value="[% controlnumber | html %]" />
|
||||
<input type="hidden" name="authid" value="[% authid | html %]" />
|
||||
<input type="hidden" name="index" value="[% index | html %]" />
|
||||
<input type="submit" class="btn btn-primary" value="Try another search" />
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue